[GIS] How to check active users of ArcGIS 10.2 Floating License with python 2.7

arcgis-10.2arcgis-desktoparcgis-license-managerpython-2.7

I want to find the users who are using ArcGIS 10.2 license with python script.
Also, what kind of license they are using. Is it possible to get the number of users which are connected to ArcGIS server but inactive or not using it so that I can disconnect those user to free the license for the other users who really need it.

Best Answer

Adding to MC5's answer, I get this info using the LMUTIL.EXE in the license manager ..\bin folder.

Here is the DOS command I use: lmutil lmstat -a -c @LMservername

Regarding "inactive" licenses, there is no way to get anything like this using Flexera. I've tried and ESRI has confirmed it is not possible. All the LM will tell you is who is connected and the time of connection. Inactivity is subjective.