The lmstat command will report the quantity of a particular feature with the -f option. However, if you have multiple versions of a license feature, they're rolled up into a single count by default. For example:
Z:\>lmutil lmstat -c 1717@lic_server -f qhsimvl
lmutil - Copyright (c) 1989-2011 Flexera Software, Inc. All Rights Reserved.
Flexible License Manager status on Fri 10/31/2014 14:09
[Detecting lmgrd processes...]
License server status: 1717@lic_server
License file(s) on lic_server: C:\MentorGraphics\License_Files\lmstat_test.txt:
lic_server: license server UP (MASTER) v11.11
Vendor daemon status (on lic_server):
mgcld: UP v11.11
Feature usage info:
Users of qhsimvl: (Total of 10 licenses issued; Total of 0 licenses in use)
This might leave you with the impression that you have more features available for the version of the application you're running than you really do.
Note:Every Mentor Graphics application requires a minimum version of a license feature, usually tied to the build or release date of the application.
Fortunately, adding the -i option to your lmstat command will break down the overall count of a feature into separate counts for each version of that feature. For example:
Z:\>lmutil lmstat -c 1717@lic_server -f qhsimvl -i
lmutil - Copyright (c) 1989-2011 Flexera Software, Inc. All Rights Reserved.
Flexible License Manager status on Fri 10/31/2014 14:09
[Detecting lmgrd processes...]
License server status: 1717@lic_server
License file(s) on lic_server: C:\MentorGraphics\License_Files\lmstat_test.txt:
lic_server: license server UP (MASTER) v11.11
Vendor daemon status (on lic_server):
mgcld: UP v11.11
Feature usage info:
Users of qhsimvl: (Total of 10 licenses issued; Total of 0 licenses in use)
NOTE: lmstat -i does not give information from the server,
but only reads the license file. For this reason,
lmstat -a is recommended instead.
Feature Version # licenses Expires Vendor
_______ _______ __________ _______ ______
qhsimvl 2014.030 5 10-nov-2014 mgcld
qhsimvl 2015.100 5 10-nov-2014 mgcld
In this example, I could run up to 10 simultaneous Verilog simulations using a version of Modelsim that requires a qhsimvl with a minimum version of 2014.030 or older (2013.110 for example). However, I could only run 5 simultaneous simulations using a version of Modelsim that requires 2014.040 or newer.
Keep the -i option in mind if you ever suspect you're not able to use the full count of a particular feature.