hexagon logo

Check the number of tokens in use.

I know this should be an easy one.
 
Seems I had a .bat file years ago I could run that would show me how many tokens I currently had in use. I think licensing has changed over the years, and either way what I have, which was using "lmstat", no longer works. Is there another and/or easier way I'm forgetting...???
  • Hi,
    you can check your 'C:\...\MSC.Software\MSC_Licensing\Helium\LOG\lmgrd.log' file and search for 'OUT:'
     
     9:18:01 (MSC) OUT: "MSCONE" alexis.delrio@*********** [MSCONE:ADAMS_View] (5 licenses)
     9:18:01 (MSC) IN: "MSCONE" alexis.delrio@*********** [MSCONE:ADAMS_View] (5 licenses)
     
    out you take from the pool, in you release them bakc
  • Hi Alexis,
     
    Thanks for the reply, but I don't have that path or file in my install directory...(???)
  • Hi,
    lmstat should still work so for my setup something like:
     
    "C:\Program Files\MSC.Software\MSC Licensing\Helium\lmutil.exe" lmstat -c 27500@UKFRI-CXLHMN3 -f MSCONE
     
    note the use of "" for the path name with spaces in it and the license server to query "27500@UKFRI-CXLHMN3 " needs to be your relevant setup info. The feature (-f) being checked here is MSCONE.
     
    a crude bat file like :
    @ECHO off
    "C:\Program Files\MSC.Software\MSC Licensing\Helium\lmutil.exe" lmstat -c 27500@UKFRI-CXLHMN3 -f MSCONE | find /N "in use"
    pause
     
    would probably work.
    Note if you don't have lmutil on your machine you need to copy it from the license server machine.
  • Hi Arthur,
     
    Thanks for the reply.
     
    All I have under my "MSC.Software" directory is "Adams". Could this be because I'm on "Masterkey", not "MSCOne"?
     
    image
  • The lmutil application will be in the MSC licensing folder on the license server machine. Your machine is probably just running application programs (ADAMS etc) and does not need (or have) any of the licensing software installed on to it. Querying the server over the network with lmutil obviously requires you to get a copy of lmutil from somewhere, the license server machine being an obvious place to find it. Alternatively you might be able to install the MSC Licensing software somewhere else so you can extract the lmutil.exe to place on your machine. I don't know what access you have to the server folders or the installation packages etc. Note that these days the default location of software that should never be modified during normal events is "Program Files" and so we can end up with both a C:Program Files\MSC.Software folder and a C:MSC.Software folder - and of course things do not have to be installed into "default" locations.
    I don't know if that helps at all in finding lmutil.exe but it might. Of course some IT person should be able to extract the lmutil.exe from the server machine and give a copy to you - but you may need to do some persuading.
  • FYI my equivalent picture:
    image
    but I am running a license server on my machine which is why I have the MSC Licensing installed and lmutil:
    image
    Note for Master Key licenses you would search for the feature CAMPUS and not MSCONE