TOCPREVNEXTINDEX


Appendix C

Troubleshooting Guide


This appendix documents areas of FLEXlm that have given customers difficulty in the past.

C.1 General Troubleshooting Hints

The following are tips for debugging:

C.2 FLEXLM_DIAGNOSTICS


Note: The ability for FLEXlm to produce diagnostic output is controlled by your software vendor.


FLEXLM_DIAGNOSTICS is an environment variable that causes the application to produce diagnostic information when a checkout is denied. The format of the diagnostic information may change over time.

On UNIX, the diagnostic output goes to stderr.

On Windows, the output is a file in the current directory called flexpid.log, where pid is the application’s process ID.

C.2.1 Level 1 Content

If FLEXLM_DIAGNOSTICS is set to 1, then the standard FLEXlm error message is be presented, plus a complete list of license files that the application tried to use. For example:

setenv FLEXLM_DIAGNOSTICS 1
FLEXlm checkout error: Cannot find license file (-1,73:2) No such file or directory
license file(s): /usr/myproduct/licenses/testing.lic license.lic

C.2.2 Level 2 Content

If FLEXLM_DIAGNOSTICS is set to 2, then, in addition to level 1 output, the checkout arguments are presented. For example:

setenv FLEXLM_DIAGNOSTICS 2
FLEXlm checkout error: No such feature exists (-5,116:2) No such file or directory
license file(s): /usr/myproduct/licenses/testing.lic license.lic
lm_checkout("f1", 1.0, 1, 0x0, ..., 0x4000)

Note that the error message actually contains two separate problems, which both occurred during the checkout:

Following is a description of the arguments to lm_checkout()

lm_checkout(feature, version, num_lic, queue_flag, ..., dupgroup_mask)

where:

feature
The requested feature.
version
The requested version. The license file must contain a version >= the requested version.
num_lic
Number of licenses requested. Usually 1.
queue_flag
If 0, no queueing
If 1, queue for license (“blocking” queue)
If 2, queue for licenses, but return to application (“non-blocking” queue)
dupgroup_mask
Indicates duplicate grouping, also called license sharing. User, host, and display are as shown by lmstat -a.

C.2.3 Level 3 Content (FLEXlm v6.0+ only)

If FLEXLM_DIAGNOSTICS is set to 3, then, in addition to level 1 and 2 output, if a checkout is successful, information is printed explaining how the license was granted:

setenv FLEXLM_DIAGNOSTICS 3
app
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 that the feature name and license key are printed, along with the license file location (or host name if @host were used) and host name of the server, where applicable.


TOCPREVNEXTINDEX

 

FLEXlm End Users Guide
July 2003