For your convenience a script called sflexnet has been added to help administer FLEXnet licensing. From sflexnet you can start and stop the licensing manager and get a status of the licenses. To get a full list of options, type in “sflexnet”, then type in “help”.
Some commands that sflexnet can handle are:
start |
Starts the license manager. Before the license manager is started, sflexnet makes sure another license manager is not already running. Also, a new log file is created in “$SONNET_DIR/log”. By default, 5 log files are kept around. |
stop |
Stops the license manager by executing the lmdown command. If the lmdown command is not successful, you will be asked if you want to kill the license manager. |
restart |
Restarts the license manager by executing a “stop” then a “start”. |
status |
Determines the status of the license manager. |
status -a |
Determines the status of all of the licenses. |
status <feature> |
Determines the status of a specific feature. To determine the names of the features use “status -a”. |
diag <feature> |
Tries to get a license for the feature. Prints out diagnostic information if a license can not be obtained. Useful in determining why a license can not be obtained by a user. |
log |
Prints out the last 10 lines of the license manager log file. |
You can either execute sflexnet as an interactive utility or you can run single sflexnet commands by typing in “sflexnet <command>”.
The script sflexnet actually executes FLEXnet commands and handles setting the environment for these commands. From sflexnet you can execute FLEXnet commands directly, like lmstat, lmhostid, lmdown, etc. For example, to get the status of the xgeom license, type:
sflexnet lmstat -f xgeom
For a description of FLEXnet commands see the License Administration Tools chapter in our FlexNet Guides.
Sflexnet assumes that the license file is stored in “$SONNET_DIR/licenses/sonnet.lic”.