IBM Support

Retrieve License information using lmstat

Question & Answer


Question

How to run lmstat manually to get license information from a license server?

Cause

RTM use lmstat to retrieve license information from license server, and the output is used to parse license checkout information. Sometimes, we need to run lmstat manually for troubleshooting purpose.

Answer

1) Get License Server Port@Server notation
From Console -> License Management -> License Services
Open the license service to troubleshoot, and look for Service Port@Server Notation.
For example, in the screenshot: 3700@lic4test

2) Get lmstat path


From Console -> License Management -> License Pollers
Open FLEXlm poller, and look for License Manager Command Path.


3) Go to the lmstat directory and run
./lmstat -a -c 3700@lic4test > /tmp/lmstat.out

To get license information with expiry date, run
./lmstat -a -i -c 3700@lic4test > /tmp/lmstat.out

/tmp/lmstat.out will contain the output

[{"Product":{"code":"SSZT2D","label":"IBM Spectrum LSF RTM"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Flexlm License","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Product":{"code":"SSVMSD","label":"Platform RTM"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":"License","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
17 June 2018

UID

isg3T1026843