Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Query FLEXlm
Topic Summary: Query FLEXlm
Created On: 27-Sep-2007 21:13
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 27-Sep-2007 21:13
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Anybody know how to query FLEXlm so it tells us utilization metrics? We are using Token Licensing 1.3 but I don't recall the version of FLEX.

- Louie
Report this to a Moderator Report this to a Moderator
 28-Sep-2007 01:38
User is offline View Users Profile Print this message


Paul Miller

Posts: 376
Joined: 2-Oct-2002

Hi Louie,

The FlexNet License server has a number of Administration level tools & functions that can be accessed via command line arguments. Perhaps the most commonly used FlexNet tool is it's so called "lmutil" tool which can deliver some useful info.

What I've done for various past clients is to create a batch file that is scheduled to run every 30 minutes from 07:00 to 19:00 Mon to Fri. The contents of the batch would be something like so:

cd C:\Program Files\Telelogic\Tools\Licensing_11\Server
lmutil lmstat -f DOORS >> "C:\Program Files\Telelogic\LicenseStats\DOORSLicenseLog.txt"

This appends DOORS license usage info into a file named "DOORSLicenseLog.txt". It identifies who has a license checked out and how many licenses are checked out.

At 19:30 on the Friday of each week, I run another batch file which contains something like the folowing:

ren "C:\Program Files\Telelogic\LicenseStats\DOORSLicenseLog.txt" "DOORSLicenseLog(%DATE%).txt"

This renames the log file so that I can have a log file per week.

A PERL\VBA script is then used to parse these weekly log files and report on what was the daily maximum concurrent license demand and the log-on hours for each user (based on the 30 minute increments). When I think about it, DOORS DXL using Regular Expressions maybe able to do the same thing. These figures are then fed into a Spreadsheet which does some charting to keep a watch on license demand trends and various other useful metrics.

-------------------------
Paul Miller
Specification Practices Specialist,
EuroCyber,
Melbourne, Australia.
Mobile: +61 (0)418 135 103
Web Site: http://www.eurocyber.biz
E-mail: miller@eurocyber.biz">pmiller@eurocyber.biz
Report this to a Moderator Report this to a Moderator
 28-Sep-2007 18:23
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Will need to investigate when I get back from Vacation, but my preliminary attempts to do this yields results "1 license issues, 0 in use". I get the same results when there is nobody logged in, when I'm logged in from my client, and when I'm also logged into DOORS on the server. Doing a general querey and I get the same results for LOT of telelogic programs, even though we are only using DOORS and SA.

Is it possible the Token licensing works differently?

- Louie
Report this to a Moderator Report this to a Moderator
 1-Oct-2007 11:19
User is offline View Users Profile Print this message


Martin Hunter

Posts: 86
Joined: 10-Jan-2005

DOORS now uses the TELELOGIC_LICENSE_FILE environment variable but I found that I needed to add the details to the LM_LICENSE_FILE to enable FlexLM to report users.

- Martin

-------------------------
- Martin
Report this to a Moderator Report this to a Moderator
 2-Oct-2007 14:29
User is offline View Users Profile Print this message


Ewen Miller

Posts: 99
Joined: 20-Nov-2002

There's a Macrovision add-on product called Flexnet Manager that provides all sorts of metrics regarding licence usage.


Ewen
Report this to a Moderator Report this to a Moderator
 16-Nov-2007 17:10
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Get "1 license issued, 0 in use" when I query for daemon 'DOORS'. But since we are using floating licenses, I got good results with 'TLSTOK':

lmutil lmstat -f TLSTOK >>GetLicenseUseage_Landale.txt

- Louie
Report this to a Moderator Report this to a Moderator
 12-Dec-2007 10:25
User is offline View Users Profile Print this message


Carl Wilson

Posts: 3
Joined: 6-Dec-2002

Try using 'cricket' http://cricket.sourceforge.net/.

There are some freebie utilities for FlexLM monitoring which use RRD to record and graph results.
The command is lmutil lmstat -c <port>@<flexlm server name> -a
to find services and then
lmutil lmstat -c <port>@<flexlm server name> -s <daemon>

to get users.

It's a fairly trivial perl script to extract user info for display and setup the cricket files. There are a few examples in the support info. Use them as a base and craft your own, or raise a request on the cricket forum and I'll look into posting some of my code.

There are other free monitoring tools like cacti which can do the same job. They all use RRD.

Carl Wilson
Thales Underwater Systems
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.