How to check which user is using NX license through license server at client

How to check which user is using NX license through license server at client

At user machine, create a text file and changed the extension to ".bat"
It will then "execute" when i double click it.
The content will :
1) set the licensing directory
2) list the status of the license but send this listing to a textfile instead of the command window.
3) open the textfile ( which is simpler to read rather than the command prompt), it will show something as below:


-----------------------------------------------------------------------------------------------------------------------


lmutil - Copyright (c) 1989-2015 Flexera Software LLC. All Rights Reserved.

Flexible License Manager status on Tue 8/1/2017 13:35


[Detecting lmgrd processes...]

License server status: 28000@DTS12-PC

    License file(s) on DTS12-PC: F:\Program Files\Siemens\PLMLicenseServer\License_Ugslmd.txt:


  DTS12-PC: license server UP (MASTER) v11.13.1


Vendor daemon status (on DTS12-PC):


    ugslmd: UP v11.13.1

Feature usage info:


Users of gateway:  (Total of 1 license issued;  Total of 1 license in use)


  "gateway" v31.0, vendor: ugslmd, expiry: 31-jan-2018

  floating license


    DTS123 DTS12-PC DTS12-PC0.0 (v31.000) (DTS12-PC/28000 101), start Tue 8/1 13:21


Users of geometric_tol:  (Total of 1 license issued;  Total of 1 license in use)


  "geometric_tol" v31.0, vendor: ugslmd, expiry: 31-jan-2018

  floating license



    DTS123 DTS12-PC DTS12-PC0.0 (v31.000) (DTS12-PC/28000 201), start Tue 8/1 13:21


-------------------------------------------------------------------------------------------------------------------------------------------


from above info i know that 1 license in use which user "DTS12-PC" using it..




4) delete the textfile when i closethe notepad.






The content of this batfile:

C:
cd C:\Program Files\Siemens\NX 10.0\UGFLEXLM
lmutil.exe lmstat -c 28000@servername -A > c:\temp\licenses_in_use.txt
notepad c:\temp\licenses_in_use.txt
del c:\temp\licenses_in_use.txt
REM pause

First line, "C:"  should point to your current NX installation drive.
second line, "cd C:\ ..." should "cd" to the directory where you have the "lmutil.exe" , normally you can follow this path " C:\Program Files\Siemens\NX X.X\UGFLEXLM" where x.x is your NX version.
thrid line , "lmutil.exe..." contains "servername" which of course you must replace with the name of your licenseserver.


Then keep this little ".batfile" for future use.
You can also run this from different computer if your firewalls allow it and if you have a same local copy of the lmutil.exe installed.