lmstat
The lmstat utility helps you monitor the status of all network licensing activities, including:
• | Daemons that are running |
• | License files |
• | Users of individual features |
• | Users of features served by a specific vendor daemon |
• | BORROW licenses borrowed |
The lmstat utility 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.
Usage
lmstat [-a [--no-user-info]] [-asec] [-c license_file_list] [-f [feature] [--no-user-info]] [-i [feature]] [-s[server]] [-S [vendor]] [-t timeout_value] [-proj]
where:
Argument |
Description |
-a |
Displays all information. This option is a potentially expensive command. With many active users, this command option generates a lot of network activity. |
-A |
Lists all licenses that are currently checked out. |
-asec |
Displays information in hh:mm:ss format. |
-c license_file_list |
Uses the specified license files. |
-f [feature] |
Displays users of feature. If feature is not specified, usage information for all features is displayed. |
-i [feature] |
Displays information from the feature definition line for the specified feature, or all features if feature is not specified. |
-lm |
Displays the status of the license manager. |
-proj |
Appends project details along with usage information when the feature has been checked out via LM_PROJECT. It is an optional argument. |
-s [server] |
Displays the status of all license files listed in $VENDOR_LICENSE_FILE or $LM_LICENSE_FILE on server, or on all servers if server is not specified. Note:Server name or host name is case sensitive; use the same name as provided in your license file. |
-S [vendor] |
Lists all users of vendor’s features. |
-t timeout_value |
Sets connection timeout to timeout_value. This limits the amount of time lmstat spends attempting to connect to server. |
-v |
Displays the lmstat version, revision, and patch. |
-vd |
Displays the status of the vendor daemon. |
-old |
Allows communications with an old server that uses communications version 1.2 or earlier. |
-a --no-user-info |
Displays user information for each feature except individual user details. |
-f feature_name --no-user-info |
Displays usage information for a specified feature except individual user details. |
The output of lmstat -a without -f & without --no-user-info looks similar to the following:
lmstat - Copyright (c) 1989-2021 Flexera. All Rights Reserved.
Flexible License Manager status on Mon 7/15/2019 16:37
License server status: 27000@localhost
Vendor daemon status:
demo: UP v11.16.99
Feature usage info:
Users of f1: (Total of 8 licenses issued; Total of 2 licenses in use)
"f1" v3.0, vendor: demo, expiry: permanent(no expiration date)
platforms: x64_lsb , vendor_string: mnc
floating license
Users of f2: (Total of 7000 licenses issued; Total of 0 licenses in use)
Users of f3: (Total of 9000 licenses issued; Total of 2100 licenses in use)
"f3" v3.0, vendor: demo, expiry: permanent(no expiration date)
floating license
The output of lmstat -a --no-user-info looks similar to the following:
lmstat - Copyright (c) 1989-2021 Flexera. All Rights Reserved.
Flexible License Manager status on Mon 7/15/2019 16:37
Feature "f1" v2.0, vendor: demo, expiry: permanent(no expiration date) (Total of 4 licenses issued; Total of 0 floating non-reserved licenses in use)
(Total of 0 licenses queued; Total of 0 licenses reserved)
"f1" v2.0, vendor: demo, expiry: permanent(no expiration date)
platforms: i86_lsb , vendor_string: abcd
floating license
where:
Output |
Argument |
Description |
daniel |
user |
User name. |
myhost2 |
user_host |
Host where user is running. |
19.36.18.26 |
display |
Display where user is running. |
v1.0 |
version |
Version of feature. |
myhost1 |
server_host |
Host where license server is running. |
40000 |
port |
TCP/IP port on server_host where license server is running. |
102 |
handle |
License handle. |
start Fri 5/3 7:29 |
checkout_time |
Time that this license was checked out. |
The user, user_host, display, server_host, port, and handle information is used when removing licenses with lmremove.