question

JeffJ avatar image
JeffJ asked JeffJ posted

FAQ: Using the iTest 4.2 License Manager

With iTest 4.2 Spirent introduced a new license manager.  Spirent chose to no longer support the lmutils GUI tool on Windows due to some limitations of the tool.  As a result, some may be wondering how to get to some of the neat features of the old GUI tool.  This FAQ provides you with a few of these.

 

To start the license manager, use the following command:

 

lmgrd -c <licenseFileName> -l debug.log

 

This will start the server and point it at the license file.   If you want all the license files in a particular directory, use:

 

lmgrd -c <pathToLicenseFiles> -l debug.log

 

This will start the daemon and feed it all the files that end in “.lic”.

 

If you want to see the status of the license manager, use the following command:

 

lmutil lmstat -c <licenseFileName> -a

 

This will dump all the information about each of the features in the license file and who has them currently checked out.  If you leave off the “-c <licenseFileName>” you will get all the features that the license server is currently serving.

 

To shut down the license server, use the following command:

 

lmutil lmdown -c <licenseFileName>

 

I’ll follow this up later with more commands and possibly a procedure to start this as a service in Windows.

iTestinstallation - licensing
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
JeffJ avatar image
JeffJ answered JeffJ posted

For those using the iTest server on Linux, you may be interested in a script to start the daemon automatically upon reboot.  Attached is an example of one that works with current versions of Linux.  You'll need to edit this file to ensure the paths are correct for your installation.

 

You should cut the following information and place it in a file named "iTestd"  (Sorry, this wiki doesn't like extensionless filenames!)

 

#!/bin/sh
#
# lmgrd	This shell script takes care of starting and stopping
#		the Fanfare FlexLM Daemon.
#
# chkconfig: 0123456 63 34
# description: iTest license server

# Source function library.
. /etc/rc.d/init.d/functions

FLEXHOME=/opt/spirent-vendor-daemon_v4.2-linux
LMGRD=$FLEXHOME/lmgrd
LMDOWN=$FLEXHOME/lmdown
LMUTIL=$FLEXHOME/lmutil
LICFILE=$FLEXHOME/LicenseFile.lic
LOGFILE=$FLEXHOME/debug

echo "start case"
# See how we were called.
case "$1" in
  start)
        echo "starting iTest License Server"
        rm -f $LOGFILE
        if [ -x $LMGRD ]
        then
          if [ -f $LICFILE ]
          then
          $LMGRD -c $LICFILE -l $LOGFILE
          fi
        fi
    ;;
  stop)
        if [ -x $LMGRD ]
        then
        $LMDOWN -c $LICFILE -q
        fi
        ;;
  status)
    $LMUTIL lmstat -c $LICFILE -a
    ;;
  *)
     echo "usage: chkconfig lmgrd {on|off}"
     exit 2
esac

exit $?

 

 

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.