Xymon Mailing List Archive search

Monitoring FLEXnet License Manager

22 messages in this thread

list Anna Jonna Armannsdottir · Wed, 30 Apr 2008 09:51:28 +0000 ·
Would anybody be willing to share their experience in monitoring LEXnet License Manager with Hobbit? 
I have been doing that, by simply monitoring the network port of the service, and users complain that it is not enough. Allegedly, it seems to continue to listen to the assigned ports, but stops handing out
Matlab (...) licenses to the users. 
For those that have absolutely no
idea of what I am talking about, this is a license manager, that among other things, is used for Matlab, Abacus, Maple and other engineering software. It runs as a network daemon, usually on port 27000 or close to that. 
So before I start rummaging in the shire, and reviving the dead cat, I would like to know if anybody would share their experience on the subject? 
-- 
Kindest Regards, Anna Jonna Ármannsdóttir,       %&   A: Because people read from top to bottom.
Unix System Aministration, Computing Services,   %&   Q: Why is top posting bad?
University of Iceland.
list Henrik Størner · Wed, 30 Apr 2008 11:28:27 +0000 (UTC) ·
quoted from Anna Jonna Armannsdottir
In <user-c60bd3979820@xymon.invalid> Anna Jonna Armannsdottir <user-a8cde33204f6@xymon.invalid> writes:
For those that have absolutely no
idea of what I am talking about, this is a license manager, that among other things, is used for Matlab, Abacus, Maple and other engineering software. It runs as a network daemon, usually on port 27000 or close to that. 
Wouldn't there be some commandline utility from the FLEXnet package that you can use, e.g. to query the number of currently in-use licenses ? As long as it
contacts the network daemon it can be used to check that the daemon is running, and then you can probably make a custom test wrapper around the
command line tool, and generate the Hobbit status based on this.


Regards,
Henrik
list Anna Jonna Armannsdottir · Wed, 30 Apr 2008 12:07:49 +0000 ·
quoted from Henrik Størner
On mið, 2008-04-30 at 11:28 +0000, Henrik Stoerner wrote:
Wouldn't there be some commandline utility from the FLEXnet package
that you can use, e.g. to query the number of currently in-use
licenses ? As long as it contacts the network daemon it can be used to
check that the daemon is running, and then you can probably make a
custom test wrapper around the command line tool, and generate the
Hobbit status based on this.
Hi Henrik, you are right (as usually :) . Now it is time to talk to the other sysadmins and see what they know of such a command line utility, but I am sure they have talked about it. Thanks. 
quoted from Anna Jonna Armannsdottir
-- 
Kindest Regards, Anna Jonna Ármannsdóttir,       %&   A: Because people read from top to bottom.
Unix System Aministration, Computing Services,   %&   Q: Why is top posting bad?
University of Iceland.
list Stephane Caminade · Wed, 30 Apr 2008 14:28:58 +0200 ·
Hi,

Usually you have a flexlm utility called lmstat, which used with the -a 
switch will produce some rather verbose output you can then parse.

Regards,
Stephane
quoted from Anna Jonna Armannsdottir

Anna Jonna Armannsdottir a écrit :
On mið, 2008-04-30 at 11:28 +0000, Henrik Stoerner wrote:
  
Wouldn't there be some commandline utility from the FLEXnet package
that you can use, e.g. to query the number of currently in-use
licenses ? As long as it contacts the network daemon it can be used to
check that the daemon is running, and then you can probably make a
custom test wrapper around the command line tool, and generate the
Hobbit status based on this.
    
Hi Henrik, 
you are right (as usually :) . Now it is time to talk to the other 
sysadmins and see what they know of such a command line utility, 
but I am sure they have talked about it. 
Thanks. 

  
-- 

Stephane Caminade
Administrateur Systemes et Reseaux
                                   \  <user-b664a384004a@xymon.invalid>
Institut d'Astrophysique Spatiale  /  tel : (XX) (X) XX XX XX XX
Batiment 121, Universite Paris XI  \  fax : (XX) (X) XX XX XX XX
F-91405 ORSAY Cedex                /  www : http://www.ias.u-psud.fr/

list Vernon Everett · Wed, 30 Apr 2008 20:56:37 +0800 ·
I believe there is a Flex LM module on deadcat.
It might be what you are looking for.

Cheers
     V
quoted from Stephane Caminade
 
-----Original Message-----
From: Stephane Caminade [mailto:user-b664a384004a@xymon.invalid] Sent: Wednesday, 30 April 2008 8:29 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring FLEXnet License Manager

Hi,

Usually you have a flexlm utility called lmstat, which used with the -a switch will produce some rather verbose output you can then parse.

Regards,
Stephane

Anna Jonna Armannsdottir a écrit :
On mið, 2008-04-30 at 11:28 +0000, Henrik Stoerner wrote:
  
Wouldn't there be some commandline utility from the FLEXnet package that you can use, e.g. to query the number of currently in-use licenses ? As long as it contacts the network daemon it can be used to check that the daemon is running, and then you can probably make a custom test wrapper around the command line tool, and generate the Hobbit status based on this.
    
Hi Henrik,
you are right (as usually :) . Now it is time to talk to the other sysadmins and see what they know of such a command line utility, but I am sure they have talked about it.
Thanks. 
  
--
Stephane Caminade
Administrateur Systemes et Reseaux
                                   \  <user-b664a384004a@xymon.invalid> Institut d'Astrophysique Spatiale  /  tel : (XX) (X) XX XX XX XX Batiment 121, Universite Paris XI  \  fax : (XX) (X) XX XX XX XX
F-91405 ORSAY Cedex                /  www : http://www.ias.u-psud.fr/


NOTICE: This email and any attachments are confidential. They may contain legally privileged information or copyright material. You must not read, copy, use or disclose them without authorisation. If you are not an intended recipient, please contact us at once by return email and then delete both messages and all attachments.
list Greg Shea · Wed, 30 Apr 2008 11:45:22 -0400 ·
Have you checked out deadcat?
There's a couple of flexlm scripts there you could probably use as a start

-Grs-
Gregory R Shea
EMC Corporation 
quoted from Stephane Caminade

-----Original Message-----
From: Stephane Caminade [mailto:user-b664a384004a@xymon.invalid] 
Sent: Wednesday, April 30, 2008 8:29 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Monitoring FLEXnet License Manager

Hi,

Usually you have a flexlm utility called lmstat, which used with the -a 
switch will produce some rather verbose output you can then parse.

Regards,
Stephane

Anna Jonna Armannsdottir a écrit :
On mið, 2008-04-30 at 11:28 +0000, Henrik Stoerner wrote:
  
Wouldn't there be some commandline utility from the FLEXnet package
that you can use, e.g. to query the number of currently in-use
licenses ? As long as it contacts the network daemon it can be used to
check that the daemon is running, and then you can probably make a
custom test wrapper around the command line tool, and generate the
Hobbit status based on this.
    
Hi Henrik, 
you are right (as usually :) . Now it is time to talk to the other 
sysadmins and see what they know of such a command line utility, 
but I am sure they have talked about it. 
Thanks. 

  
-- 
Stephane Caminade
Administrateur Systemes et Reseaux
                                   \  <user-b664a384004a@xymon.invalid>
Institut d'Astrophysique Spatiale  /  tel : (XX) (X) XX XX XX XX
Batiment 121, Universite Paris XI  \  fax : (XX) (X) XX XX XX XX
F-91405 ORSAY Cedex                /  www : http://www.ias.u-psud.fr/

list Anna Jonna Armannsdottir · Wed, 30 Apr 2008 16:04:19 +0000 ·
quoted from Stephane Caminade
On mið, 2008-04-30 at 14:28 +0200, Stephane Caminade wrote:
Hi,

Usually you have a flexlm utility called lmstat, which used with the
-a switch will produce some rather verbose output you can then parse.
Hi Stephane, tried this: /opt/matlab/etc/lmstat -a |grep 'Users of' |grep '(Total of'
After grepping the output of the command it looks like this: 
Users of MATLAB:  (Total of 400 licenses issued;  Total of 19 licenses
in use)
... 17 similar lines ... with MATLAB, SIMULINK, Communication_Toolbox,
Control_Toolbox, Distrib_Computing_Toolbox, Financial_Toolbox,
Fuzzy_Toolbox, Identification_Toolbox, Image_Toolbox,
Neural_Network_Toolbox, Optimization_Toolbox, PDE_Toolbox,
Simulink_Control_Design, Signal_Toolbox, Symbolic_Toolbox,
Statistics_Toolbox, Compiler 
This info could be treated in a similar way as Hobbit treats disk
partitions. In this case the partitions would be MATLAB, SIMULINK, etc, and the license useage could be shown as percentage of total. That way it would be a useful tool for license management. But that is much more than I bargained for. :) Thanks for your comments. 
quoted from Anna Jonna Armannsdottir
-- 
Kindest Regards, Anna Jonna Ármannsdóttir,       %&   A: Because people read from top to bottom.
Unix System Aministration, Computing Services,   %&   Q: Why is top posting bad?
University of Iceland.
list Anna Jonna Armannsdottir · Mon, 07 Jul 2008 16:36:57 +0000 ·
quoted from Greg Shea
On mið, 2008-04-30 at 11:28 +0000, Henrik Stoerner wrote:
In <user-c60bd3979820@xymon.invalid> Anna Jonna Armannsdottir <user-a8cde33204f6@xymon.invalid> writes:
For those that have absolutely no
idea of what I am talking about, >this is a license manager, that >among other things, is used for >Matlab, Abacus, Maple and other >engineering software. It runs >as a network daemon, usually >on port 27000 or close to that. 
Wouldn't there be some commandline utility from the FLEXnet package that you can use, e.g. to query the number of currently in-use licenses ? As long as it
contacts the network daemon it can be used to check that the daemon is running, and then you can probably make a custom test wrapper around the
command line tool, and generate the Hobbit status based on this.


Regards,
Henrik

Now there is a working version 1.0 of the Hobbit Monitor module for FLEXnet License Manager at The Shire: 
http://www.trantor.org/theshire/doku.php/monitors:flexlm 
Thanks to everybody for the help, hints and comments. 
quoted from Anna Jonna Armannsdottir
-- 
Kindest Regards, Anna Jonna Ármannsdóttir,       %&   A: Because people read from top to bottom.
Unix System Aministration, Computing Services,   %&   Q: Why is top posting bad?
University of Iceland.
list Michael Nemeth · Mon, 07 Jul 2008 14:02:51 -0400 ·
Looked at this on the Shire.  Am I correct ,you run a different client script on each of the
license servers for : Matlab, Abacus, Maple where  LMSTATDIR=
is set to a different directory?  That is like: 
/opt/matlab/etc and/or /opt/maple/where-ever?
quoted from Anna Jonna Armannsdottir


Anna Jonna Armannsdottir wrote:
On mið, 2008-04-30 at 11:28 +0000, Henrik Stoerner wrote:
  
In <user-c60bd3979820@xymon.invalid> Anna Jonna Armannsdottir <user-a8cde33204f6@xymon.invalid> writes:

    
For those that have absolutely no
idea of what I am talking about, this is a license manager, that among other things, is used for Matlab, Abacus, Maple and other engineering software. It runs as a network daemon, usually on port 27000 or close to that.       
Wouldn't there be some commandline utility from the FLEXnet package that you can use, e.g. to query the number of currently in-use licenses ? As long as it
contacts the network daemon it can be used to check that the daemon is running, and then you can probably make a custom test wrapper around the
command line tool, and generate the Hobbit status based on this.


Regards,
Henrik

Now there is a working version 1.0 of the Hobbit Monitor module for FLEXnet License Manager at The Shire: 
http://www.trantor.org/theshire/doku.php/monitors:flexlm 
Thanks to everybody for the help, hints and comments. 
list Anna Jonna Armannsdottir · Mon, 07 Jul 2008 18:54:03 +0000 ·
quoted from Michael Nemeth
On mán, 2008-07-07 at 14:02 -0400, michael nemeth wrote:
Looked at this on the Shire.  Am I correct ,you run a different client
script on each of the license servers for : Matlab, Abacus, Maple where  LMSTATDIR=
is set to a different directory?  That is like:  /opt/matlab/etc and/or /opt/maple/where-ever?
It is the same client script (flexlm.sh) that is run for all types. Even if there are multiple servers running on a machine it copes with that. The magic lies in the license file in e.g. /opt/matlab/etc or whereever it is. I forgot to mention that the trick is to find the directory where the license file and the lmstat program, reside. 
So if the license file contains information about hostnames and portnumbers for multiple license managers, the flexlm Hobbit Monitor module will display it all. 
quoted from Anna Jonna Armannsdottir
-- 
Kindest Regards, Anna Jonna Ármannsdóttir,       %&   A: Because people read from top to bottom.
Unix System Aministration, Computing Services,   %&   Q: Why is top posting bad?
University of Iceland.
list Michael Nemeth · Tue, 08 Jul 2008 07:33:06 -0400 ·
What I meant; same script but  for the "magic"  LMSTATDIR=  line

Also, while I can get what you did to work for me easy,  looks like your
"set-up" is different than mine I have to do /wherethelmstatis -a -c /wherethelicensefile is.
I THINK I remember you can set wherethelicensefile  in and environmental variable .
so this becomes /wherethelmstatis -a

Actually what I use is: /wherethelmstatis -a -c port at system that is:
wherethelmstatis -a -c 22777 at mobile2  (my  mathlab host)
Which is nice for me since I can "contact" different license server from one host!
If your lmstat returns Licence server Status: 22777 at mobile2
(mine returns License server Status: 22777 at mobile2.22777@ntw,22777 at sectcfs1 ;
hope this isn't going to be a problem)
Also:
"10.0.0.10 host.example.net # TRENDS:*,flexlm:flexlm|flexlm1|flexlm2|flexlm3 "

Is it true that on the matlab host you get just the flexlm and flexlm1
while on the maple host you only get

I'm being very inquisitive because Im planning on post in my clearcasse and mutlisite scripts
soon (don't use flexlm)and want to make sure I handle issues and am using you script and post as an example.

Aslo I may adapt to script to work like my clearcasse and mutlisite scripts;
they run on my hobbit server since the clearlicense will return the info from where the
license server running and I put the info in a pseudo host 0.0.0.0 licenses .
I might what to do that with the flexlm too, so want to understand it well!
I might not since I've 30 different instances of  flexlm !
quoted from Anna Jonna Armannsdottir

Anna Jonna Armannsdottir wrote:
On mán, 2008-07-07 at 14:02 -0400, michael nemeth wrote:
  
Looked at this on the Shire.  Am I correct ,you run a different client
script on each of the license servers for : Matlab, Abacus, Maple where  LMSTATDIR=
is set to a different directory?  That is like:  /opt/matlab/etc and/or /opt/maple/where-ever?
    
It is the same client script (flexlm.sh) that is run for all types. Even if there are multiple servers running on a machine it copes with that. The magic lies in the license file in e.g. /opt/matlab/etc or whereever it is. I forgot to mention that the trick is to find the directory where the license file and the lmstat program, reside. 
So if the license file contains information about hostnames and portnumbers for multiple license managers, the flexlm Hobbit Monitor module will display it all. 
list Anna Jonna Armannsdottir · Wed, 09 Jul 2008 10:04:25 +0000 ·
quoted from Michael Nemeth
On þri, 2008-07-08 at 07:33 -0400, michael nemeth wrote:
What I meant; same script but  for the "magic"  LMSTATDIR=  line

Also, while I can get what you did to work for me easy,  looks like
your
"set-up" is different than mine I have to do /wherethelmstatis -a
-c /wherethelicensefile is.
I THINK I remember you can set wherethelicensefile  in and
environmental variable .
so this becomes /wherethelmstatis -a
I am not an expert on the Flex License Manager, so my answers are not complete. I have tested this on 3 license servers, Red Hat 4, Red Hat 5, and Solaris 9. All have different license manager configurations, but the flexlm Hobbit module works with all of them just out of the box, but that is probably du to the fact that it is the same person administrating them. 
Anyway, the lmstat program in 2 of those installations, is in the same directory as the license file. In the third installation it is in an environment variable. In all cases the Flex LM programs, can easily find the license file. In all cases the user only has to change the path to the lmstat command. I feel we are approaching the topic "HOWTO configure Flex License
Manager", and that is not my area. 
quoted from Michael Nemeth
Actually what I use is: /wherethelmstatis -a -c port at system that is:
wherethelmstatis -a -c 22777 at mobile2  (my  mathlab host) Which is nice for me since I can "contact" different license server
from one host! 
 <just touching the HOWTO topic>
To get commication with the license manager through lmstat you need to specify -c license.txt This file contains the SERVER line from the license file. 
quoted from Michael Nemeth
If your lmstat returns Licence server Status: 22777 at mobile2
(mine returns License server Status:
22777 at mobile2.22777@ntw,22777 at sectcfs1 ;
hope this isn't going to be a problem)
Try it and return with the results. :) 
Also:
"10.0.0.10 host.example.net # TRENDS:*,flexlm:flexlm|flexlm1|flexlm2|
flexlm3 " Is it true that on the matlab host you get just the flexlm and flexlm1
quoted from Michael Nemeth
while on the maple host you only get
?
I'm being very inquisitive because Im planning on post in my
clearcasse and mutlisite scripts
soon (don't use flexlm)and want to make sure I handle issues and am
using you script and post as an example. 
OK
quoted from Michael Nemeth
Aslo I may adapt to script to work like my clearcasse and mutlisite
scripts;
they run on my hobbit server since the clearlicense will return the
info from where the
license server running and I put the info in a pseudo host 0.0.0.0
licenses .
I am trying hard to guess, at what you are talking about. 
quoted from Michael Nemeth
I might what to do that with the flexlm too, so want to understand it
well!
I might not since I've 30 different instances of  flexlm !
And what are you using to monitor them now? 
quoted from Anna Jonna Armannsdottir
-- 
Kindest Regards, Anna Jonna Ármannsdóttir,       %&   A: Because people read from top to bottom.
Unix System Aministration, Computing Services,   %&   Q: Why is top posting bad?
University of Iceland.
list Michael Nemeth · Wed, 09 Jul 2008 07:48:01 -0400 ·
OK, not about how to configure Flexlm, need a warning that as the script stand now might not work as is; that is might not find the license.dat file. You're right not hard  to find it and you'll be getting error on running your script, that can't find license.dat .   So user might have to  add -c .

Trying to understand what this does.
For MatLab host in bb-host:
"10.0.0.10 host.matlab.net # TRENDS:*,flexlm:flexlm|flexlm1|flexlm2|flexlm3 " Gives graph flexlm and graph flexml1 ?

For Maple host in bb-host:
"10.0.0.111 host.maple.net # TRENDS:*,flexlm:flexlm|flexlm1|flexlm2|flexlm3 " while this gives only graph flexlm2 ?

Is that correct?

I think Ive TOO many license servers to create graphs for ; 31 but 3 are MATLAB so I'll haves graph for
thank to you and your fine work   :-)  ! Plus I don't (and can't) have hobbit clients on mant of them.
I was plannning on "pulling" the  from  non-hobbit clients with lines in your script like.

/wherethelmstatis -a -c 22777 at mobile2  (my  mathlab host which doesn't have a hobbit client) 
  Ive not worked out how I'm going to cycle through some 30 hosts yet!

I'm going to bring up you script tomorrow just for one matlab host . So then i'll how it works

You don't (at least on the hobbit server) have do for example

$BB $BBDISP "status $MACHINE.ccl $COLOUR `date` $SSTATUS
 you can do:
$BB $BBDISP "status licenses.ccl $COLOUR `date` $SSTATUS 
And define in bb-hosts:

0.0.0.0 licenses# noconn 
This is where the ccl dot will appear, instead of under $MACHINE
This is what Ive done for my clearcase script (ccl), which I hope to post to the Shire today.
But my clearcase script  running on my hobbit server so I cannot tell you for sure if this trick works when
you have client side scripts.

We now use custom scripts  which run every 15 minutes. Produces a html table with the current use,
last week, last 4 weeks, last 8 weeks, and last 12 weeks
No graphs and no warning if a license is not running except there no data under current use.

Thank again for you help and flexlm script.  Got me thinking of how to replace our current system.
quoted from Anna Jonna Armannsdottir

Anna Jonna Armannsdottir wrote:
On þri, 2008-07-08 at 07:33 -0400, michael nemeth wrote:
  
What I meant; same script but  for the "magic"  LMSTATDIR=  line

Also, while I can get what you did to work for me easy,  looks like
your
"set-up" is different than mine I have to do /wherethelmstatis -a
-c /wherethelicensefile is.
I THINK I remember you can set wherethelicensefile  in and
environmental variable .
so this becomes /wherethelmstatis -a
    
I am not an expert on the Flex License Manager, so my answers are not complete. I have tested this on 3 license servers, Red Hat 4, Red Hat 5, and Solaris 9. All have different license manager configurations, but the flexlm Hobbit module works with all of them just out of the box, but that is probably du to the fact that it is the same person administrating them. 
Anyway, the lmstat program in 2 of those installations, is in the same directory as the license file. In the third installation it is in an environment variable. In all cases the Flex LM programs, can easily find the license file. In all cases the user only has to change the path to the lmstat command. I feel we are approaching the topic "HOWTO configure Flex License
Manager", and that is not my area.   
Actually what I use is: /wherethelmstatis -a -c port at system that is:
wherethelmstatis -a -c 22777 at mobile2  (my  mathlab host) Which is nice for me since I can "contact" different license server
from one host!     
 <just touching the HOWTO topic>
To get commication with the license manager through lmstat you need to specify -c license.txt This file contains the SERVER line from the license file. 
  
If your lmstat returns Licence server Status: 22777 at mobile2
(mine returns License server Status:
22777 at mobile2.22777@ntw,22777 at sectcfs1 ;
hope this isn't going to be a problem)
    
Try it and return with the results. :) 
  
Also:
"10.0.0.10 host.example.net # TRENDS:*,flexlm:flexlm|flexlm1|flexlm2|
flexlm3 " Is it true that on the matlab host you get just the flexlm and flexlm1
while on the maple host you only get
    
?

  
I'm being very inquisitive because Im planning on post in my
clearcasse and mutlisite scripts
soon (don't use flexlm)and want to make sure I handle issues and am
using you script and post as an example.     
OK

  
Aslo I may adapt to script to work like my clearcasse and mutlisite
scripts;
they run on my hobbit server since the clearlicense will return the
info from where the
license server running and I put the info in a pseudo host 0.0.0.0
licenses .
    
I am trying hard to guess, at what you are talking about. 
  
I might what to do that with the flexlm too, so want to understand it
well!
I might not since I've 30 different instances of  flexlm !
    
And what are you using to monitor them now? 
list Anna Jonna Armannsdottir · Wed, 09 Jul 2008 13:07:12 +0000 ·
quoted from Michael Nemeth
On mið, 2008-07-09 at 07:48 -0400, michael nemeth wrote:
OK, not about how to configure Flexlm, need a warning that as the
script stand now might not work as is; that is might not find the
license.dat file. You're right not hard  to find it and you'll be
getting error on running your script, that can't find license.dat .
So user might have to  add -c .
The script assumes that the Flex License Manager configuration is correctly set up. It is not the task of the Hobbit module to correct mistakes or omissions in that. So if the user can not get correct output from running the lmstat program with the -a parameter, that is a Flex configuration problem not the problem of the flexlm Hobbit module. 
To make this easier for the user, the script can be run outside of the Hobbit Monitor environment. The instructions in the script are: 
# For testing and verifying: Run the script in a shell and       #
# check that the  output is in /tmp/lic.txt                      #

As you suggest,the script can be changed so that it gives a warning if lmstat can not find its information. I will post a patch soon. Thanks for the suggestion. 
quoted from Michael Nemeth
Trying to understand what this does.
For MatLab host in bb-host:
"10.0.0.10 host.matlab.net # TRENDS:*,flexlm:flexlm|flexlm1|flexlm2|flexlm3 " Gives graph flexlm and graph flexml1 ?
For Maple host in bb-host:
"10.0.0.111 host.maple.net # TRENDS:*,flexlm:flexlm|flexlm1|flexlm2|flexlm3 " while this gives only graph flexlm2 ?
Is that correct?
Yes that is correct. 
For both cases, it tries to generate all graphs, but if there is e.g. no Abacus License Manager on the server, then there will be no graph in flexlm3. 
Take a look at the hobbitgraph.cfg.inc configuration file. There you can
see, that the flexlm test fetches the MATLAB variable data in the rrd
file. 
Any way, the module will be rewritten in version 2.0 so that the
configuration in hobbitgraph will be much better and easier for the user.
list Michael Nemeth · Wed, 09 Jul 2008 10:46:37 -0400 ·
Ive been try out you script since you first post here and wasn't working fulling so I ran in the license.dat
problem and had to figure out what was going on but drop working on it.

Ok with the graphs understand now.
quoted from Michael Nemeth

On mið, 2008-07-09 at 07:48 -0400, michael nemeth wrote:
  
OK, not about how to configure Flexlm, need a warning that as the
script stand now might not work as is; that is might not find the
license.dat file. You're right not hard  to find it and you'll be
getting error on running your script, that can't find license.dat .
So user might have to  add -c .
    
The script assumes that the Flex License Manager configuration is correctly set up. It is not the task of the Hobbit module to correct mistakes or omissions in that. So if the user can not get correct output from running the lmstat program with the -a parameter, that is a Flex configuration problem not the problem of the flexlm Hobbit module. 
To make this easier for the user, the script can be run outside of the Hobbit Monitor environment. The instructions in the script are: 
# For testing and verifying: Run the script in a shell and       #
# check that the  output is in /tmp/lic.txt                      #

As you suggest,the script can be changed so that it gives a warning if lmstat can not find its information. I will post a patch soon. Thanks for the suggestion. 
  
Trying to understand what this does.
For MatLab host in bb-host:
"10.0.0.10 host.matlab.net # TRENDS:*,flexlm:flexlm|flexlm1|flexlm2|flexlm3 " Gives graph flexlm and graph flexml1 ?
    
For Maple host in bb-host:
"10.0.0.111 host.maple.net # TRENDS:*,flexlm:flexlm|flexlm1|flexlm2|flexlm3 " while this gives only graph flexlm2 ?
Is that correct?
    
Yes that is correct. 
For both cases, it tries to generate all graphs, but if there is e.g. no Abacus License Manager on the server, then there will be no graph in flexlm3. 
Take a look at the hobbitgraph.cfg.inc configuration file. There you can
see, that the flexlm test fetches the MATLAB variable data in the rrd
file. 
Any way, the module will be rewritten in version 2.0 so that the
configuration in hobbitgraph will be much better and easier for the user. 

list Michael Nemeth · Fri, 11 Jul 2008 11:08:31 -0400 ·
Got it to work; I did have to change the UPTEST; only 3 of my product 30 license servers have MLM : UP in them. I used ".*: UP.*v.*"  . Worked; correctly,  detected 2 license servers  that were down!!

Ive  21 products  on 30 license servers, The only one Ive graph for is MATLAB so Ive got to create 20 graph
defs.

Current flexlm1 graph for MATHLAB is not show up but may I made a error some where.
quoted from Anna Jonna Armannsdottir

Anna Jonna Armannsdottir wrote:
On mið, 2008-07-09 at 07:48 -0400, michael nemeth wrote:
  
OK, not about how to configure Flexlm, need a warning that as the
script stand now might not work as is; that is might not find the
license.dat file. You're right not hard  to find it and you'll be
getting error on running your script, that can't find license.dat .
So user might have to  add -c .
    
The script assumes that the Flex License Manager configuration is correctly set up. It is not the task of the Hobbit module to correct mistakes or omissions in that. So if the user can not get correct output from running the lmstat program with the -a parameter, that is a Flex configuration problem not the problem of the flexlm Hobbit module. 
To make this easier for the user, the script can be run outside of the Hobbit Monitor environment. The instructions in the script are: 
# For testing and verifying: Run the script in a shell and       #
# check that the  output is in /tmp/lic.txt                      #

As you suggest,the script can be changed so that it gives a warning if lmstat can not find its information. I will post a patch soon. Thanks for the suggestion. 
  
Trying to understand what this does.
For MatLab host in bb-host:
"10.0.0.10 host.matlab.net # TRENDS:*,flexlm:flexlm|flexlm1|flexlm2|flexlm3 " Gives graph flexlm and graph flexml1 ?
    
For Maple host in bb-host:
"10.0.0.111 host.maple.net # TRENDS:*,flexlm:flexlm|flexlm1|flexlm2|flexlm3 " while this gives only graph flexlm2 ?
Is that correct?
    
Yes that is correct. 
For both cases, it tries to generate all graphs, but if there is e.g. no Abacus License Manager on the server, then there will be no graph in flexlm3. 
Take a look at the hobbitgraph.cfg.inc configuration file. There you can
see, that the flexlm test fetches the MATLAB variable data in the rrd
file. 
Any way, the module will be rewritten in version 2.0 so that the
configuration in hobbitgraph will be much better and easier for the user. 

list Anna Jonna Armannsdottir · Fri, 11 Jul 2008 17:05:36 +0000 ·
quoted from Michael Nemeth
On fös, 2008-07-11 at 11:08 -0400, michael nemeth wrote:
Got it to work; I did have to change the UPTEST; only 3 of my product
30 license servers have MLM : UP in them. I used ".*: UP.*v.*"  .
Worked; correctly,  detected 2 license servers  that were down!!
That is improvement to flexlm. I will try this on my config. 
quoted from Michael Nemeth
Ive  21 products  on 30 license servers, The only one Ive graph for is
MATLAB so Ive got to create 20 graph
defs. 
Current flexlm1 graph for MATHLAB is not show up but may I made a
error some where.
It depends on the licenses. The flexlm graph only shows the matlab graph itself, but the flexlm1 shows the graphs for the toolboxes. The flexlm1 test assumes all the following toolboxes are present: 
quoted from Anna Jonna Armannsdottir
SIMULINK, Communication_Toolbox,
Control_Toolbox, Distrib_Computing_Toolbox, Financial_Toolbox,
Fuzzy_Toolbox, Identification_Toolbox, Image_Toolbox,
Neural_Network_Toolbox, Optimization_Toolbox, PDE_Toolbox,
Simulink_Control_Design, Signal_Toolbox, Symbolic_Toolbox,
Statistics_Toolbox, Compiler 

If not all of them are present in the rrd file, the graph will not show up. It will be better in version 2.0 
To fix this, you can remove the corresponding graph (or graphs) section in hobbitgraph.cfg . That should fix it. Hope this helps. 
quoted from Anna Jonna Armannsdottir
-- 
Kindest Regards, Anna Jonna Ármannsdóttir,       %&   A: Because people read from top to bottom.
Unix System Aministration, Computing Services,   %&   Q: Why is top posting bad?
University of Iceland.
list Michael Nemeth · Mon, 14 Jul 2008 06:13:24 -0400 ·
Yes. I think I remember that now about graphs will try it and see if that works
Should  mean Ive got to create different "Extend count" for my three MATLABs.
quoted from Anna Jonna Armannsdottir

Anna Jonna Armannsdottir wrote:
On fös, 2008-07-11 at 11:08 -0400, michael nemeth wrote:
  
Got it to work; I did have to change the UPTEST; only 3 of my product
30 license servers have MLM : UP in them. I used ".*: UP.*v.*"  .
Worked; correctly,  detected 2 license servers  that were down!!
    
That is improvement to flexlm. I will try this on my config. 
  
Ive  21 products  on 30 license servers, The only one Ive graph for is
MATLAB so Ive got to create 20 graph
defs. 
Current flexlm1 graph for MATHLAB is not show up but may I made a
error some where.
    
It depends on the licenses. The flexlm graph only shows the matlab graph itself, but the flexlm1 shows the graphs for the toolboxes. The flexlm1 test assumes all the following toolboxes are present: 
SIMULINK, Communication_Toolbox,
Control_Toolbox, Distrib_Computing_Toolbox, Financial_Toolbox,
Fuzzy_Toolbox, Identification_Toolbox, Image_Toolbox,
Neural_Network_Toolbox, Optimization_Toolbox, PDE_Toolbox,
Simulink_Control_Design, Signal_Toolbox, Symbolic_Toolbox,
Statistics_Toolbox, Compiler 
If not all of them are present in the rrd file, the graph will not show up. It will be better in version 2.0 
To fix this, you can remove the corresponding graph (or graphs) section in hobbitgraph.cfg . That should fix it. Hope this helps. 
list Michael Nemeth · Mon, 14 Jul 2008 11:37:35 -0400 ·
Now I have graphs for MATLAB!  The MATLAB (flexlm) under the flexlm column and
both the MATLAB and the extend MATLAB (flexlm1).

But cann't get any others to work,  Mater of fact I don't see how you get the Maple and Abacus to work.
I have neither so cannot test.  But doesn't the column name have to match the graph name for a graph to
appear under the column ?  And the defined flexlm graph is for MATHLAB.
quoted from Anna Jonna Armannsdottir

Anna Jonna Armannsdottir wrote:
On fös, 2008-07-11 at 11:08 -0400, michael nemeth wrote:
  
Got it to work; I did have to change the UPTEST; only 3 of my product
30 license servers have MLM : UP in them. I used ".*: UP.*v.*"  .
Worked; correctly,  detected 2 license servers  that were down!!
    
That is improvement to flexlm. I will try this on my config. 
  
Ive  21 products  on 30 license servers, The only one Ive graph for is
MATLAB so Ive got to create 20 graph
defs. 
Current flexlm1 graph for MATHLAB is not show up but may I made a
error some where.
    
It depends on the licenses. The flexlm graph only shows the matlab graph itself, but the flexlm1 shows the graphs for the toolboxes. The flexlm1 test assumes all the following toolboxes are present: 
SIMULINK, Communication_Toolbox,
Control_Toolbox, Distrib_Computing_Toolbox, Financial_Toolbox,
Fuzzy_Toolbox, Identification_Toolbox, Image_Toolbox,
Neural_Network_Toolbox, Optimization_Toolbox, PDE_Toolbox,
Simulink_Control_Design, Signal_Toolbox, Symbolic_Toolbox,
Statistics_Toolbox, Compiler 
If not all of them are present in the rrd file, the graph will not show up. It will be better in version 2.0 
To fix this, you can remove the corresponding graph (or graphs) section in hobbitgraph.cfg . That should fix it. Hope this helps. 
list Michael Nemeth · Thu, 17 Jul 2008 12:38:13 -0400 ·
Well I got every thing to work in my own way. Anna I'll email direct if you want exactly what I did, but basicly I turned it in to a server side network type test .

But two general  Items, first some products/features produce string that are not unique with in the first 19 charactors; rrdtool DS names can only be 19 long. 
Next  I decide to track max number of licenses for products/features.   Some of our 30 products
are hitting the max on a regular basis! I thought about a "limits feature (90% yellow ,95+ red) but
could not figure a way to do this for 30 products and many more feature.
By changing the  awk  printf
from:
 $AWK '{printf "%.19s : %d \n", $3, $11 }'
to:
$AWK '{printf "M%.19s : %d \n "%.19s : %d \n", $3, $6, $3, $11 }'
(I think that typed right).

So I get something like :
MMATHLAB : 122
MATHLAB : 99
MSIMULINK : 5
SIMULINK  : 1
.
.
.

NOTE!!!! if you do this I fairly sure your going to have to wipe out the current flexlm.rrd first.

I found the rrd-status.log a great help in debuging.
list Anna Jonna Armannsdottir · Thu, 17 Jul 2008 16:56:00 +0000 ·
quoted from Michael Nemeth
On fim, 2008-07-17 at 12:38 -0400, michael nemeth wrote:
By changing the  awk  printf
from:
 $AWK '{printf "%.19s : %d \n", $3, $11 }'
to:
$AWK '{printf "M%.19s : %d \n "%.19s : %d \n", $3, $6, $3, $11 }'
(I think that typed right).
This is very similar to the awk line in version 1.4 in the flexlm.sh script. However, the license usage was calculated as percentage of the maximum value. I simplified it when I was debugging the RRD graphing problems. 
Please send the script. Preferably both to the list and to me. I would very much like to see the part of your script that retrieves the license information through the network daemons. 
quoted from Anna Jonna Armannsdottir
-- 
Kindest Regards, Anna Jonna Ármannsdóttir,       %&   A: Because people read from top to bottom.
Unix System Aministration, Computing Services,   %&   Q: Why is top posting bad?
University of Iceland.
list Michael Nemeth · Thu, 17 Jul 2008 13:28:56 -0400 ·
OK will probable not until Monday.
Its basicly lmstat -a -c  user-a86a80044b48@xymon.invalid
Where I get that "user-a86a80044b48@xymon.invalid" from a configuration list in this format:
Product port at system
like:
MATLAB_7.0_mysys user-a86a80044b48@xymon.invalid
quoted from Anna Jonna Armannsdottir


Anna Jonna Armannsdottir wrote:
On fim, 2008-07-17 at 12:38 -0400, michael nemeth wrote:
  
By changing the  awk  printf
from:
 $AWK '{printf "%.19s : %d \n", $3, $11 }'
to:
$AWK '{printf "M%.19s : %d \n "%.19s : %d \n", $3, $6, $3, $11 }'
(I think that typed right).
    
This is very similar to the awk line in version 1.4 in the flexlm.sh script. However, the license usage was calculated as percentage of the maximum value. I simplified it when I was debugging the RRD graphing problems. 
Please send the script. Preferably both to the list and to me. I would very much like to see the part of your script that retrieves the license information through the network daemons.