Hi Ricky,
I think you could use the "lmutil.exe" tool to generate a status report of
all the licenses. You should be able to parse through it with VB and
figure out which PC's are not currently taking a license.
LMUTIL can be installed to any machine, or run directly from the server if
you have administrative rights. Here is an example:
---------------------------------------------
C:\WINNT>\\server1\c$\flexlm\lmutil lmstat -c @server1 -a
lmutil - Copyright (C) 1989-2000 Globetrotter Software, Inc.
Flexible License Manager status on Thu 4/25/2002 17:31
[Detecting lmgrd processes...]
License server status: 27000@server1
License file(s) on SERVER1: C:\FlexLM\License\ADT_LDD-5.lic:
SERVER1: license server UP (MASTER) v7.1
Vendor daemon status (on SERVER1):
adskflex: UP v7.2
Feature usage info:
Users of 40200ACDLAND_3_0F: (Total of 5 licenses available)
Users of 40100ARCHDESK_3_3F: (Total of 5 licenses available)
"40100ARCHDESK_3_3F" v1.000, vendor: adskflex floating license
username1 WORKSTATION1 WORKSTATION1 (v1.000) (server1/27000 101), start
Thu 4/25 17:30
Users of 41100ACD_2002_0F: (Total of 5 licenses available)
---------------------------------------------
You could even create a VB program to run on the server that automatically
generates that report once every 10 minutes. It could place the report on
a common network location that everyone has access to. The code would go
something like this:
---------------------------------------------
Private Sub Timer1_Timer()
'The timer control is set to an interval of 65000 milliseconds.
'Since this is the maximum value for the timer control, we need
'to add a little extra code to make it run lmutil every 10 minutes:
Static LastTime As Date
If DateDiff("n", LastTime, Now) >= 10 Then
'shell out and use the greater than sign to cause the output
'to be redirected to the file of your choice:
Shell "C:\flexlm\lmutil lmstat -c @server1 -a >
\\server1\publicshare\output.txt"
LastTime = Now
End If
End Sub
---------------------------------------------
"Petri Ahava"
wrote in message
news:1E3594359007FB97841465D41EDAB685@in.WebX.maYIadrTaRb...
> Hi,
>
> the report log is one thing but Flex also keeps a debug log, which looks
> like this:
>
> 8:07:42 (lmgrd) -----------------------------------------------
> 8:07:42 (lmgrd) Please Note:
> 8:07:42 (lmgrd)
> 8:07:42 (lmgrd) This log is intended for debug purposes only.
> 8:07:42 (lmgrd) There are many details in licensing policies
> 8:07:42 (lmgrd) that are not reported in the information logged
> 8:07:42 (lmgrd) here, so if you use this log file for any kind
> 8:07:42 (lmgrd) of usage reporting you will generally produce
> 8:07:42 (lmgrd) incorrect results.
> 8:07:42 (lmgrd)
> 8:07:42 (lmgrd) -----------------------------------------------
> 8:07:42 (lmgrd)
> 8:07:42 (lmgrd)
> 8:07:42 (lmgrd) Detecting other lmgrd processes...
> 8:07:53 (lmgrd) FLEXlm (v7.1f) started on monsteri (IBM PC) (3/4/2002)
> 8:07:53 (lmgrd) FLEXlm Copyright 1988-2000, Globetrotter Software, Inc.
> 8:07:53 (lmgrd) US Patents 5,390,297 and 5,671,412.
> 8:07:53 (lmgrd) World Wide Web: http://www.globetrotter.com
> 8:07:53 (lmgrd) License file(s):
E:\Installs\AdLM\License\CAD-Q-LISENCE.LIC
> 8:07:53 (lmgrd) lmgrd tcp-port 27000
> 8:07:53 (lmgrd) Starting vendor daemons ...
> 8:07:53 (lmgrd) Starting vendor daemon at port 2080
> 8:07:53 (lmgrd) Started adskflex (pid 520)
> 8:07:53 (adskflex) Using options file:
> "E:\Installs\AdLM\License\ADSKFLEX.OPT"
> 8:07:53 (adskflex) Invalid license key (inconsistent authentication code)
> 8:07:53 (adskflex) ==>INCREMENT 40900INVBUN_5_0F adskflex 1.000
permanent
> 10 \
> VE [...]
> 8:07:53 (adskflex) Server started on monsteri for: 40700CADOV_2002_0F
> 8:07:53 (adskflex) 40900MDT_PP_6_0F 40300MAP_5_0F 41100ACD_2002_0F
> 8:07:53 (adskflex) 40100ARCHDESK_3_3F 416003DSVIZ_4_0F 41900ARDES_3_0F
> 8:07:53 (adskflex) 41700INVNTOR_5_3F
> 8:07:53 (adskflex) Report log started
> (+e:\installs\AdLM\License\REPORT.RL).
> 8:21:13 (adskflex) Rereading license file...
> 8:21:13 (adskflex) Server started on monsteri for: 40700CADOV_2002_0F
> 8:21:13 (adskflex) 40900MDT_PP_6_0F 40300MAP_5_0F 41100ACD_2002_0F
> 8:21:13 (adskflex) 40100ARCHDESK_3_3F 416003DSVIZ_4_0F 41900ARDES_3_0F
> 8:21:13 (adskflex) 41700INVNTOR_5_3F 40900INVBUN_5_0F
> 8:21:13 (adskflex) Updating feature 40700CADOV_2002_0F
> 8:21:13 (adskflex) Updating feature 40900MDT_PP_6_0F
> 8:21:13 (adskflex) Updating feature 40300MAP_5_0F
> 8:21:13 (adskflex) Updating feature 41100ACD_2002_0F
> 8:21:13 (adskflex) Updating feature 40100ARCHDESK_3_3F
> 8:21:13 (adskflex) Updating feature 416003DSVIZ_4_0F
> 8:21:13 (adskflex) Updating feature 41900ARDES_3_0F
> 8:21:13 (adskflex) Updating feature 41700INVNTOR_5_3F
> 8:21:13 (adskflex) ...Finished rereading
> 10:23:06 (adskflex) OUT: "41100ACD_2002_0F" Ahava@CAD-Q-PAT2
> 10:47:01 (adskflex) OUT: "41100ACD_2002_0F" Ahava@CAD-Q-PAT2
> 10:47:24 (adskflex) IN: "41100ACD_2002_0F" Ahava@CAD-Q-PAT2
> 10:48:14 (adskflex) IN: "41100ACD_2002_0F" Ahava@CAD-Q-PAT2
> 10:48:22 (adskflex) OUT: "41100ACD_2002_0F" Ahava@CAD-Q-PAT2
> 10:48:47 (adskflex) IN: "41100ACD_2002_0F" Ahava@CAD-Q-PAT2
> 10:54:47 (adskflex) OUT: "41100ACD_2002_0F" Ahava@CAD-Q-PAT2
> 11:21:23 (adskflex) IN: "41100ACD_2002_0F" Ahava@CAD-Q-PAT2
> 14:07:56 (lmgrd) TIMESTAMP 3/4/2002
>
> The file is cumulative but is zeroed every time you restart the server.
Hope
> this hels,
>
> Cheers,
>
>
> PetriAhava
> CAD-Q Finland
>
> "Ricky Lock" wrote in message
> news:D22C29F307AD5AFFA50E6E52311303BB@in.WebX.maYIadrTaRb...
> > Cheers Guy's
> >
> > It looks like I'm knackered!!! My VB routine used to read the log file
> every
> > 10 minutes then generate some HTML web pages which were displayed on a
> > company web site so people could locate PC's which we're free for CAD
use.
> >
> > Thanks again.
> >
> > "Kevin Nehls" wrote in message
> > news:035561ED7A1EE9C943E980763E62F2D3@in.WebX.maYIadrTaRb...
> > > You do. And you have to run it from the server that FlexLM is
installed
> > on.
> > > So if you need to access the log info remotely you can't. Which means
> > that
> > > when ever I need/want to run a report I've got to go upstairs, grab
one
> of
> > > our network admins, and have him watch over my shoulder as I run a
> report.
> > > A total pita. With the old AdLM I could just share out the AdLM
> directory
> > > and run a report from my desk without having to waste someone else's
> time.
> > >
> > > --
> > > Kevin Nehls
> > >
> > >
> > > "Vladimir Michl" wrote in message
> > > news:D1B2F82B8ACAC2C6839823ACD0AD8D19@in.WebX.maYIadrTaRb...
> > > > Ricky,
> > > > if you mean the report log you will get something like:
> > > >
> > > >
> a4j117b8_a1fi4j~iu(ddfi`FPi~ixJ!ki(beKSim0>x(ljNB5kh(FgFl$-GOljb${iMje[
> > > >
> r2g2Os"Zg9n{(elu("M{(v(2g8Oeiy,ZgEOljz(giaj1>"k_(zJyi#-QS%o9>"kA-~;:emi
> > > >
> > > > Nice, isn't it? You will probably have to use Globetrotter's
reporting
> > > > utility to analyze this...
> > > >
> > > > Vladimir Michl, CAD Studio, www.cadstudio.cz
> > >
> > >
> >
> >
>
>