Flexlm
Flexlm
FLEXlm
License Management
Software
A publication of
Altium BV
Documentation Department
http://www.tasking.com
http://www.altium.com
The information in this document has been carefully reviewed and is
believed to be accurate and reliable. However, Altium assumes no liabilities
for inaccuracies in this document. Furthermore, the delivery of this
information does not convey to the recipient any license to use or copy the
software or documentation, except as provided in an executed license
agreement covering the software and documentation.
CONTENTS
CONTENTS
Table of Contents V
• • • • • • • •
VI Table of Contents
INDEX
CONTENTS
Manual Purpose and Structure VII
PURPOSE
This manual how to install and use the FLEXlm license management
software with TASKING products.
MANUAL STRUCTURE
Conventions Used In This Manual
1. Software Installation
Describes how to install and use the license management software.
filename
• • • • • • • •
VIII Manual Purpose and Structure
For example
command [option]... filename
This line could be written in plain English as: execute the command
command with the optional options option and with the file filename.
Illustrations
The following illustrations are used in this manual:
1
1−2
INSTALLATION
1
CHAPTER
Chapter 1
Software Installation 1−3
1.1 INTRODUCTION
This chapter describes how you can install the FLEXlm License Manager
software on a Windows system or on a Linux or UNIX host.
1. Login as a user.
Be sure you have read, write and execute permissions in the installation
directory. Otherwise, login as "root" or use the su command.
2. Insert the CD−ROM into the CD−ROM drive. Mount the CD−ROM on a
directory, for example /cdrom. See the Linux manual pages about mount
for details.
• • • • • • • •
1−4 Chapter 1
Make sure you have read, write and execute permissions in the installation
directory. Otherwise, login as "root" or use the su command.
If you are a first time user, decide where you want to install the product.
By default it will be installed in /usr/local.
2. Insert the CD−ROM into the CD−ROM drive and mount the CD−ROM on a
directory, for example /cdrom. Make sure to use an ISO 9660 file system
with Rock Ridge extensions enabled. See the UNIX manual pages about
mount for details.
First a question appears about where to install the software. The default
answer is /usr/local.
If the script detects that the software has been installed before, the
following messages appear on the screen:
*** WARNING ***
SWxxxxxx xxxx.xxxx already installed.
Do you want to REINSTALL? [y,n]
Software Installation 1−5
Answer y (yes) to continue with the installation. The last message will be:
Installation of SWxxxxxx xxxx.xxxx completed.
• • • • • • • •
1−6 Chapter 1
Environment Description
Variable
PATH With this variable you specify the directory in which
the executables reside (for example:
c:\flexlm\bin). This allows you to call the
executables when you are not in the bin directory.
Usually your system already uses the PATH variable
for other purposes. To keep these settings, you
need to add (rather than replace) the path. Use a
semicolon (;) to separate pathnames.
LM_LICENSE_FILE With this variable you specify the location of the
license data file. You only need to specify this
variable if the license file is not on its default location
(c:\flexlm for Windows,
/usr/local/flexlm/licenses for UNIX).
TASKING_LIC_WAIT If you set this variable on the PC or workstation
where the TASKING toolset is installed, the tool will
wait for a license to become available, if all licenses
are taken. If you have not set this variable, the tool
aborts with an error message.
INSTALLATION
Floating license
This license type manages the use of TASKING product licenses among
users at one site. This license type does not lock the software to one
specific PC or workstation but it requires a network. The software can then
be used on any computer in the network. The license specifies the
number of users who can use the software simultaneously. A system
allocating floating licenses is called a license server. A license manager
running on the license server keeps track of the number of users.
Windows
1. Run the License Administrator during installation on the server and follow
the steps to Request a license key from Altium by E−mail.
2. E−mail the license request to your local TASKING sales representative. The
license key will be sent to you by E−mail.
• • • • • • • •
1−8 Chapter 1
UNIX
1. If you need a floating license on UNIX, you must determine the host ID
and host name of the computer where you want to use the license
manager. Also decide how many users will be using the product. See
section 1.6.6, How to Determine the Host ID and section 1.6.7, How to
Determine the Host Name.
2. When you order a TASKING product, provide the host ID, host name and
number of users to your local TASKING sales representative. The license
key will be sent to you by E−mail.
2. Create a license file on the server by importing a license key or create one
manually:
On UNIX, you always have to insert the license key manually in the
license file. The default location of the license file license.dat is in
directory /usr/local/flexlm/licenses for UNIX.
Software Installation 1−9
If you wish to install the license file in a different directory, see section
1.6.5, Modifying the License File Location.
If you already have a license file, add the license key information to the
existing license file. If the license file already contains any SERVER lines,
make sure that the number of SERVER lines and their contents match,
otherwise you must use another license file. See section 1.6.5, Modifying
the License File Location, for additional information.
On Windows you can also use the graphical FLEXlm Tools (lmtools): Start
lmtools (if you have used the defaults this can be done by selecting Start
−> Programs −> TASKING FLEXlm version −> FLEXlm Tools). On the
Service/License File tab, select Configuration using Services and select
FLEXLM License Manager for TASKING. On the Start/Stop/Reread
tab, click on the ReRead License File button. Another option is to reboot
your PC.
The software product and license file are now properly installed.
Make sure that on each PC or workstation where you will use the
TASKING toolset software the location of a license file must be known.
Either create a local license file or point to a license file on a server: See
the installation chapter of the TASKING product for more information.
If the license manager is running, you can now start using the TASKING
product.
• • • • • • • •
1−10 Chapter 1
Windows
On Windows, the installation procedure configures the license manager to
start automatically after a reboot, and starts the license manager for you. If
you choose not to do this during installation, follow these steps:
1. From the Windows Start menu, select Programs −> TASKING FLEXlm
version −> FLEXlm Tools.
UNIX
1. Log in as the operating system administrator (usually root).
cd /usr/local/flexlm
INSTALLATION
The −2 and −p options restrict the use of the lmdown and lmremove
license administration tools to the license administrator. You can omit
these options if you want. Refer to the usage of lmgrd in Chapter 2,
Flexible License Manager (FLEXlm), for more information.
Software Installation 1−11
Windows
On Windows, the installation procedure does this for you. If you choose
not to do this during installation, follow these steps:
1. From the Windows Start menu, select Programs −> TASKING FLEXlm
version −> FLEXlm Tools.
5. Close the program by selecting Exit from the File menu. If a question
appears, answer Yes to save your settings.
UNIX
In performing any of the procedures below, keep in mind the following:
• Before you edit any system file, make a backup copy.
HP−UX
1. Log in as the operating system administrator (usually root).
After the −c option, you have to specify the correct location of the license
file.
• • • • • • • •
1−12 Chapter 1
SunOS4
1. Log in as the operating system administrator (usually root).
3. Make it exacutable:
chmod u+x rc.lmgrd
4. Create an ’S’ link in the /etc/rc3.d directory to this file and create ’K’
links in the other /etc/rc?.d directories:
ln /etc/init.d/rc.lmgrd /etc/rc3.d/Snumrc.lmgrd
ln /etc/init.d/rc.lmgrd /etc/rc?.d/Knumrc.lmgrd
INSTALLATION
If you want to use another name or directory for the license file, specify
the path of the license file when you start the license manager, on the
lmgrd command line (−c option). On Windows you can also use the
FLEXlm Tools.
When you want to determine the host ID of a laptop, be sure that the
laptop is not connected to a network, before starting the License
Administrator. Otherwise, your license will not work when you disconnect
your laptop from the network.
• • • • • • • •
1−14 Chapter 1
If you do not have the program licadmin you can download it from our
Web site at: http://www.tasking.com/support/flexlm/licadmin.zip . It is
also on every product CD that includes FLEXlm, in directory licensing.
Platform Method
UNIX hostname
Windows licadmin or:
Go to the Control Panel, open "System". On the
"Computer Name" tab look for "Full computer name".
2
2−2 Chapter 2
CHAPTER
2
FLEXLM
Flexible License Manager (FLEXlm) 2−3
2.1 INTRODUCTION
This chapter discusses Flexera Software’s Flexible License Manager and
how it is integrated into the TASKING toolchain. It also contains
descriptions of the Flexible License Manager license administration tools
that are included with the package, the license manager log file and its
contents, and the use of options files to customize your use of the
TASKING toolchain.
2.2.1 OVERVIEW
The Flexible License Manager (FLEXlm) is a set of utilities that, when
incorporated into software such as the TASKING toolchain, provides for
managing access to the software.
The following terms are used to describe FLEXlm concepts and software
components:
vendor daemon
The daemon that dispenses licenses for the requested
features. This daemon is built by an application’s vendor, and
contains the vendor’s personal encryption code. Tasking is
the vendor daemon for the TASKING software.
• • • • • • • •
2−4 Chapter 2
license manager
The daemon process that sends requests from client
processes to the correct vendor daemon on the correct
machine. The same license manager is used by all
applications from all vendors, as this daemon neither
performs encryption nor dispenses licenses. The license
manager processes no user requests on its own, but forwards
these requests to other daemons (the vendor daemons).
server node A computer system that is running both the license manager
and vendor daemon software. The server node will contain
all the dynamic information regarding the usage of all the
features.
License File
A license file must be present containing the information of all licenses.
This file is usually called license.dat. The default location of the license
file is in directory c:\flexlm for Windows and in directory
/usr/local/flexlm/licenses for UNIX. If you did install SW000098
then the licenses directory on UNIX will be empty, and on Windows
the file license.dat will be empty. In that case you can copy the license
file received from Altium by E−mail to this directory.
• • • • • • • •
2−6 Chapter 2
Example of a license.dat:
SERVER elliot 5100520c 7594
DAEMON Tasking /usr/local/flexlm/bin/Tasking
FEATURE SW008002−32 Tasking 3.000 1−jan−00 4 0B1810310210A6894 "123456"
If the license.dat file already exists then you should make sure that it
contains the DAEMON and FEATURE lines from your license key. An
appropriate SERVER line should already be present in that case. You
should only add a new SERVER line if no SERVER line is present. The third
field of the DAEMON line is the pathname to the Tasking daemon and
you may change it if necessary.
If the pathname of the resulting license file differs from this default
location then you must set the environment variable LM_LICENSE_FILE to
the correct pathname. If you have more than one product using the
FLEXlm license manager you can specify multiple license files by
separating each pathname (lfpath) with a ’;’ on Windows, or ’:’ on UNIX:
Windows:
set LM_LICENSE_FILE=lfpath[;lfpath]...
UNIX:
If you are running the TASKING software on multiple nodes, you have
three options for making your license file available on all the machines:
1. Place the license file in a partition which is available (via NFS on UNIX
systems) to all nodes in the network that need the license file.
FLEXLM
3. Set LM_LICENSE_FILE to "port@host", where host and port come from the
SERVER line in the license file.
Flexible License Manager (FLEXlm) 2−7
for notifying the daemon that the license.dat file has been changed.
Otherwise, you must type the command:
path/lmgrd −l /usr/tmp/license.log −local &
Keywords Function
RESERVE Ensure that TASKING software will always be available to
one or more users or on one or more host computer systems.
INCLUDE Specify a list of users who are allowed exclusive access to
the TASKING software.
EXCLUDE Specify a list of users who are not allowed to use the
TASKING software.
GROUP Specify a group of users for use in the other commands.
TIMEOUT Allow licenses that are idle for a specified time to be returned
to the free pool, for use by someone else.
NOLOG Causes messages of the specified type to be filtered out of
the debug log file.
DEBUGLOG Writes debug log information for this vendor daemon to the
specified file.
• • • • • • • •
2−8 Chapter 2
In order to use the daemon options capability, you must create an options
file and list its pathname as the fourth field on the DAEMON line for the
Tasking daemon in the license file. For example, if the daemon options
were in file /usr/local/flexlm/Tasking.opt (UNIX), then you
would modify the license file DAEMON line as follows:
DAEMON Tasking /usr/local/flexlm/bin/Tasking /usr/local/flexlm/Tasking.opt
Lines beginning with the sharp character (#) are ignored, and can be used
as comments. For example, the following options file would reserve one
copy of feature SWxxxxxx−xx for user pat", three copies for user lee",
and one copy for anyone on a computer with the hostname of terry"; and
would cause QUEUED messages to be omitted from the log file. In addition,
user joe" and group pinheads" would not be allowed to use the feature
SWxxxxxx−xx :
GROUP pinheads moe larry curley
RESERVE 1 SWxxxxxx−xx USER pat
RESERVE 3 SWxxxxxx−xx USER lee
RESERVE 1 SWxxxxxx−xx HOST terry
EXCLUDE SWxxxxxx−xx USER joe
EXCLUDE SWxxxxxx−xx GROUP pinheads
NOLOG QUEUED
What is Borrowing?
With ’borrowing’ you can use a floating license, even when you are not
FLEXLM
You indicate how long you want to borrow the license, and a copy of the
license will be stored on your PC. During that time the floating license will
be kept in use by the license server; other network users cannot use that
feature.
Flexible License Manager (FLEXlm) 2−9
After the specified time the floating license will be released, and the
feature can be used by other network users again.
If you are also using an older version of a tool, that does not support
borrowing, make sure that you use port@host to specify the license file,
instead of referencing a local license file (even if you are working on the
license server).
1. From the Windows Start menu, select Programs −> TASKING FLEXlm
version −> FLEXlm Tools, or start lmtools from the \licensing
directory on the FLEXlm product CD.
4. Specify the Return Date and optionally the Return Time fields.
Start all the tools you intend to use (compiler, assembler, linker, debugger,
etc.) at least once, so the borrowed license can be stored on your
computer. After that, you can unplug the network cable.
• • • • • • • •
2−10 Chapter 2
1. From the Windows Start menu, select Programs −> TASKING FLEXlm
version −> FLEXlm Tools, or start lmtools from the \licensing
directory on the FLEXlm product CD.
lmborrow
Supports borrowing of floating licenses.
lmdiag
Diagnoses license checkout problems.
lmdown
Gracefully shuts down all license daemons (both lmgrd and all vendor
daemons, such as Tasking) on the license server.
FLEXLM
lmgrd
The main daemon program for FLEXlm.
lmhostid
Reports the host ID of a system.
Flexible License Manager (FLEXlm) 2−11
lmpath
Shows the license path, or sets the license path in the FLEXlm registry
(Windows) or $HOME/.flexlmrc (UNIX).
lmremove
Removes a single user’s license for a specified feature.
lmreread
Causes the license daemon to reread the license file and start any new
vendor daemons.
lmstat
Helps you monitor the status of all network licensing activities.
lmswitch
Switches the debug log file.
lmver
Reports the FLEXlm version of a library or binary file.
tsk_licmaint
Test for hanging licenses and remove them.
• • • • • • • •
2−12 Chapter 2
2.4.1 LMBORROW
Name
lmborrow − borrow floating licenses
Synopsis
lmborrow {vendor | all} enddate [time]
lmborrow −clear
lmborrow −status
Description
lmborrow supports borrowing of licenses that contain the BORROW
attribute. It must be run on the machine where licenses are borrowed. It is
used to perform the following:
• Initiating borrowing by setting the borrow period.
This has the effect of setting LM_BORROW with the borrow period in
either the registry (Windows) or in $HOME/.flexlmrc (UNIX).
• Clearing the borrow period
• Determining borrow status
• Returning a borrowed license early
Parameters
vendor The vendor daemon name that serves the licenses to be
borrowed (e.g. Tasking), or all specifies all vendor daemons
in that license server.
enddate [time]
Date the license is to be returned in dd−mmm−yyyy format.
time is optional and is specified in 24−hour format (hh:mm)
in the FLEXlm licensed application’s local time. If time is
FLEXLM
unspecified, the checkout lasts until the end of the given end
date.
Options
−c license_file
Use the specified license_file. If no −c option is specified,
lmborrow looks for the environment variable
LM_LICENSE_FILE in order to find the license file to use. If
that environment variable is not set, lmborrow looks for the
file c:\flexlm\license.dat (Windows), or
/usr/local/flexlm/licenses/license.dat (UNIX).
−d display
Used to specify the display from which the borrow was
initiated. Required if your current display is different than
what was used to initiate the borrow. On Windows, it is the
system name or, in the case of a terminal server environment,
the terminal server client name. On UNIX, it is in the form
/dev/ttyxx or the X−Display name.
• • • • • • • •
2−14 Chapter 2
2.4.2 LMDIAG
Name
lmdiag − diagnose license checkout problems
Synopsis
lmdiag [ −c license_file ] [ −n ] [ feature [:keyword=value]]
Description
lmdiag allows you to diagnose problems when you cannot check out a
license.
Parameters
feature Diagnose this feature only.
keyword=value
If a license file contains multiple lines for a particular feature,
select a particular line for lmdiag to report on. For example:
lmdiag f1:HOSTID=12345678 attempts a checkout on the
line with the host ID 12345678. keyword is one of the
FLEXLM
Options
−c license_file
Diagnose the specified license_file. If no −c option is
specified, lmdiag looks for the environment variable
LM_LICENSE_FILE in order to find the license file to use. If
that environment variable is not set, lmdiag looks for the file
c:\flexlm\license.dat (Windows), or
/usr/local/flexlm/licenses/license.dat (UNIX).
• • • • • • • •
2−16 Chapter 2
2.4.3 LMDOWN
Name
lmdown − graceful shutdown of all license daemons
Synopsis
lmdown [ −c license_file ] [ −vendor vendor ] [ −q ] [ −all ] [ −force ]
Description
The lmdown utility allows for the graceful shutdown of all license
daemons (both lmgrd and selected or all vendor daemons, such as
Tasking) on all nodes. You may want to protect the execution of
lmdown, since shutting down the servers causes users to lose their
licenses. See the −p option in Section 2.4.4, lmgrd.
Options
−c license_file
FLEXLM
−vendor vendor
Shut down only this vendor daemon (for example Tasking).
lmgrd continues running.
• • • • • • • •
2−18 Chapter 2
2.4.4 LMGRD
Name
lmgrd − flexible license manager daemon
Synopsis
lmgrd [ −c license_file ] [ −l [+]logfile ] [−2 −p] [−local]
[−x lmdown] [−x lmremove] [−z] [−v]
Description
lmgrd is the main daemon program for the FLEXlm distributed license
management system. When invoked, it looks for a license file containing
all required information about vendors and features and starts those
vendor daemons. On UNIX systems, it is strongly recommended that
lmgrd be run as a non−privileged user (not root).
Options
−c license_file
Use the specified license_file. If no −c option is specified,
lmgrd looks for the environment variable
LM_LICENSE_FILE in order to find the license file to use. If
that environment variable is not set, lmgrd looks for the file
c:\flexlm\license.dat (Windows), or
/usr/local/flexlm/licenses/license.dat (UNIX).
−l [+]logfile Specifies the debug log file to use. With the + character
appends logging entries. Instead of using the −l option you
can use output redirection (> or >>) to specify the name of
the debug log file.
then root does not have permission to use any of the above
utilities. If −2 −p is used when starting lmgrd, no user on
Windows can shut down the license server with lmdown.
See the −x option how to stop lmgrd.
−x lmdown Disable the lmdown command (no user can run lmdown).
If lmdown is disabled, stop lmgrd via kill pid (UNIX) or
stop the lmgrd and vendor daemon processes (Tasking)
through the Windows Task Manager or Windows service. On
UNIX, be sure the kill command does not have a −9
argument.
−x lmremove
Disable the lmremove command (no user can run
lmremove).
lmdown, lmstat
• • • • • • • •
2−20 Chapter 2
2.4.5 LMHOSTID
Name
lmhostid − report the host ID of a system
Synopsis
lmhostid [−n] [−type]
Description
lmhostid returns the FLEXlm host ID of the current platform. Invoked
without any arguments, lmhostid displays the default host ID type for the
current platform. Otherwise, the host ID corresponding to the requested
type is displayed, if supported on the current platform.
Options
−n Only the host ID, itself, is returned as a string, which is
appropriate to use with HOSTID= in the license file. Header
text is suppressed.
Option Description
−ether Ethernet address.
−string String id.
−vsn Volume serial number. (Windows platforms only)
−flexid Parallel or USB FLEXid hardware key identification.
(Windows platforms only)
FLEXLM
Option Description
−user Current user name.
−display Current display name. On Windows, it is the system name or,
in case of a terminal server environment, the terminal server
client name. On UNIX, it is in the form /dev/ttyxx or the
X−Display name.
−hostname Current host name.
−internet IP address of current platform in the form ###.###.###.###.
• • • • • • • •
2−22 Chapter 2
2.4.6 LMPATH
Name
lmpath − control FLEXlm license path settings
Synopsis
lmpath {−add | −override} {vendor | all} license_file_list
lmpath −status
Description
The lmpath utility allows direct control over FLEXlm license path settings.
It is used to add, override, or get the current license path settings.
Parameters
vendor The vendor daemon name (e.g. Tasking), or all specifies all
vendor daemons in that license server.
license_file_list
A colon−separated list on UNIX and a semicolon− separated
list on Windows. If license_file_list is the null string, "", then
the specified entry is deleted.
Options
−add Prepends license_file_list to the current license file list or
creates the license file list, if it does not exist, initializing it to
license_file_list. Duplicates are discarded.
2.4.7 LMREMOVE
Name
lmremove − remove specific licenses and return them to license pool
Synopsis
lmremove [ −c license_file ] feature user user_host [ display ]
or:
Description
The lmremove utility allows the system administrator to remove a single
user’s license for a specified feature. This could be required in the case
where the licensed user was running the software on a node that
subsequently crashed. This situation will sometimes cause the license to
remain unusable. lmremove will allow the license to return to the pool of
available licenses.
The −h variation uses the server_host, port, and license handle, as reported
by lmstat −a.
You can protect the unauthorized execution of lmremove when you start
up the license manager daemon, lmgrd, because removing a user’s license
is disruptive.
Options
−c license_file
Use the specified license_file. If no −c option is specified,
lmremove looks for the environment variable
LM_LICENSE_FILE in order to find the license file to use. If
that environment variable is not set, lmremove looks for the
file c:\flexlm\license.dat (Windows), or
/usr/local/flexlm/licenses/license.dat (UNIX).
lmgrd, lmstat
• • • • • • • •
2−24 Chapter 2
2.4.8 LMREREAD
Name
lmreread − tells the license daemon to reread the license file
Synopsis
lmreread [ −c license_file ] [ −vendor vendor ] [ −all ]
Description
lmreread allows the system administrator to tell the license daemon to
reread the license file and start any new vendor daemons that have been
added. In addition, all currently running vendor daemons are signaled to
reread the license file and their end−user options files for changes in
feature licensing information or option settings. lmreread recognizes
changes to server machine host names, but cannot be used to change
server TCP/IP port numbers.
If the optional vendor daemon name is specified, only the named daemon
rereads the license file and its end−user options file (in this case, lmgrd
does not reread the license file).
lmreread uses the license file from the command line (or the default file,
if none is specified) only to find the license daemon to send it the
command to reread the license file. The license manager daemon, lmgrd,
will always reread the file that it loaded from the original path. If you need
to change the path to the license file read by the license manager daemon,
then you must shut down the daemon and restart it with that new license
file path.
daemon.
Flexible License Manager (FLEXlm) 2−25
Options
−c license_file
Use the specified license_file. If no −c option is specified,
lmreread looks for the environment variable
LM_LICENSE_FILE in order to find the license file to use. If
that environment variable is not set, lmreread looks for the
file license.dat in the default location.
−vendor vendor
Only this one vendor daemon rereads the license file. lmgrd
restarts the vendor daemon if necessary.
lmgrd, lmdown
• • • • • • • •
2−26 Chapter 2
2.4.9 LMSTAT
Name
lmstat − report status on license manager daemons and feature usage
Synopsis
lmstat [ −a ] [−c license_file ] [ −f feature ] [ −S vendor ]
Description
lmstat helps you monitor the status of all network licensing activities,
including:
• Daemons that are running
• Users of individual features
• Users of features served by a specific DAEMON
• BORROW licenses borrowed
lmstat prints information that it receives from the license server; therefore,
it does not report on unserved licenses such as uncounted licenses. To
report on an uncounted license, the license must be added to a served
license file and the application must be directed to use the license server
for that license file (via @host, port@host or USE_SERVER). Queued users
and licenses shared due to duplicate grouping are also not returned by
lmstat.
Tasking: UP v8.4
where:
Options
−a Display all information.
−c license_file
Use the specified license_file. If no −c option is specified,
lmstat looks for the environment variable
LM_LICENSE_FILE in order to find the license file to use. If
that environment variable is not set, lmstat looks for the file
c:\flexlm\license.dat (Windows), or
/usr/local/flexlm/licenses/license.dat (UNIX).
lmgrd
• • • • • • • •
2−28 Chapter 2
2.4.10 LMSWITCH
Name
lmswitch − switch the debug log file
Synopsis
lmswitch [ −c license_file ] feature new−file
or:
Description
The lmswitch utility switches the debug log file written by a particular
vendor daemon (such as Tasking) by closing the existing debug log for
that vendor daemon and starting a new debug log for that vendor daemon
with a new file name. It also starts a new debug log file written by that
vendor daemon if one does not already exist.
By default, debug log output from lmgrd and all vendor daemons started
by that lmgrd get written into the same debug file. lmswitch allows
companies to keep separate log files for different vendors and control the
size of their debug log file.
If debug log output is not already directed to a separate file for this vendor
daemon, lmswitch tells the vendor daemon to start writing its debug log
output to a file, new−file. If this vendor daemon is already writing to its
own debug log, lmswitch tells the vendor daemon to close its current
debug log file and start writing its debug log output to new−file.
The effect of lmswitch continues only until the vendor daemon is shut
down or its options file is reread via lmreread. When the vendor daemon
is restarted or its options file is reread, it looks for a DEBUGLOG line in the
options file to determine whether or not to write its debug log output into
its own file and, if so, what file to write.
FLEXLM
Parameters
feature Any feature this daemon supports.
Options
−c license_file
Use the specified license_file. If no −c option is specified,
lmswitch looks for the environment variable
LM_LICENSE_FILE in order to find the license file to use. If
that environment variable is not set, lmswitch looks for the
file c:\flexlm\license.dat (Windows), or
/usr/local/flexlm/licenses/license.dat (UNIX).
• • • • • • • •
2−30 Chapter 2
2.4.11 LMVER
Name
lmver − report the FLEXlm version of a library or binary file
Synopsis
lmver filename
Description
The lmver utility reports the FLEXlm version of a library or binary file.
Parameters
filename Name of the executable of a TASKING product, lmgrd, a
license administration tool or a vendor daemon (Tasking).
FLEXLM
Flexible License Manager (FLEXlm) 2−31
2.4.12 TSK_LICMAINT
Name
tsk_licmaint − test for hanging licenses and remove them
Synopsis
tsk_licmaint license_file hours [logfile]
Description
The tsk_licmaint utility allows the system administrator to check for
floating licenses which appear to be hanging and automatically removes
them.
When a license is freed, it takes the linger−time before it really is free and
can be re−used again.
Parameters
license_file The name of the license file to read licenses from.
• • • • • • • •
2−32 Chapter 2
1. From the Windows Start menu, select Programs −> TASKING FLEXlm
version −> FLEXlm Tools.
4. Enter the information as shown in the image above (enable Use Services
and Start Server at Power Up) and click on the Save Service button.
From now on, when the machine is rebooted, the license manager starts
automatically as a Windows service.
• • • • • • • •
2−34 Chapter 2
1. From the Windows Start menu, select Programs −> TASKING FLEXlm
version −> FLEXlm Tools.
The FLEXLM License Manager for TASKING license server starts and
writes its debug log output to c:\flexlm\license.log .
FLEXLM
Flexible License Manager (FLEXlm) 2−35
Where:
• • • • • • • •
2−36 Chapter 2
Connected to host
This daemon is connected to its peer on host.
EXPIRED: feature
feature has passed its expiration date.
kill all the vendor daemons; vendor daemons shut themselves down.
Lost quorum
The daemon lost quorum, so will process only connection requests from
other daemons.
Flexible License Manager (FLEXlm) 2−37
• • • • • • • •
2−38 Chapter 2
Started vendor
The license daemon logs this message whenever it starts a new vendor
daemon.
• • • • • • • •
2−40 Chapter 2
No features to serve!
A vendor daemon found no features to serve. This could be caused by bad
data in the license file.
accept: message
An error was detected in the accept system call.
select: message
An error in a select system call was detected.
Server exiting
The server is exiting. This is normally due to an error.
• • • • • • • •
2−42 Chapter 2
This error could also be the result of using an old version of lmgrd or
Tasking daemon, in combination with a TASKING tool which requires a
newer version of lmgrd/Tasking daemon, and using port@host.
because there may be a typo in the fourth field of a FEATURE line of your
license file. In all other cases you need a new license because the current
license is for an older version of the product.
Replace the FEATURE line for the old version of the product with a
FEATURE line for the new version (it can be found on the new license
data sheet). Run the lmreread command afterwards. You can have only
one version of a feature (previous versions of the product will continue to
work).
Every user needs to have read access on the license file and at least
execute access on every directory component in the pathname of the
license file. Write access is never needed. Read access on directories is
recommended.
Flexible License Manager (FLEXlm) 2−43
where "iiiiii" is a six digit software code and "jj" is a two digit host code
for identifying a compatible host architecture. During product installations
the product code is shown, e.g. SW008002, SW019002. The number in the
software code is the same as the number in the product code except that
the first number may contain an extra leading zero (it must be six digits
long).
The line after the license error message describes the expected feature
format and includes the host code.
Correct the license file using the license key for the product and run the
lmreread command. There is one catch: do not add extra SERVER lines or
change existing SERVER lines in the license file.
FLEXlm license error, license server does not support this feature
If the LM_LICENSE_FILE variable has been set to the format
number@host then see first the solution for the message:
FLEXlm license error, no such feature exists
Run the lmreread program to inform the license server about a changed
license data file. If lmreread succeeds informing the license server but the
error message persists, there are basically three possibilities:
1. The license key is incorrect. If this is the case then there must be an error
message in the log file of lmgrd. Correct the key using the license key for
the product. Finally rerun lmreread. The log file of lmgrd is usually
specified to lmgrd at startup with the −l option or with >.
2. Your network has more than one FLEXlm license server daemon and the
default license file location for lmreread differs from the default assumed
by the program. Also, there must be more than one license file. Try one of
the following solutions on the same host which produced the error
message:
− type:
lmreread −c /usr/local/flexlm/licenses/license.dat
− set LM_LICENSE_FILE to the license file location and retry the
lmreread command.
• • • • • • • •
2−44 Chapter 2
FLEXlm license error, Cannot read license file data from server
This indicates that the program could not connect to the license server
daemon. This can have a number of causes. If the program did not
immediately print the error message but waited for about 30 seconds (this
can vary) then probably the license server host is down or unreachable. If
the program responded immediately with the error message then check
the following if the LM_LICENSE_FILE variable has been set to the format
number@host:
− is the number correct? It should match the fourth field of a SERVER
line in the license file on the license server host. Also, the host
name on that SERVER line should be the same as the host name set
in the LM_LICENSE_FILE variable. Correct LM_LICENSE_FILE if
necessary.
In any case one should verify if the license server daemon is running.
Type the following command on the host where the license server
daemon (lmgrd) is supposed to run.
On Windows:
FLEXLM
From the Windows Start menu, select Run and enter taskmgr. On the
Processes tab, look for lmgrd.
If the command does not produce any output then the license server
daemon is not running. See below for an example how to start lmgrd.
Make sure that both license server daemon (lmgrd) and the program are
using the same license data. All TASKING products use the license file
c:\flexlm\license.dat (Windows), or
/usr/local/flexlm/licenses/license.dat (UNIX) unless
overruled by the environment variable LM_LICENSE_FILE . However, not
all existing lmgrd daemons may use the same default. In case of doubt,
specify the license file pathname with the −c option when starting the
license server daemon. For example:
lmgrd −c /usr/local/flexlm/licenses/license.dat \
−l /usr/local/flexlm/licenses/license.log &
If none of the above seems to apply (i.e. lmgrd was already running and
LM_LICENSE_FILE has been set correctly) then it is very likely that there
is a TCP port mismatch. The fourth field of a SERVER line in the license
file specifies a TCP port number. That number can be changed without
affecting any license. However, it must never be changed while the license
server daemon is running. If it has been changed, change it back to the
original value. If you do not know the original number anymore, restart
the license server daemon after typing the following command on the
license server host (UNIX):
kill PID
• • • • • • • •
2−46 Chapter 2
If you’ve received two versions of a product from the same vendor, you
must use the latest vendor daemon they sent you. An older vendor
daemon with a newer client will cause communication errors.
Please ignore letters appended to FLEXlm versions, for example, the "a" in
v8.4a. The appended letter indicates a patch, and does NOT indicate any
compatibility differences. In particular, some elements of FLEXlm didn’t
require certain patches, so a v8.4 lmgrd will work successfully with a
v8.4a vendor daemon.
I’ve received a new copy of a product from a vendor, and it uses a new
version of FLEXlm. Is my old license file still valid?
Yes. Older FLEXlm license files are always valid with newer versions of
FLEXlm.
• • • • • • • •
2−48 Chapter 2
TASKING Logistics CANNOT ship ANY orders that do not include the host
ID and/or host name information.
What if I do not know the information needed for the license key?
On Windows we have a software utility (licadmin.exe) which will obtain
and display the host ID so a customer can easily obtain this information.
This utility is available from our web site, placed on all product CDs
FLEXLM
(which support FLEXlm), and from technical support. If you have already
installed FLEXlm, you can also use lmhostid.
See also section 1.6.6, How to Determine the Host ID and section 1.6.7,
How to Determine the Host Name in chapter Software Installation.
• • • • • • • •
2−50 Chapter 2
Borrowing allows you to use the floating license while disconnected from
the network. The license will be kept occupied by the license manager for
the duration of the borrowing period.
If all floating licenses are in use, can I wait for a license to become
available?
Yes, you set the environment variable TASKING_LIC_WAIT on the client
system.
• • • • • • • •
2−52 Chapter 2
machine.domain
1. Make the sure the fully−qualified hostname is the name on the SERVER
line of the license file.
2. Make sure ALL client nodes, as well as the server node, are able to ’telnet’
to that fully−qualified hostname. For example, if the host is locally called
’speedy’, and the domain name is ’corp.com’, local systems will be able to
logon to speedy via ’telnet speedy’. But very often, ’telnet
speedy.corp.com ’ will fail, locally.
Note that this telnet command will always succeed on hosts in other
domains (assuming everything is configured correctly), since the network
will resolve speedy.corp.com automatically.
3. Finally, there must be an ’alias’ for speedy so it’s also known locally as
speedy.corp.com . This alias is added to the /etc/hosts file, or if
NIS/Yellow Pages are being used, then it will have to be added to the NIS
database. This requirement goes away in version 3.0 of FLEXlm.
• • • • • • • •
2−54 Chapter 2
Finally, hostnames must NOT have periods in the name. These are not
legal hostnames, and they will not work with DNS.
INDEX
Index−2 Index
INDEX
INDEX
Index Index−3
B H
borrowing, 2−8 host ID, determining, 1−13
host name, determining, 1−14
C I
client, 2−3
installation
licensing, 1−7
D Linux, 1−3
UNIX, 1−4
daemon, 2−3 Windows, 1−3
debug log file, 2−4, 2−28, 2−35
L
E license
environment variables floating, 1−7, 2−3
LM_LICENSE_FILE, 1−6, 1−13, 2−6 node−locked, 1−7, 2−3
PATH, 1−6 obtaining, 1−7
TASKING_LIC_WAIT, 1−6 wait for available license, 1−6, 2−50
errors, FLEXlm license, 2−42 license file, 2−4, 2−5
default location, 2−6
location, 1−13
setting search directory, 1−6
F license manager, 2−4
licensing, 1−7
FAQ, FLEXlm, 2−46 LM_BORROW, 2−12
feature, 2−3 LM_LICENSE_FILE, 1−13, 2−6
Flexible License Manager, 2−1 lmborrow, 2−12
FLEXlm, 2−1 lmdiag, 2−14
borrow floating licenses, 2−12, 2−50 lmdown, 2−16
debug log file, 2−35 lmgrd, 2−18
FAQ, 2−46 lmhostid, 2−20
frequently asked questions, 2−46 lmpath, 2−22
license administration tools, 2−10 lmremove, 2−23
for Windows, 2−32 lmreread, 2−24
license errors, 2−42 lmstat, 2−26
options file, 2−7 lmswitch, 2−28
floating license, 1−7
• • • • • • • •
Index−4 Index
N T
node−locked license, 1−7 Tasking vendor daemon, 2−3
tsk_licmaint, 2−31
S V
server node, 2−4
software installation, 1−1 vendor daemon, 2−3
Linux, 1−3
INDEX