[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] Monitoring FLEXnet License Manager



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.

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?