Is there a way to use a pythn script to query license server

   3511   2   0
User Avatar
Member
18 posts
Joined: Aug. 2007
Offline
Just building some launch scripts here and I was kind of wondering if it was possible to get a response from the license server by way of a python script as to whether a license was free or not.

A simple number of seats un-used getting returned would be most useful. Is there a commandline for Hkey? Using windows unfortunately but happy to use any python modules needed to give a true or false for a simple query to the server before it launches the app in question.
Cheers

J
User Avatar
Member
8081 posts
Joined: July 2005
Offline
Offhand, you can try parsing the output from running the “sesictrl -i” command line utility.
User Avatar
Member
18 posts
Joined: Aug. 2007
Offline
Perfect, That's the very thing. Discovered a shorter version of the output is returned when you use sesictrl -s. Just what I was looking for.

Many thanks!

J
  • Quick Links