Support
Using FlexLM Options Files for STK and ODTK on Ansys License Server
FlexLM Options files are useful for managing the usage of licenses in a networked environment. They help in defining rules for which users or hosts can access specific features, reserving licenses for particular users or groups, and limiting the number of licenses.
Purpose of Options Files
- User and Group Control: Specify which users or groups can access particular licenses.
- License Reservation: Reserve licenses for specific users or groups.
- License Limiting: Limit the number of licenses that can be used by certain users or groups.
- License Denial: Deny access to certain users or groups.
Key Options in FlexLM Options Files
- GROUP and HOST_GROUP: Define groups of users or hosts.
- GROUP group_name user_list
- HOST_GROUP host_group_name host_list
- INCLUDE: Allow specified users or groups to use a feature.
- INCLUDE feature_name {USER | HOST_GROUP | GROUP} group_name
- EXCLUDE: Prevent specified users or groups from using a feature.
- EXCLUDE feature_name {USER | HOST_GROUP | GROUP} group_name
- RESERVE: Reserve licenses for specified users or groups.
- RESERVE num_licenses feature_name {USER | HOST_GROUP | GROUP} group_name
- MAX: Limit the number of licenses a user or group can check out.
- MAX num_licenses feature_name {USER | HOST_GROUP | GROUP} group_name
- DENY: Deny specified users or groups access to a feature.
- DENY feature_name {USER | HOST_GROUP | GROUP} group_name
Creating a FlexLM Options File
To create a FlexLM Options file for STK and ODTK products, follow these steps:
- Open a Text Editor: Use any text editor like Notepad (Windows), TextEdit (Mac), or vi/nano (Linux)
- Build the License Content: (All the content is optional but based on the needs)
- Define Groups (Optional):
- GROUP engineers user1 user2 user3
- GROUP analysts user4 user5 user6
- Include or Exclude Users/Groups:
- INCLUDE stk_mission_level1 GROUP engineers
- EXCLUDE stk_mission_space USER user6
- Reserve Licenses:
- RESERVE 2 stk_mission_level1 GROUP engineers
- Limit License Usage:
- MAX 1 stk_mission_level2 USER user5
- Deny Access:
- DENY stk_mission_space USER user6
- Apply the Options File
- Save the file with an .opt extension.
- File Name: ansylmd.opt which is the same name as the Ansys License File (usually).
- Location: C:\Program Files\ANSYS Inc\Shared Files\licensing\license_files which is where the Ansys licenses are located on Windows.
- Restart License Server: Restart the FlexLM license server to apply the new settings. This can typically be done via command line or through an administrative interface provided by the software vendor.
- Save the file with an .opt extension.
Example Options File for STK and ODTK
Below is an example of a complete FlexLM Options file tailored for STK and ODTK products:
Example 1: User-Specific Access
Requirement: Bob should have access to STK Pro and SOLIS only, while Erica should have access to Premium Space without SOLIS.
# Define user groups
GROUP BobGroup bob
GROUP EricaGroup erica
# Include Bob in STK Pro and SOLIS
INCLUDE stk_mission_level1 GROUP BobGroup
INCLUDE stk_engine_runtime GROUP BobGroup
INCLUDE stk_solis GROUP BobGroup
# Include Erica in Premium Space excluding SOLIS
INCLUDE stk_mission_level1 GROUP EricaGroup
INCLUDE stk_engine_runtime GROUP EricaGroup
INCLUDE stk_mission_level2 GROUP EricaGroup
INCLUDE stk_mission_space GROUP EricaGroup
INCLUDE stk_snopt GROUP EricaGroup
INCLUDE stk_satcollection GROUP EricaGroup
EXCLUDE stk_solis GROUP EricaGroup
Example 2: License Reservation
Requirement: Reserve 1 license for Premium Space for Operations1 and reserve 2 Pro licenses for Marketing1 and Marketing2 machines.
# Define host groups
HOST_GROUP OperationsGroup Operations1
HOST_GROUP MarketingGroup Marketing1 Marketing2
# Reserve licenses for Operations1
RESERVE 1 stk_mission_level1 HOST_GROUP OperationsGroup
RESERVE 1 stk_engine_runtime HOST_GROUP OperationsGroup
RESERVE 1 stk_mission_level2 HOST_GROUP OperationsGroup
RESERVE 1 stk_mission_space HOST_GROUP OperationsGroup
RESERVE 1 stk_snopt HOST_GROUP OperationsGroup
RESERVE 1 stk_satcollection HOST_GROUP OperationsGroup
# Reserve licenses for Marketing1 and Marketing2
RESERVE 1 stk_mission_level1 HOST_GROUP MarketingGroup
RESERVE 1 stk_engine_runtime HOST_GROUP MarketingGroup
Example 3: Limiting License Usage
Requirement: Limit the number of STK Scheduler licenses that can be checked out by any user to 2 at a time.
# Limit license usage for STK Scheduler
MAX 2 stk_scheduler USER ALL
Example 4: Deny Access
Requirement: Deny access to ODTK products for user Dave.
# Define user group
GROUP DaveGroup dave
# Deny access to ODTK products for Dave
DENY odtk_level1 GROUP DaveGroup
DENY odtk_level2 GROUP DaveGroup
Name of Product and Associated Features
Below is a list of Ansys products (AGI only) and their associated features:
- Ansys STK Pro
- stk_mission_level1
- stk_engine_runtime
- Ansys STK Premium Space:
- (All Features in STK Pro)
- stk_mission_level2
- stk_mission_space
- stk_snopt
- stk_satcollection
- Ansys STK Premium Air
- (All features in STK Pro)
- stk_mission_level2
- stk_mission_air
- Ansys STK Enterprise
- (All features in STK Pro + Premium Air + Premium Space)
- stk_geoserver
- stk_geodata
- stk_data_federate
- moxie_sysml
- Ansys STK SOLIS:
- stk_solis
- Ansys STK Scheduler:
- stk_scheduler
- Ansys ODTK:
- odtk_level1
- odtk_level2
- Ansys ODSSA:
- odtk_comspoc
- odtk_maneuver
- Ansys STK RF Channel Modeler:
- stk_rfchannel_ent
- stk_gpusbr_p2p
By using FlexLM Options files, you can effectively manage and optimize the usage of your licensed software, ensuring compliance with licensing agreements and improving operational efficiency.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article