Using the FLEXnet Command Line Utilities (lmutil.exe)

FLEXnet packages all their license management utilities in a single executable called lmutil.exe. The MathWorks Installer includes this utility in every server installation in the matlabroot\flexlm folder. To view a list of all the capabilities of the lmutil utility, open a Command Prompt window, go to the matlabroot\flexlm folder and type

lmutil

The following table lists the names of the most useful tools available through lmutil. For more detailed information, see the FLEXnet Licensing End User Manual, included in PDF format in your MATLAB installation (matlabroot\flexlm\enduser.pdf). For information about accessing these tools through a graphical user interface, see Using the FLEXnet Utilities Graphical User Interface (LMTOOLS).

UtilityDescription

lmdiag

Diagnose license checkout problems.

lmdown

Shut down all license daemons (both lmgrd and all vendor daemons) on the license server node.

lmhostid

Report the host ID of a system.

lmreread

Make the license manager daemon reread the License File and start any new vendor daemons.
Note: When you use lmreread to reprocess a License File for a user-based license, changes to INCLUDE statements in the associated FLEXnet options file take affect after a 15 minute delay.

lmstat

Display the status of all network licensing activities.

lmswitchr

Switch the report log file.

lmver

Determine the FLEXnet version of a library or binary file.

Example: Getting the Current Status of the License Manager

To illustrate using these FLEXnet tools, this section describes how to view the current status of the license manager.

  1. Open a DOS command prompt window and enter the lmutil command, specifying the name of the lmstat utility.

    lmutil lmstat -a -c "C:\Program Files\MATLAB\R2007a\flexlm\license.dat"
    

    The example uses the -a option to get a verbose listing of available licenses and the -c option to specify the location of the License File to use. You must specify the -c option with every tool invoked through lmutil.exe. If your installation pathname contains spaces, enclose the pathname in quotes.

  2. View the status information returned.

    lmutil - Copyright (c) 1989-2006 by Macrovision Europe Ltd. and/or Macrovision Corporation.
     All rights reserved.Flexible License Manager status on Thu 1/18/2007 16:57
    
    License server status: 27000@smithj
      License File(s) on smithj: C:\Program Files\MATLAB\R2007a\flexlm\license.dat:
    
      smithj: license server UP (MASTER) v.10.8
    
    Vendor daemon status (on smithj):
    
        MLM: UP v10.8
    
    Feature usage info:
    
    Users of MATLAB: (Total of 5 licenses available)
    
    Users of SIMULINK: (Total of 5 licenses available)
    
    Users of Control_Toolbox: (Total of 5 licenses available)
    
    Users of Identification_Toolbox: (Total of 5 licenses available). 
    


© 1984-2007 The MathWorks, Inc. Terms of Use Patents Trademarks Acknowledgments