Managing Your Licenses |
5 |
![]() |
If the vendor daemon terminates, all users lose their licenses. When the license manager daemon restarts the vendor daemon, the users regain their licenses automatically.
The license file, or a copy of it, must be accessible to every machine running the licensed software and each machine designated as a license server.
The following processes occur using the WorkShop licenses and software:
The LICENSE_FILE name defines the basename for each elementary license file associated with the product and the product location. The WorkShop products define sunpro.lic,n as the LICENSE_FILE.
Each actual license file for the product is in the form:
Here basename is the value supplied within this field, and n is the sequence number assigned during installation that identifies this particular license.
If you plan to modify the daemon_options file, your changes do not take effect until the FLEXlm daemon is started or restarted. Although redundant server configurations require that the file be the same on each server, the file can be different for independent server configurations.
To minimize the server down time, make the needed changes to the daemon_options file; then take the license daemon down and restart the daemon (refer to page 5-37 and page 5-38).
Figure 5-1 is an example of edits made to the daemon_options file.
Figure 5-1 Example of daemon_options File Edits
Using the lmdown command sends a message to every license daemon requesting that it shut down. The license daemon completes the current log file message and closes the file; then the daemons rescind all of the licenses that have been given out. The next time a user invokes a program and the client server goes to verify the license, the license will be invalid.
If you have a redundant server configuration, this procedure takes down all of the redundant servers.
![]() | As root, type the following at the root prompt: |
![]() | As root, type the following at the root prompt: |
![]() | To start the license daemon, execute the following command in a C shell: |
To use lmgrd.ste, type:
# ./lmgrd.ste -c <license_file> -t <timeout_interval> \
with the following definitions:
-c <license_file>: Use /etc/opt/licenses/licenses_combined. If this switch is not specified, lmgrd.ste looks for the LM_LICENSE_FILE environment variable. If that variable is not defined, lmgrd.ste looks for the /usr/local/flexlm/license.dat file.
-t <timeout_interval>: Sets a timeout interval, in seconds, during which redundant servers must finish their connections with each other. The default is 10 seconds, but you may need a larger value if the daemons are being run on busy systems or a heavily loaded network.
-s <timestamp_interval>: Specifies the logfile timestamp interval, in minutes. 360 minutes is the default.
-v: Prints lmgrd.ste's version number and copyright.
-x lmdown: Disallows the lmdown command for any user.
-x lmremove: Disallows the lmremove command for any user.
To use lmstat, type:
with the following definitions:
-a: Display all information
-S <daemon>: List all users of daemon's features.
-f <feature>: List users of features.
-t <value>: Sets lmstat timeout to the specified value.
-c <license_file>: Use /etc/opt/licenses/licenses_combined. If this switch is not specified, lmgrd.ste looks for the LM_LICENSE_FILE environment variable. If that variable is not defined, lmgrd.ste looks for the /usr/local/flexlm/license.dat file.
-A: Lists all active licenses.
To use lmreread, type:
# ./lmreread -c <license_file>
with the following definition:
-c <license_file>: Use /etc/opt/licenses/licenses_combined. If this switch is not specified, lmgrd.ste looks for the LM_LICENSE_FILE environment variable. If that variable is not defined, lmgrd.ste looks for the /usr/local/flexlm/license.dat file.
To use lmver, type:
# ./lmver <filename>
with the following definition:
<filename>: Use the name of the executable of the FLEXlm binary: for example, lmgrd.ste, suntechd, or lmstat.
To use lmhostid, type:
# ./lmhostid
To use the lmremove utility, type:
# ./lmremove -c <license_file> <feature> <user> <host> \
with the following definitions:
-c <license_file>: Use /etc/opt/licenses/licenses_combined. If this switch is not specified, lmgrd.ste looks for the LM_LICENSE_FILE environment variable. If that variable is not defined, lmgrd.ste looks for the license.dat file.
<feature>: Use the name of the feature checked out by the user.
<user>: Use the name of the user whose license you are removing; use lmstat to obtain the value of <user>.
<host>: Use the name of the host the user is logged in to; use lmstat to obtain the value of <host>.
<display>: Use the name of the display where the user is working; use lmstat to obtain the value of <display>.
To use lmdiag, type:
# ./lmdiag -c <license_file> <feature>
with the following definitions:
-c <license_file>: Use /etc/opt/licenses/licenses_combined. If this switch is not specified, lmgrd.ste looks for the LM_LICENSE_FILE environment variable. If that variable is not defined, lmgrd.ste looks for the /usr/local/flexlm/license.dat file.
<feature>: Diagnose this feature only.
If the license server referred to in the elementary license file (sunpro.lic,<n>) is down, set the LM_LICENSE_FILE environment variable to a different license server path.
Use the lmstat command to get the status of the active licenses. If a license is reported in use when it is not being used, use the lmremove command to recover the license.
If the linger period has expired and a license is still tied up, a license administrator can use the lmremove command to free the license.
Make sure FLEXlm version 4.1 or later is installed by doing the one of the following procedures:
![]() | At a command prompt, type: |
![]() | At a command prompt, type: |
![]() | At a command prompt on your license server, type: |
Edit the licenses_combined and sunpro.lic, n files to verify that the information entered matches the information provided by the License Center.