# License management utilities

#### Subtopics

1. [lmutil](https://lhc.advantest.com/link/86#bkmrk-lmutil "All FLEXlm utilities are packaged in a single executable file called lmutil, that can be installed either as individual commands or as a wrapper that issues individual commands using lmutil(for example: lmutil lmstat).")
2. [FLEXnet](https://lhc.advantest.com/link/86#bkmrk-flexnet "The FLEXnet file management system from Flexera Software can be a powerful tool for improving license administration. Among its features, FLEXnet's report analysis and alarms tools are described below. For greater detail, see the company's website at www.flexerasoftware.com.")

---

License management utilities:

- Provide information that is required to install licenses
- Streamline license file/directory management
- Support specific licensing features
- Help you diagnose and fix licensing problems
- Help you analyze and improve license usage

<section class="section" id="bkmrk-two-utility-packages">### **Two utility packages**

Two license management utilities are available: "lmutil" and "FLEXnet Manager".

The lmutil file management system is available for free from Advantest and enables you to monitor, troubleshoot, and improve license usage.

FLEXnet Manager is an advanced license management utility that is particularly useful for facilities where large numbers of licenses are accessed remotely using license servers.

Among its features, FLEXnet Manager provides a detailed license usage report that will help you analyze current use, and efficiently plan future license allocation. In addition, FLEXnet Manager enables you to define a system of "alarms" that notify you about license allocation problems and automatically shut down and restart licenses as needed.

---

# lmutil

All FLEXlm utilities are packaged in a single executable file called `<kbd class="userinput">lmutil</kbd>`, that can be installed either as individual commands or as a wrapper that issues individual commands using `<kbd class="userinput">lmutil(for example: lmutil lmstat)</kbd>`.

<section class="section">The Unix driven commands available through the lmutil management system are briefly described in the following tables. For syntax information, see chapter 7 of the *FLEXlm Licensing End User Guide*. (You can find the guide at the [Advantest Web Site](http://www.advantest.com/): **<span class="menucascade"><span class="uicontrol">Advantest Home</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">Global Services</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">Product Support</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">V93000</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">V93000 Licensing</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">FLEXIm License Server Software Downloads and Documents</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">FLEXlm End Users Guide</span></span>.**)

<table border="1" class="frame-topbot" style="width: 100%; border-collapse: collapse; border-width: 0.2px;"><caption>***License server and client commands***</caption><colgroup><col style="width: 14.7689%;"></col><col style="width: 85.2203%;"></col></colgroup><thead><tr class="rowsep-1"><th class="colsep-1 rowsep-0" id="bkmrk-unix-command" style="border-width: 0.2px;">**Unix command**

</th><th class="colsep-1 rowsep-0" id="bkmrk-what-the-command-doe" style="border-width: 0.2px;">**What the command does**

</th></tr></thead><tbody><tr class="rowsep-1"><td class="colsep-1 rowsep-0" headers="_245900__entry__1" style="border-width: 0.2px;">`<strong><kbd class="userinput">lmstat</kbd></strong>`

</td><td class="colsep-1 rowsep-0" headers="_245900__entry__2" style="border-width: 0.2px;">Displays license server and client status information.

`<kbd class="userinput">lmstat</kbd>` can help you diagnose license problems and optimize license usage. Specifically, `<kbd class="userinput">lmstat</kbd>` enables you to:

- Determine the status of daemons currently running
- Determine status of license files
- Identify the expiration date of a license
- Identify users of individual features and report checkout times

This helps you identify which licenses are currently available and which are in use. `<kbd class="userinput">lmstat</kbd>` also reports the expiration date of a license, which is an important factor for planning future license use.

`<kbd class="userinput">lmstat</kbd>` does not report on unserved license usage. You cannot use it to determine the status of unserved licenses, such as uncounted licenses. `<kbd class="userinput">lmstat</kbd>` only gives information about the status of licenses that reside in license files on the server.

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" headers="_245900__entry__1" style="border-width: 0.2px;">`<strong><kbd class="userinput">lmdiag</kbd></strong>`

</td><td class="colsep-1 rowsep-0" headers="_245900__entry__2" style="border-width: 0.2px;">Diagnoses checkout problems.

`<kbd class="userinput">lmdiag</kbd>` is used to diagnose license checkout problems. Unless you specify a single feature, all licensed features are diagnosed. If a file contains multiple lines for a given feature, you can specify a particular line to diagnose.

`<kbd class="userinput">lmdiag</kbd>` first prints information about the license, then attempts to checkout each license. `<kbd class="userinput">lmdiag</kbd>` indicates if the checkout succeeds. If the checkout fails, a reason for the failure is returned.

If a server connection problem is identified, you have the option to run extended connection diagnostics. Extended diagnostics attempt to connect to each TCP/IP port on the server to detect if the port number indicated in the license file is mistaken. If `<kbd class="userinput">lmdiag</kbd>` finds the daemon for the feature being diagnosed, it indicates the correct port number for the license file to correct the problem.

</td></tr></tbody></table>

<table border="1" class="frame-topbot" style="width: 100%; height: 1054.89px; border-collapse: collapse; border-width: 0.2px;"><caption>***License server commands***</caption><colgroup><col style="width: 15.3653%;"></col><col style="width: 84.6239%;"></col></colgroup><thead><tr class="rowsep-1" style="height: 29.7017px;"><th class="colsep-1 rowsep-0" id="bkmrk-unix-command-1" style="height: 29.7017px; border-width: 0.2px;">**Unix command**

</th><th class="colsep-1 rowsep-0" id="bkmrk-what-the-command-doe-1" style="height: 29.7017px; border-width: 0.2px;">**What the command does**

</th></tr></thead><tbody><tr class="rowsep-1" style="height: 80.1136px;"><td class="colsep-1 rowsep-0" headers="_245900__entry__7" style="height: 80.1136px; border-width: 0.2px;">**`<kbd class="userinput">lmdown</kbd>`**

</td><td class="colsep-1 rowsep-0" headers="_245900__entry__8" style="height: 80.1136px; border-width: 0.2px;">Shuts down selected license daemons.

`<kbd class="userinput">lmdown</kbd>` enables you to shut down selected license daemons, including `<kbd class="userinput">lmgrd</kbd>` and vendor daemons. `<kbd class="userinput">lmdown</kbd>` can be used with single and multiple servers.

Note: On Unix platforms never use <kbd class="userinput">kill - 9</kbd>to shutdown servers.

</td></tr><tr class="rowsep-1" style="height: 96.9176px;"><td class="colsep-1 rowsep-0" headers="_245900__entry__7" style="height: 96.9176px; border-width: 0.2px;">**`<kbd class="userinput">lmhostid</kbd>`**

</td><td class="colsep-1 rowsep-0" headers="_245900__entry__8" style="height: 96.9176px; border-width: 0.2px;">Reports the host ID.

`<kbd class="userinput">lmhostid</kbd>` reports the host ID of the current platform. Universal arguments enable you to report the type of host ID and to return the host ID in the UTF-8 format, as well as in standard ASCII format.

You will use `<kbd class="userinput">lmhostid</kbd>` to determine the host ID of computers you are using, in order to configure licenses for servers and system controllers.

</td></tr><tr class="rowsep-1" style="height: 63.3097px;"><td class="colsep-1 rowsep-0" headers="_245900__entry__7" style="height: 63.3097px; border-width: 0.2px;">**`<kbd class="userinput">lminstall</kbd>`**

</td><td class="colsep-1 rowsep-0" headers="_245900__entry__8" style="height: 63.3097px; border-width: 0.2px;">Converts files from decimal to readable format.

`<kbd class="userinput">lminstall</kbd>` enables you to enter decimal format licenses so they are converted into a readable license format. `<kbd class="userinput">lminstall</kbd>` can also be used to convert from a readable format to decimal format.

</td></tr><tr class="rowsep-1" style="height: 80.1136px;"><td class="colsep-1 rowsep-0" headers="_245900__entry__7" style="height: 80.1136px; border-width: 0.2px;">**`<kbd class="userinput">lmpath</kbd>`**

</td><td class="colsep-1 rowsep-0" headers="_245900__entry__8" style="height: 80.1136px; border-width: 0.2px;">Enables user definition of file path settings.

`<kbd class="userinput">lmpath</kbd>` enables you to define the path that is used for FLEXlm license settings. `<kbd class="userinput">lmpath</kbd>` enables you to add to, override, or retrieve the current license path setting. `<kbd class="userinput">lmpath</kbd>` will help you define the optimal license path setting for your testing environment, and also to view the current path setting.

</td></tr><tr class="rowsep-1" style="height: 63.3097px;"><td class="colsep-1 rowsep-0" headers="_245900__entry__7" style="height: 63.3097px; border-width: 0.2px;">**`<kbd class="userinput">lmremove</kbd>`**

</td><td class="colsep-1 rowsep-0" headers="_245900__entry__8" style="height: 63.3097px; border-width: 0.2px;">Releases hung license.

`<kbd class="userinput">lmremove</kbd>` enables you to remove a single user's license for a specified feature. The licensed feature is effectively checked back into the server, and thus available for other users to check out - or for *you* to check out again.

</td></tr><tr class="rowsep-1" style="height: 113.722px;"><td class="colsep-1 rowsep-0" headers="_245900__entry__7" style="height: 113.722px; border-width: 0.2px;">**`<kbd class="userinput">lmreread</kbd>`**

</td><td class="colsep-1 rowsep-0" headers="_245900__entry__8" style="height: 113.722px; border-width: 0.2px;">Initiates reread of license file.

`<kbd class="userinput">lmreread</kbd>` causes the file manager to reread the license file and so start any new features that have been added since the current test operation was started. `<kbd class="userinput">lmreread</kbd>` can be used both to reread a specified daemon or to reread all active daemons.

If you want to add licenses to the current test you will first install the license file, use the `<kbd class="userinput">lmreread</kbd>` command, then restart SmarTest.

</td></tr><tr class="rowsep-1" style="height: 147.33px;"><td class="colsep-1 rowsep-0" headers="_245900__entry__7" style="height: 147.33px; border-width: 0.2px;">**`<kbd class="userinput">lmswitch</kbd>`**

</td><td class="colsep-1 rowsep-0" headers="_245900__entry__8" style="height: 147.33px; border-width: 0.2px;">Defines debug log location and size.

`<kbd class="userinput">lmswitch</kbd>` pertains to debug log files. Using `<kbd class="userinput">lmswitch</kbd>` makes it easier for you to track debug output and to generate smaller, more manageable, debug files.

By default all debug log output is written to a single debug log file, including debug log output from `<kbd class="userinput">lmgrd</kbd>` and from any active vendor daemons. Therefore, debug output files can become very large, resulting in a large consumption of memory, and making tracking of specific debug results more difficult.

The `<kbd class="userinput">lmswitch</kbd>` command also enables you to track debug output for a specific daemon by specifying its location in an independent file.

</td></tr><tr class="rowsep-1" style="height: 113.722px;"><td class="colsep-1 rowsep-0" headers="_245900__entry__7" style="height: 113.722px; border-width: 0.2px;">**`<kbd class="userinput">lmswitchr</kbd>`**

</td><td class="colsep-1 rowsep-0" headers="_245900__entry__8" style="height: 113.722px; border-width: 0.2px;">Defines report log location and size.

`<kbd class="userinput">lmswitchr</kbd>` pertains to report log files. Report logs are only used in conjunction with products such as SAMreport, and otherwise should not be active. Use `<kbd class="userinput">lmswitchr</kbd>` to close the existing report log file and initiate a new report log file. If no report log is active, the `<kbd class="userinput">lmswitchr</kbd>` commands initiates one.

Using `<kbd class="userinput">lmswitchr</kbd>` makes it easier for you to track report log output and to generate files that are more manageable in size.

</td></tr><tr class="rowsep-1" style="height: 113.722px;"><td class="colsep-1 rowsep-0" headers="_245900__entry__7" style="height: 113.722px; border-width: 0.2px;">**`<kbd class="userinput">lmnewlog</kbd>`**

</td><td class="colsep-1 rowsep-0" headers="_245900__entry__8" style="height: 113.722px; border-width: 0.2px;">Moves existing report log to new file, then starts new report log with name of original file.

`<kbd class="userinput">lmnewlog</kbd>` is identical in purpose to the `<kbd class="userinput">lmswitchr</kbd>` command except it assigns the new report log file the name that had been given to the original report log file. Report logs are only used in conjunction with products such as SAMreport, and otherwise should not be active.

If you use `<kbd class="userinput">lmnewlog</kbd>` instead of `lmswitchr` to rotate report log files, you do not have to change the file name in the REPORTLOG line of the option file.

</td></tr><tr class="rowsep-1" style="height: 152.926px;"><td class="colsep-1 rowsep-0" headers="_245900__entry__7" style="height: 152.926px; border-width: 0.2px;">**`<kbd class="userinput">lmver</kbd>`**

</td><td class="colsep-1 rowsep-0" headers="_245900__entry__8" style="height: 152.926px; border-width: 0.2px;">Reports FLEXlm license version.

<kbd class="userinput">`lmver` </kbd>reports the FLEXlm versions of `<kbd class="userinput">lmgrd</kbd>`, a vendor daemon, a license administration tool, or an executable file that has been built using FLEXlm.

Use `<kbd class="userinput">lmver</kbd>` to ensure that the FLEXlm version you are using is the most recent version. Using the most recent `<kbd class="userinput">lmgrd</kbd>` version is always recommended.

The latest versions of these utilities can be found at the [Advantest Web Site](http://www.advantest.com/): <span class="menucascade"><span class="uicontrol">Advantest Home</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">(Support &amp; Services) V93000 SOC</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">Software Downloads and Utilities for the V93000 SOC Series</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">FLEXIm License Server Software Downloads</span></span>.

</td></tr></tbody></table>

<table border="1" class="frame-bottom" style="width: 55.8333%; border-collapse: collapse; border-width: 0.2px;"><caption>***Universal lmutil arguments***</caption><colgroup><col style="width: 28.4138%;"></col><col style="width: 71.5686%;"></col></colgroup><thead><tr class="rowsep-1"><th class="colsep-1 rowsep-0" colspan="2" id="bkmrk-universal-arguments-" style="border-width: 0.2px;">**Universal arguments that can be used with most** <kbd class="userinput">lmutil</kbd> **commands**

</th></tr></thead><tbody><tr class="rowsep-1"><td class="colsep-1 rowsep-0" headers="_245900__entry__29" style="border-width: 0.2px;"><kbd class="userinput">-c license\_file\_path</kbd>

</td><td class="colsep-1 rowsep-0" headers="_245900__entry__29" style="border-width: 0.2px;">Displays the path to the specified license file.

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" headers="_245900__entry__29" style="border-width: 0.2px;"><kbd class="userinput">-help</kbd>

</td><td class="colsep-1 rowsep-0" headers="_245900__entry__29" style="border-width: 0.2px;">Displays utility usage information, then exist.

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" headers="_245900__entry__29" style="border-width: 0.2px;"><kbd class="userinput">-v</kbd>

</td><td class="colsep-1 rowsep-0" headers="_245900__entry__29" style="border-width: 0.2px;">Displays the FLEXlm version of the utility, then exits.

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" headers="_245900__entry__29" style="border-width: 0.2px;"><kbd class="userinput">-verbose</kbd>

</td><td class="colsep-1 rowsep-0" headers="_245900__entry__29" style="border-width: 0.2px;">Displays detailed description for all errors found.

</td></tr></tbody></table>

---

# FLEXnet

The FLEXnet file management system from Flexera Software can be a powerful tool for improving license administration. Among its features, FLEXnet's report analysis and alarms tools are described below. For greater detail, see the company's website at *[www.flexerasoftware.com](http://www.flexerasoftware.com/)*.

<div><section class="section">### Report analysis

FLEXnet provides detailed license usage report tables and graphs that enable you to analyze usage parameters such as the following:

- Maximum licenses and hours available for a feature
- License use by project, by user group, by feature
- The *number* of licenses that are in use, have been denied, are queued, and are unsupported
- The *percentage* of licenses that have been used and that have been denied
- Patterns of use over time, including peak usage periods; daily, weekly, monthly, and longer usage patterns; and irregularities in use.

These factors can help you modify your use of licenses to maximize test time and increase test efficiency.

</section><section class="section">### Alarms

FLEXnet provides alarms that will alert you about the status of your servers. You can define alarms to tell you if a server is down, if a redundant server is down, if a daemon is down, if license utilization is approaching or has exceeded capacity, and if a license is close to its expiration period, or has already expired. Alarm messages can be emailed automatically to more than one email address, to improve the chance of timely response to problems that arise.

</section><section class="section">### Error messages

Appendix E of the *FLEXnet Licensing End User Guide* provides an explanations FLEXnet error codes and a complete listing of FLEXnet error messages. (FLEXnet errors are identical FLEXlm errors that have the same numerical designation.) You can find the guide at the [Advantest Web Site](http://www.advantest.com/): **<span class="menucascade"><span class="uicontrol">Advantest Home</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">Service &amp; Support</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">V93000 SOC/HSM</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">Licensing</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">FLEXIm License Server Software Downloads and Documents</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">FLEXlm End Users Guide</span></span>.**

To learn about the features offered through the FLEXnet license management utility see *[www.flexerasoftware.com](http://www.flexerasoftware.com/)* and the *FLEXnet End User Guide*

</section></div></section></section>