Diagnose and solve license problems
If a problem occurs, please track the following information, which can be useful to service personnel.
- Which operating system is in use, and which version of that operating system.
- Type of computer used as license server.
- FLEXlm version. Use the lmver or lmgrd -v commands to identify the version. See lmutil for more detail.
- Error or warning messages that appear.
- Did the server start correctly?
- Are you using a combined or a separate license?
- Are you using a single server or multiple server redundancy?
- What information is returned when you execute the lmstat - acommand? lmstat returns license management status information. See lmutil for more detail.
- What information is returned when you execute the lmdiag command. lmdiag returns information relevant to license checkout problems. See lmutil for more detail.
FLEXlm license error messages
FLEXlm and FLEXnet provide error messages that can help guide you in diagnosing a problem. FLEXlm and FLEXnet errors with the same numerical code are identical.
For a complete listing of messages you will see in the "debug log" see Appendix G of the FLEXlm End User Guide.
(You can find the guide at the Advantest Web Site: .)
|
Error Code |
FLEXlm License Error Description |
|---|---|
|
-1 |
Cannot find license file. |
|
-2 |
Invalid license file syntax. |
|
-3 |
No server for this feature. |
|
-4 |
Licensed number of users already reached. |
|
-5 |
No such feature exists. |
|
-8 |
Invalid (inconsistent) license key or signature. The license key/signature and data for the feature do not match. This usually happens when a license file has been altered. |
|
-9 |
Invalid host. The hostid of this system does not match the hostid specified in the license file. |
|
-10 |
Feature has expired. |
|
-11 |
Invalid date format in license file. |
|
-13 |
No SERVER lines in license file. |
|
-14 |
Cannot find SERVER hostname in network database. The lookup for the hostname on the SERVER line in then license file failed. This often happens when the host file, or NIS, or DNS is incorrect. Workaround: Use IP address (for example, 123.456.789.123) instead |
|
-15 |
Cannot connect to license server. The server (lmgrd) has not been started yet, or the wrong port@host or license file is being used |
|
-16 |
Cannot read data from license server |
|
-18 |
License server does not support this feature |
|
-21 |
Reports FLEXlm license version |
|
-26 |
Request for more licenses than this feature supports |
The FLEXnet End User Guide at the Advantest Web Site: .
Losing connection to license server
In case you loose connection to the license server (for example, due to a network outage) the software will continue working for two hours. After that time it will shutdown automatically.
A window (see below) is displayed every 30 minutes to inform you about the lost connection and the remaining time for which the software can still be used.
Changing the message interval
To change the interval in which warning messages are shown you can modify the flexlm.cfgfile in the /etc/opt/hp93000/soc_commondirectory. The entry WarningInterval <minutes> defines the interval in which warning messages are shown. Default value is 30 minutes.
License server behavior
If the connection is lost the license server frees checked out licenses after 20 minutes. This is the minimum time. You can increase the duration in an option file on the license server. The option file must be named socbu.opt and reside in the same directory as the vendor daemon socbu. For details on the socbu.opt option file please refer to the FLEXlm End User Guide.
When the license server connection is restored, the 2-hours-timeout is reset and licenses are checked out again.
Using the FLEXlm debug log
In case of problems with the license server, the status and error messages of the FLEXlm debug log will be useful.
The license server keeps its log files in the /opt/flexlm/log directory. All files are tagged with a time stamp marking the date of creation. The most recent file is available via a hard link: lmgrd_socbu.log. The last entries at the end of /opt/flexlm/log/lmgrd_socbu.log provide information about recent licensing issues.
The log files contain information about:
- configuration problem messages,
- daemon software messages, and
- informational messages.
These messages are useful in case you need to debug the license server.
For a listing of possible debug log messages see the FLEXlm End User Guide.
You can find the FLEXlm End User Guide at the Advantest Web Site: Service & Support > IC Test Systems > Licensing > V93000 FLEXlm License Server Software Downloads and Documents.
FLEXLM_DIAGNOSTICS environmental variable
The FLEXLM_DIAGNOSTICS environmental variable is mainly used to diagnose license check out problems.
Note: To diagnose license check out problems, Advantest recommends to set the variable to FLEXLM_DIAGNOSTICS=stdout instead of level 3. This provides the same data but avoids the creation of empty flex*.log files in your SmarTest start directory.
This diagnostic tool provides up to three levels of diagnostic, depending on the version of FLEXlm installed on your system. Each level increases the diagnostic functionality available when FLEXLM_DIAGNOSTICS is used. Level 2 includes functionality of levels 2 and 1. Level 3 includes the functionality of levels 3, 2 and 1.
The examples below display the information that will be retrieved when the environmental variable is set to 1, 2, or 3. Text in bold font indicates additional information provided by each level, compared to the preceding level.
- Level 1:
For use when a license checkout fails to load. When set to 1 a FLEXlm licensing check out error message is shown, as well as a complete list of the license files that the application attempted to use.
- Level 2:
For use when a license checkout fails to load. In addition to level 1 information, the level 2 diagnostic file returns information about the present checkout arguments. Among arguments listed in lm_checkout: feature, version, num_lic, queue_flag, dupgroup_mask.
- Level 3:
For use both if a checkout is successful and if it fails to load. Information about how the license is granted is displayed; for example, whether a server is used, the name of the license file, and how the license server has been designated.
In case of a successful checkout, the log file is still created, but contains no information. We recommend to use FLEXLM_DIAGNOSTICS=stdout instead (see Note above).
Note: Default FNP license directory (path): /opt/flexlm/licenses
Example of Level 1
export FLEXLM_DIAGNOSTICS=1
FLEXlm checkout error: Cannot find license file (-1,73:2) No such file or directory license file(s): /path/licenses/testing.lic license.lic
Example of Level 2
export FLEXLM_DIAGNOSTICS=2
FLEXlm checkout error: Cannot find license file (-1,73:2) No such file or directory license file(s): /path/licenses/testing.lic license.lic
lm_checkout ("f1", 1.0, 1, 0x0, ..., 0x4000)
Example of Level 3
export FLEXLM_DIAGNOSTICS=3
FLEXlm checkout error: Cannot find license file (-1,73:2) No such file or directory license file(s): /path/licenses/testing.lic license.lic
lm_checkout ("f1", 1.0, 1, 0x0, ..., 0x4000)
app1
Checkout succeeded: f0/14263EAEA8E0
License file: ./servtest.lic
No server used
app2
Checkout succeeded: f1/BC64A7B120AE
License file: @localhost
License server: @localhost
app3
Checkout succeeded: f1/BC64A7B120AE
License file: ./servtest.lic
License server: @speedy
Note: Text in bold indicates diagnostic information returned for that level of diagnostic code that is not returned at a lower level.
Server and network crash diagnostic table
In any server or network crash scenario the test systems will continue to run the current tests for two hours or until there is a change of test device. System calibration and diagnostics will, similarly, result in stopping the current device test.
Test systems cannot initiate new tests until the failure case is repaired.
The Recovery column indicates the repair for each crash scenario. "ELF" in the table refers to the Emergency License Facility, that is explained in the section Emergency licenses.
|
Failure Case |
Impact on Test System |
Recovery |
|---|---|---|
|
FLEXlm License Server Crash |
Systems that get their licenses from this server stop once they change device, reboot, calibrate, run diagnostic. Otherwise the testers keep running |
If Harddisk failure, repair Harddisk, install SW and existing licenses. If Motherboard failure, use ELF process via WEB to obtain 10 days license. Within 10 days obtain ReHosted licenses from Advantest Support. |
|
Test Floor Network down |
Systems that get their licenses from this server stop once they change device, reboot, calibrate, run diagnostic. Otherwise the testers keep running |
For long time Network outage: Use Elf process on a network outside the test floor (Internet Cafe) to obtain local licenses for each tester computer. (gives 10 days access)
|
|
FLEXlm License Server Crash and Test Floor Network down |
Systems that get their licenses from this server stop once they change device, reboot, calibrate, run diagnostic. Otherwise the testers keep running |
Use ELF process on a Network outside Test Floor (for example, Internet Cafe) and obtain license. Use floppy disk, Flash card, any removable media, or print out license key and type in on test floor computers. |
|
FLEXlm License Server Crash and Advantest Server (ELF) down |
Systems that get their licenses from this server stop once they change device, reboot, calibrate, run diagnostic. Otherwise the testers keep running |
No recovery until Advantest server is up again. (We estimate the probability of both failures occurring simultaneously at about 0.001.) |
Mismatch in license server version
After having updated SmarTest you may get an error message which asks you to upgrade the license server:
