Path: news.mathworks.com!not-for-mail
From: "Steve Amphlett" <Firstname.Lastname@Where-I-Work.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: flexlm log file
Date: Tue, 13 Jan 2009 18:38:02 +0000 (UTC)
Organization: Ricardo UK Ltd
Lines: 23
Message-ID: <gkin2a$ike$1@fred.mathworks.com>
References: <focg7n$tg$1@fred.mathworks.com> <gkikuq$pcq$1@fred.mathworks.com>
Reply-To: "Steve Amphlett" <Firstname.Lastname@Where-I-Work.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1231871882 19086 172.30.248.37 (13 Jan 2009 18:38:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 13 Jan 2009 18:38:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 43398
Xref: news.mathworks.com comp.soft-sys.matlab:511269


"Matt Cook" <matt.cook@jcb.com> wrote in message <gkikuq$pcq$1@fred.mathworks.com>...
> "Matt Cook" <matt.cook@jcb.com> wrote in message <focg7n$tg$1@fred.mathworks.com>...
> > Does anyone know of, or has written, a script to analyse a 
> > flexlm log file? 
> > 
> > I believe there are some 3rd parts tools around but they 
> > are quite expensive. I think it would be nice to have a m-
> > file that reads and analyses the data from a flexlm log 
> > file and then presents it in a more meaningful manner.
> > 
> > Thanks ... Matt
> 
> An Update:
> Thanks for the replies.
> I did manage to write my own script that produced some basic metrics. Basically it looked at just one flexlm managed application and totalled up the number of users and the amount of time each had used it for. I'm happy to post it for others to reference it if may be of use to someone .... but basically it's just reading data in from a text file.
> It's also worth remembering that id the flexlm server gets reset/restarted for any reason then the log file is overwritten with a new log (hence losing any old data).
> This topic isn't very imortant for me now so I haven't done any work on it for a while, nor am likely to in the near future.
> Once again, thanks for the replies ... and my best regards to you ... Matt

I wrote a C++ program for digesting a FLEXlm log to work out the usage of each feature by each user.  It was an interesting exercise, done in my own time (how else can one earn favour points with the IT dept?).  The FLEX people tell you that this shouldn't be done, but it seems reasonably OK for indication purposes.  I was told that the "official" tool costs loads.

Word of warning though: Do not write scripts to regularly poke the license manager.  Bad idea.