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.


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.

  • that sounds like it might be what my former colleagues did - pipe that DOS command's output to another program or text file, to process it further with the tooling of your choice. In your case, maybe do this on a scheduled or nightly basis, to identify people who are camping on licenses, so you can at least bug them to get off! – MC5 Apr 7 '15 at 19:43

At the risk of being vague: ArcGIS (as of 10.1) uses FlexNet Publisher License Manager v11.9. See the License Manager Reference Guide. There doesn't appear to be a programmatic API, though there is an audit log. In prior versions of the license manager my colleagues used to use BAT or Perl to examine the license manager logs, I'm not clear if the new license manager's log is plain text to allow that. Maybe check the Flexera website to see if they describe an API to their product.

  • Both answers are relevant but unfortunately, I can mark only one as an answer. Thanks for your kind help. – Surya Apr 10 '15 at 7:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.