This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- FlexNet Publisher
- :
- FlexNet Publisher Forum
- :
- "lmutil lmstat" equivalent?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 01, 2015
01:06 PM
"lmutil lmstat" equivalent?
I'm writing some very simple software to query our license manager for the status of licenses. "lmutil lmstat -c -a" provides pretty much exactly what I need, and my software presently shells out, runs that command, and parses the output. However, I'd really prefer a more elegant solution (I hate parsing text!). For example, I'd prefer to be making the same calls to the server as "lmutil" is in this case. If "lmutil" is operating against a web service, I'd MUCH prefer to do the same, especially if the interaction is via SOAP or JSON. Is there any kind of API or WSDL available? Do we have to do anything on the server to allow this kind of interaction?
Thanks!
Brad.
Thanks!
Brad.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 15, 2015
07:19 AM
bplett wrote:
I'm writing some very simple software to query our license manager for the status of licenses. "lmutil lmstat -c -a" provides pretty much exactly what I need, and my software presently shells out, runs that command, and parses the output. However, I'd really prefer a more elegant solution (I hate parsing text!). For example, I'd prefer to be making the same calls to the server as "lmutil" is in this case. If "lmutil" is operating against a web service, I'd MUCH prefer to do the same, especially if the interaction is via SOAP or JSON. Is there any kind of API or WSDL available? Do we have to do anything on the server to allow this kind of interaction?
Thanks!
Brad.
If you like the programing language Perl, please have a look at
http://search.cpan.org/~odenbach/Flexnet-lmutil-1.4/lib/Flexnet/lmutil.pm
This module takes over the process of parsing the lmstat output and creates a nice object which is much more convenient to e.g. create web pages with.
Cheers,
Christopher
