Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Hi guys
For monitoring Pro/E or any other Flex licenses you could also try CADminTools. I've retired the main website, but it's still available online:
http://www.cadmin.pwp.blueyonder.co.uk/CADminTools/
I've not updated the public code for a few years, but it's still getting used by hundreds of companies all round the world to monitor thousands of licenses...
Have fun!
Edwin Muirhead
In Reply to David Haigh:
Steve,
Thanks for pointing me down the right path.
However I did find that when you reserve licenses for a group of people it puts an extra line in the output that throws the count off. I had to modify line 105 like this to get it to work for me:
if ($line =~ /$string/ && $line !~ m/RESERVATION/)
If you look at the output of the command his script is running I get this which has some issues.
"C:\Ptc\flexlm\bin\lmutil" lmstat -c "C:\Inetpub\wwwroot\ptcstat\ptc_license.dat" -f PROE_Flex3C
lmutil - Copyright (c) 1989-2006 Macrovision Europe Ltd. and/or Macrovision Corporation. All Rights Reserved.
Flexible License Manager status on Tue 4/19/2011 09:38
[Detecting lmgrd processes...]
Users of PROE_Flex3C: (Total of 13 licenses issued; Total of 13 licenses in use)
"PROE_Flex3C" v31.0, vendor: ptc_d
floating license
***** (v29.0) (*****/7788 1326), start Tue 4/19 9:16
8 RESERVATIONs for GROUP designers (*****/7788)
***** (v29.0) (*****/7788 315), start Tue 4/19 7:14
***** (v29.0) (*****/7788 218), start Tue 4/19 8:20
***** (v29.0) (*****/7788 615), start Tue 4/19 8:47
***** (v29.0) (*****/7788 727), start Tue 4/19 8:42
There are a couple of errors here. It's saying 13 licenses are in use and his script is counting the Reservations line. The 8 number shows how many licenses are still reserved or in otherwords free. 13-8 equals the 5 licenses that are in use.
If we look at a license were I don't reserver licenses for a group the output looks like this and his script counts the number in use properly.
"C:\Ptc\flexlm\bin\lmutil" lmstat -c "C:\Inetpub\wwwroot\ptcstat\ptc_license.dat" -f MATHCAD
lmutil - Copyright (c) 1989-2006 Macrovision Europe Ltd. and/or Macrovision Corporation. All Rights Reserved.
Flexible License Manager status on Tue 4/19/2011 09:45
[Detecting lmgrd processes...]
Users of MATHCAD: (Total of 16 licenses issued; Total of 4 licenses in use)
"MATHCAD" v20.0, vendor: ptc_d
floating license
***** (v14.1) (*****/7788 1007), start Mon 4/18 11:32
***** (v14.1) (*****/7788 930), start Mon 4/18 16:49
***** (v14.0) (*****/7788 101), start Wed 4/13 20:58
***** (v14.0) (*****/7788 1424), start Tue 4/19 8:25
Seems there should be a better way to grab the licenses. Not sure why he didn't just grab the values from ptcstatus. That's what I did back when I was running SGI's.
David Haigh