Sun WorkShop 6 Installation and Licensing Reference | ![]() ![]() ![]() ![]() ![]() |
License Management
This chapter describes Sun's user licensing scheme and gives detailed information about administering licenses.
Answers to Sun WorkShopTM licensing frequently asked questions (FAQ) are available through the World Wide Web by visiting the following web page:
http://www.sun.com/workshop/workshopFAQ.html
Sun's User License Scheme
Sun uses GLOBEtrotter Software, Inc.'s FLEXlm license manager software to manage Sun WorkShop user licenses.
The machine running the license manager daemon is called the license server. Requests come from application servers. An application server is any computer on which an application is installed.
The License File
The license administrator installs the license file (
licenses_combined
file), which is a text file that contains licensing data. This file contains information about the server nodes and vendor daemons and at least one line of data (FEATURE
orINCREMENT
) for each licensed product.
Note FEATURE
is available in Sun WorkShop versions prior to Sun WorkShop 5.0.
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. This file is located on the license server in the
/etc/opt/licenses
directory.To display all installed licenses, type:
%
lmstat -a -c licenses_combined
For more information, see the
lmstat
man page.Router File
Note The router file is new in Sun WorkShopTM 6.
The router files are ASCII files that list the license servers on the network that should be checked for licenses. The license servers are referenced using port@host format, where port is the TCP port used by the Sun WorkShopFLEXlm
lmgrd.ste
daemon (the fourth field in the SERVER line in the licenses_combined file) and host is the license server hostname. Each router file contains only one line that is a colon-separated list of these license servers. The router file location is on the application server, in the file install-dir/SUNWspro/license_dir/lic_router
.Sun WorkShop software checks the installation directory above for the presence of a router file, then checks each file server listed for licenses. The product software automatically looks for the router file relative to where it was installed.
In a multiple independent license server configuration, application servers might be served by more than one license server, hence the ability to list multiple license servers using a colon-separated list.
In many cases, once a router file has been set up with the appropriate list of license servers, adding additional licenses or licenses for new versions of WorkShop software will not require any updating of the router file. Router files do not need to be updated unless a new license server is added to the network.
Elementary License Files
Note The elementary license files are used in Sun WorkShop versions prior to Sun WorkShop 6.
The elementary license files are subsets of the
licenses_combined
file. Elementary license files are located in the install-directory/SUNWspro/license_dir
directory on each application server (the default install-directory is/opt
). License files for Sun WorkShop products have file names in the formsunpro.lic
,n (for example,sunpro.lic,1
). The n is a string, usually an integer, assigned during installation to identify a particular license file.Sun WorkShop software checks the installation directory for licenses. The product software automatically looks for the elementary license file relative to where it was installed.
In a multiple independent license server configuration, application servers might be served by more than one license server. Each license server is represented by an elementary license file on the application servers. Each application server must contain at least one elementary license file. Each elementary license file contains the license server information and the product license.
The License Manager Daemon
The license manager daemon starts and restarts the vendor daemons, which grant or deny licenses to the licensed software. When a user starts an application, the application looks at the router file for the name and TCP port of the license server and contacts the license manager daemon (
lmgrd.ste
) on that server. If a license token is available, the user is granted the use of the application. If a license token exists but is not currently available (for example, if other users have checked out all the license tokens), the user will be put into a queue.
Note Sun uses thelmgrd.ste
license manager daemon, which is identical to FLEXlm'slmgrd
license manager daemon.
The Vendor Daemon
The license manager daemon handles communication between the application and the vendor daemon. The vendor daemon, which runs on the license server, tracks which users have licenses for a given product, how many licenses are checked out, and how many licenses are currently available. Sun WorkShop 6 (and 5.0) products use the
sunwlicd
vendor daemon (releases prior to Sun WorkShop 5.0 used thesuntechd
vendor daemon). If the vendor daemon terminates, users lose their licenses. When the license manager daemon restarts the vendor daemon, users regain their licenses automatically.Sun WorkShop Software
Sun WorkShop software is linked with the program module (the license library) to communicate with the license server. When the software is in use, it communicates with the vendor daemon to request a license.
The
daemon_options
FileThe
daemon_options
file is installed in the/etc/opt/licenses
directory. Thedaemon_options
file allows you to:
- Reserve licenses for specified users, hostnames, or display names
- Allow or deny use of applications based on user, hostname, or display name.
- Control the information logged about license use
When
lmgrd.ste
starts the vendor daemon, the vendor daemon receives the location of thedaemon_options
file. This location is identified in the product's license file on theDAEMON
line. If no file is listed, the daemon will not use any options file. Only one options file per vendor daemon is allowed.To modify the
daemon_options
file, use the options listed in TABLE 2-1. For feature names, see Appendix A in Sun WorkShop 6 Installation Guide.
The following is an example of a
daemon_options
file:
The sample
daemon_options
file was edited to specify:
- The license log will not record licenses checked in, checked out, or queued.
- The C and C++ compiler licenses will delay for 300 seconds before returning licenses to the license server for use by other developers.
- One C compiler license is for use only by
pat
.- Three Sun WorkShop IPE licenses are for use only by
lee
.- No C compiler license is for use by
joe
.
Note For redundant server configurations, thedaemon_options
file must be the same on each server. For multiple independent server configurations, thedaemon_options
file can be different on each server.
To minimize server down time when changing the
daemon_options
file, follow these steps:1. Make the needed changes to thedaemon_options
file.2. Stop the license daemon.
- See Stopping and Restarting the License Daemons.
3. Restart the license daemon.
- See Stopping and Restarting the License Daemons.
Note If you modify thedaemon_options
file, your changes do not take effect until the license daemon is started or restarted.
For more information about the options file, visit the GLOBEtrotter Software, Inc. site on the World Wide Web:
http://www.globetrotter.com/chap6.htm
License Administration
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 in
/etc/opt/licenses
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/chap7.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/chap12.htm
For feature names, see Appendix A in Sun WorkShop 6 Installation Guide.
Using
lmhostid
to Get the Hostid for a SystemUse
lmhostid
to report a system's hostid. See thelmhostid
man page for more information.
Note You do not have to be a superuser to use thelmhostid
utility.
Using
lmver
to Identify Your FLEXlm VersionThe
lmver
utility reports the FLEXlm license manager software version that you are using. See thelmver
man page for usage and options.
Note You must be a superuser or a designated user through theadjust_flexlm_owner
script (see theadjust_flexlm_owner
man page) to use thelmver
utility.
Checking That Licenses Are Installed
To find out if your licenses are installed, follow these steps:
1. On the license server, make sure there is alicenses_combined
file in the directory/etc/opt/licenses
.2. On each application server, make sure all router files or elementary license files are in the directory install-dir/SUNWspro/license_dir
.
- The router file is
lic_router
.- The elementary license file name is similar to
sunpro.lic,
n.- If your licenses are not installed, see Chapter 4 in Sun WorkShop 6 Installation Guide.
Logging Licensing Activities
/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:
1. Open the/etc/opt/licenses/daemon_options
file in your preferred text editor.2. Put a pound sign (#
) in front of theNOLOG
IN
,NOLOG
OUT
, andNOLOG
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
, andNOLOG QUEUED
lines in thedaemon_options
file.3. Stop and restart the license daemons.
- See Stopping and Restarting the License Daemons.
Circular Logging Feature
Sun WorkShop 6 has a new circular logging feature that moves the contents of the current license log file to a backup log file when the current log size reaches 5 Mbytes. The license server generates up to five log files, which includes the current log file and up to four backup logs. The license log file names are:
license_log
license_log.0
license_log.1
license_log.2
license_log.3
Note The backup log files,license_log
.n, where n =0, 1, 2, 3
, are created only if necessary.
When
license_log
reaches 5 Mbytes, the file contents oflicense_log.2
are moved tolicense_log.3
(the contents oflicense_log.3
will be lost), the contents oflicense_log.1
are moved tolicense_log.2
, the contents oflicense_log.0
are moved tolicense_log.1,
and the contents oflicense_log
are moved tolicense_log.0
. After this sequence of events,license_log
is empty and ready to begin receiving new license log data. The filelicense_log.3
will contain the oldest log activities, andlicense_log
will contain the most current log activities.Installing Sun WorkShop 5.0 Licenses
You may want to install a Sun WorkShopTM 5.0 license after you have installed Sun WorkShop 6.
1. Log in as root.2. CopyLIC_CONFIG_FILE.WorkShop5.0
to the WorkShop 6 location of the licensing software located inSUNWste/license_tools
. The default location is/opt/SUNWste/license_tools
#
cp /cdrom/devpro_v6n1_sparc/licensing\
/LIC_CONFIG_FILE.WorkShop5.0
/opt/SUNWste/license_tools
Note Do not type the backslash (\
). The backslash indicates that the command must be typed as one line.
3. Invoke eitherlit
orlit_tty
.
- The 5.0 licenses will appear.
Stopping and Restarting 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
Using
lmdown
to Stop the License DaemonsWhen 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.
Note If you have a redundant server configuration, using thelmdown
utility takes down all of the redundant servers.
See the
lmdown
man page for usage and options.Restarting the License Daemons
To restart the license daemon, type the following at the command line:
The output of this command is directed to the
/usr/tmp/license_log
file. See also thelmgrd.ste
man page.
Note If you use a redundant license server configuration, restart the license daemon on each server.
Using
lmdiag
to Diagnose License ProblemsUsing the
lmdiag
utility, you can investigate why users cannot check out a license. See thelmdiag
man page for usage and options (for feature names, see Appendix A in Sun WorkShop 6 Installation Guide).
Note You must be a superuser or a designated user through theadjust_flexlm_owner
script (see theadjust_flexlm_owner
man page) to use thelmdiag
utility.
Using
lmstat
to Monitor Licensing Activities
- 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.
Note You do not have to be a superuser to use thelmstat
utility.
Changing the License Server hostname
If you must change the hostname on your license server, modify the hostname listed in the
/etc/opt/licenses/licenses_combined
file and the router file or the elementary license file(s). You must shutdown and restart the license server to change the hostname. See Stopping and Restarting the License Daemons.Changing License Servers
If the license server referred to in the router file (
lic_router
) or 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 a router file or 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.
Getting License Information
To get information about the licenses used by a compiler, use the
-xlicinfo
parameter. For example, for the C compiler type:Upgrading Your Operating System
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.Using
lmreread
to Reread the License FileWhen 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 thelmreread
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
Note You must be a superuser or a designated user through theadjust_flexlm_owner
script (see theadjust_flexlm_owner
man page) to use thelmreread
utility.
Using
lmremove
to Remove a User's LicenseThere 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 thelmremove
man page for more information.
Note You must be a superuser or a designated user through theadjust_flexlm_owner
script (see theadjust_flexlm_owner
man page) to use thelmremove
utility.
Recovering a Lost License
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 thedaemon_options
file) or if a system goes down while licensed software is in use. Use thelmstat
command to get the status of the active licenses (see thelmstat
man page for usage and options). If a license is reported in use when it is not being used, use thelmremove
man page to recover the license (see thelmremove
command for usage and options).Releasing a License
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 thedaemon_options
file) and the license is still unavailable, use thelmremove
command to free the license (see thelmremove
man page for usage and options).File Names and Paths
The following is a list of file locations you might need:
- License file:
/etc/opt/licenses/licenses_combined
- Router file:
install-dir/SUNWspro/license_dir/lic_router
- Elementary license file:
install-dir/SUNWspro/license_dir/sunpro.lic,
n
where n is a string (usually an integer) assigned by the license manager.- File containing the location of all application software on the current server:
/etc/opt/licenses/sunpro.loc
- Router file or elementary license file creation script to be run on all application servers that are not license servers:
/etc/opt/licenses/LIC_CONFIG_SCRIPT
- License manager daemon:
/etc/opt/licenses/lmgrd.ste
- License installation tool:
/etc/opt/licenses/lit
(GUI)/etc/opt/licenses/lit_tty
(command-line executable)- Vendor daemons:
/etc/opt/licenses/sunwlicd
/etc/opt/licenses/suntechddaemon_options
file:/etc/opt/licenses/daemon_options
- License manager log file:
/usr/tmp/license_log
- License installation log file:
/usr/tmp/license_errors
- License daemon start-up script:
/etc/rc2.d/S85lmgrd
- FLEXlm license manager utilities (for example,
lmstat
):/etc/opt/licenses
- License Request Form:
/cdrom/devpro_v7n1_
platform/License_Request_Form
Additional Help
Answers to frequently asked questions (FAQ) about Sun WorkShop licensing are available through the World Wide Web by visiting the following web page:
http://www.sun.com/workshop/workshopFAQ.html
If you have licensing questions that are not answered in this reference or through the FAQ, contact your Sun authorized service provider and have the following information available:
- A detailed description of the symptoms of the problem, including a detailed description of how to recreate the problem
- Output of the
which
command
- %
which cc
- Output of the
-xlicinfo
switch from the same compiler used in the first two items- Your FLEXlm version number, which can be obtained by logging on as root and typing the following commands:
- #
cd /etc/opt/licenses
- #
./lmver lmgrd.ste
- #
./lmver sunwlicd
(for WorkShop 5.0 or 6)
- #
./lmver suntechd
(for WorkShop 4.2 and earlier)
- A copy of the file
/usr/tmp/license_log
you receive after typing the following commands:
- Log on as root.
- Take down the license manager by using the
lmdown
command.
- #
cd /etc/opt/licenses
- #
./lmdown -c licenses_combined
- Turn on license logging in the
/etc/opt/licenses/daemon_options
file, and comment out the following three lines by using # as the comment character:
- #
#NOLOG IN
- #
#NOLOG OUT
- #
#NOLOG QUEUED
- Restart the license manager:
- #
/etc/rc2.d/S85lmgrd
- Repeat the steps that produced the error. The log file
/usr/tmp/license_log
will record the error.- A copy of your
licenses_combined
file- A copy of the daemon options file
/etc/opt/licenses/daemon_options
from the license server- A copy of the router file install-dir
/SUNWspro/license_dir/lic_router
- A copy of the elementary license file, from WorkShop 5.0 or earlier versions, install-dir
/SUNWspro/license_dir/sunpro.lic
,n- Output from the
lmstat
utility on the license server
%
cd /etc/opt/licenses
%
./lmstat -a -c licenses_combined
- (You do not need to be root to obtain this output.)
- The operating system version of your machine, the license server, and the application server
%
uname -a
Sun Microsystems, Inc. Copyright information. All rights reserved. Feedback |
Library | Contents | Previous | Next | Index |