FLEXlm Utilities

lmdiag

Diagnoses licensing problems

lmdiag [–c license_file] [–n] [feature]

–clicense_file

Name of license file to diagnose. If this switch is not specified, lmdiag looks for

 

the environment variable LM_LICENSE_FILE. If the environment variable is not

 

set, lmdiag looks for the file /usr/local/flexlm/licenses/license.dat.

–n

Non-interactive mode; lmdiag does not prompt for any input. In this mode,

 

extended connection diagnostics are not available.

feature

Diagnose only the specified feature.

 

 

Description

If no feature is specified, lmdiag operates on all features in the license file in your

 

path. lmdiag first prints information about the license, then attempts to check out

 

each license. If the checkout succeeds, lmdiag indicates this. If the checkout fails,

 

lmdiag gives you the reason for the failure. If the checkout fails because lmdiag

 

cannot connect to the license server, then you have the option of running “extended

 

connection diagnostics.”

 

Extended diagnostics attempt to connect to each port on the license server node,

 

and can detect if the port number in the license file is incorrect. lmdiag indicates

 

each port number that is listening, and if it is an lmgrd process, lmdiag indicates

 

this as well. If lmdiag finds the vendor daemon for the feature being tested, then it

 

indicates the correct port number for the license file to correct the problem.

Appendix C License Administration

63