LINE2:checkedOutCount#FF0000:"Checked out" \ LINE2:totalLicenses#000000:"Total licenses" \ } elsif (($command ne "get") & ($command ne "getnext")) :totalLicenses:AVERAGE \ $name =~ s/\://g # remove theĀ : from the end of the name My lmstat -c /usr/local/share/yourlicence.lic -f`
#Flexlm license
Print LOGFILE "Refreshing license info\n" To reflect where you have put lmutil, and the license file. You will have to modify the lmstat -c /usr/local/share/yourlicence.lic -f` I was able to download it from (there's binaries for a number of different architectures and operating systems. This is a FlexLM utility which can be used to query the FlexLM license server. Other SNMP server products may have a similar ability modifying this implementation to those products is left as an exercise for the reader We use the "pass_persist" functionality of Net-SNMP, where an arbitrary program can be run in a loop, which responds to queries from the master Net-SNMP agent for any SNMP OIDs below a certain root OID. I'm not sure of the significatn of the "someother_details" our installation references the product name and a key, but this will likely vary. I have found that only the first line, which is in the format similar to: I recommend /usr/local/share, but it's up to you you will need to modify the perl passthrough script to point to this file. On your FlexLM server, locate the license file and copy it to the server running net-SNMP, to some appropriate directory. Please report any further successes here. This has only been tested in one scenario so far, against one FlexLM server. datacollection-config.xml and snmp-graph.properties snippets (on this page).A "passthrough" script (on this page) to plug into Net-SNMP.The lmutil binary for the server running Net-SNMP.Net-SNMP installed and running on a server, being monitored by OpenNMS.FlexLM installed on your network, and the license file available.If you have FlexLM on your network, and you want OpenNMS to collect/graph license usage, this page presents one way of doing that. 1.6 datacollection-config.xml and snmp-graph.properties snippets.