To find out how many floating license seats are in use at a given point of time, you should run the command lmutil lmstat -a on the server. Note that the license server log is not intended to be used for usage reporting, and this is stated in the log header text. The output from the lmstat utility will look similar to this: C:\Flexlm>lmutil lmstat -a lmutil - Copyright (c) 1989-2003 by Macrovision Corporation. All rights reserved. Flexible License Manager status on Thu 1/1/2005 13:50 [Detecting lmgrd processes...] License server status: 8224@myserver License file(s) on myserver C:\Licenses\mylicensefile.txt: myserver: license server UP (MASTER) v9.2 Vendor daemon status (on myserver): armlmd: UP v9.2 Feature usage info: Users of rvd_arm: (Total of 10 licenses issued; Total of 1 license in use) "rvd_arm" v1.8, vendor: armlmd floating license ngnere clientpc CLIENTPC (v1.8) (myserver/8224 301), start Thu 1/1 14:01 Users of rvd_rtos: (Total of 10 licenses issued; Total of 0 licenses in use) Users of rvd_trace: (Total of 10 licenses issued; Total of 0 licenses in use) <etc>In this example, at the time the time the command was run, there were 10 seats in total for the rvd_arm feature and one of these was being used by the user "ngnere" on the computer "clientpc". This leaves 9 seats free. By writing an appropriate script, you can run the lmutil lmstat -a command on a regular basis and then analyse the output using a text parser, so that the number of users of a particular FEATURE or INCREMENT line over a period of time can be determined. You will need to decide how frequently you take a license usage snapshot and balance that against how much CPU time is needed to collect those data. An example script of how this can be done is available for download below. It should be noted that this example is provided "as is", and is supplied without support. You should also note the limitations of this script, as noted in the included readme file. For more information on license administration tools, see Chapter 7 of the FLEXnet End User Guide (enduser.pdf), which is available on your RealView Development Suite CD-ROM or from the following page of our website: http://www.arm.com/support/licensemanagement.html Downloads:
|