Various licensing issues can arise that might prohibit use of your licensed software. This section refers you to relevant man pages or gives you instructions to:
Use lmhostid to report the hostid for a system
Use lmver to identify your FLEXlm version
Check that licenses are installed
Log licensing activities
Stop and restart the license daemons
Use lmdiag to diagnose license problems
Use lmstat to monitor the status of licensing activities
Change the license server hostname
Change license servers
Get license information
Upgrade your operating system
Use lmreread to reread the license file
Use lmremove to remove a user's license
Recover a lost license
Release a license
In addition, this section lists important file names and paths and how to get additional help.
Table 2-2 describes the license administration utilities that are available to you.
The license administration utilities are located in /etc/opt/licenses.
Utility |
Description |
---|---|
lmdiag |
Diagnoses licensing problems when you cannot check out a license |
lmdown |
Takes down the license daemons |
lmhostid |
Reports a hostid for a system |
lmremove |
Removes a user's license |
lmreread |
Rereads the license files |
lmstat |
Monitors the status of network licensing activities |
lmver |
Identifies the FLEXlm version |
For more information about license administration, see the man pages for the utilities listed in Table 2-2 or visit the GLOBEtrotter Software, Inc. site on the World Wide Web at:
http://www.globetrotter.com/chap6.htm
Explanations of FLEXlm error messages are available through the licenses_errors man page and the GLOBEtrotter site on the World Wide Web at:
http://www.globetrotter.com/chap10.htm
For feature names, see Appendix A in Sun WorkShop Quick Install.
Use lmhostid to report a system's hostid. See the lmhostid man page for more information.
You do not have to be a superuser to use the lmhostid utility.
The lmver utility reports the FLEXlm license manager software version that you are using. See the lmver man page for usage and options.
You must be a superuser or a designated user through the adjust_flexlm_owner script (see the adjust_flexlm_owner man page) to use the lmver utility.
To find out if your licenses are installed, follow these steps:
On the license server, make sure there is a licenses_combined file in the directory /etc/opt/licenses.
On each application server, make sure all elementary license files are in the directory install-dir/SUNWspro/license_dir.
The elementary license file name is similar to sunpro.lic,n.
If your licenses are not installed, see Chapter 4 in Sun WorkShop Quick Install.
There are two log files:
/usr/tmp/license_errors provides a list of errors that occurred during the license installation process.
/usr/tmp/license_log provides day-to-day license activity information.
Follow these steps to enable logging of license checkouts and checkins:
Open the /etc/opt/licenses/daemon_options file in your preferred text editor.
Put a pound sign (#) in front of the NOLOG IN, NOLOG OUT, and NOLOG QUEUED lines so that the lines look as follows:
#NOLOG IN #NOLOG OUT #NOLOG QUEUED
The pound sign (#) comments out these lines.
To discontinue logging, remove the pound sign from the NOLOG IN, NOLOG OUT, and NOLOG QUEUED lines in the daemon_options file.
Stop and restart the license daemons.
Under the following circumstances, you must stop and restart the license daemons:
If you edit the daemon_options file
If you move your license server from one machine to another
When you run the lmdown command, the following events occur:
A message is sent to the license daemon requesting that it shut down.
The license daemons complete the current log file message and close the file.
The license daemons remove all the licenses that have been given out. The next time a user calls a program and the client server goes to verify the license, the license will be invalid.
If you have a redundant server configuration, using the lmdown utility takes down all of the redundant servers.
See the lmdown man page for usage and options.
To restart the license daemon, type the following at the command line:
# /etc/rc2.d/S85lmgrd
The output of this command is directed to the /usr/tmp/license_log file. See also the lmgrd.ste man page.
If you use a redundant license server configuration, restart the license daemon on each server.
Using the lmdiag utility, you can investigate why users cannot check out a license. See the lmdiag man page for usage and options (for feature names, see Appendix A in Sun WorkShop Quick Install).
You must be a superuser or a designated user through the adjust_flexlm_owner script (see the adjust_flexlm_owner man page) to use the lmdiag utility.
The lmstat utility monitors:
Which daemons are running
The users of individual features
The users of features served by a specific daemon
See the lmstat man page for usage and options.
You do not have to be a superuser to use the lmstat utility.
If you must change the hostname on your license server, modify the hostname listed in the /etc/opt/licenses/licenses_combined file and the elementary license file(s).
If the license server referred to in the elementary license file (sunpro.lic,n) is down and you have a second license server, copy and run the second license server's /etc/opt/licenses/LIC_CONFIG_SCRIPT file on the application server, which creates an elementary license file on the application server for the second license server.
If you need a new password because you are upgrading or repairing your license server, contact the same Sun License Center that you originally contacted for your original password. You are allowed two moves of a license from one license server to another per calendar year. Sun may grant additional moves at its discretion. Moves are recorded and subject to audit. At the time of the request, the Sun License Center operator might require written confirmation that the old license password has been deleted.
To get information about the licenses used by a compiler, use the -xlicinfo parameter. For example, for the C compiler type:
% cc -xlicinfo
If you upgrade your operating system, you must save the /etc/rc2.d/S85lmgrd file and everything in the /etc/opt/licenses directory. Restore the files when you have completed the system upgrade.
When you run the lmreread utility, the license daemon starts any new vendor daemons and signals all pre-existing daemons to reread the license files for changes in feature licensing information. See the lmreread man page for options and usage.
Under the following circumstances, you cannot use lmreread to restart the license daemons (see "Stopping and Restarting the License Daemons"):
If you edit the daemon_options file
If you move your license server from one machine to another
You must be a superuser or a designated user through the adjust_flexlm_owner script (see the adjust_flexlm_owner man page) to use the lmreread utility.
There may be times when checked-out licenses are not able to be returned to the license server because an application quits abnormally. To regain use of the license token, remove a user's license with the lmremove utility. See the lmremove man page for more information.
You must be a superuser or a designated user through the adjust_flexlm_owner script (see the adjust_flexlm_owner man page) to use the lmremove utility.
A license may be reported in use when it is not. This can be caused by the length of time licenses are held by the vendor daemon after the application checks licenses in or exits (the length of time set by the LINGER option in the daemon_options file) or if a system goes down while licensed software is in use. Use the lmstat command to get the status of the active licenses (see the lmstat man page for usage and options). If a license is reported in use when it is not being used, use the lmremove man page to recover the license (see the lmremove command for usage and options).
If a user checks out a license and then the user's machine crashes, the license will be unavailable until the next refresh time, usually only a few minutes. If the linger period has expired (the length of time set by the LINGER option in the daemon_options file) and the license is still unavailable, use the lmremove command to free the license (see the lmremove man page for usage and options).