# License server setup

# License server setup

1. [Single FNP License server installation, upgrades and updates](https://lhc.advantest.com/link/84#bkmrk-single-fnp-license-s-1)
2. [Set up a three-license-server redundancy configuration](https://lhc.advantest.com/link/84#bkmrk-set-up-a-three-licen-1)
3. [Merging new licenses into an existing license file](https://lhc.advantest.com/link/84#bkmrk-merging-new-licenses)
4. [Find out HostID and HostName](https://lhc.advantest.com/link/84#bkmrk-find-out-hostid-and-)
5. [Check your floating license file installation](https://lhc.advantest.com/link/84#bkmrk-check-your-floating-)
6. [License server basic operations](https://lhc.advantest.com/link/84#bkmrk-license-server-basic)
7. [License server prioritization](https://lhc.advantest.com/link/84#bkmrk-license-server-prior)
8. [Diagnose and solve license problems](https://lhc.advantest.com/books/license-server-setup/page/diagnose-and-solve-license-problems)
9. [License management utilities](https://lhc.advantest.com/books/license-server-setup/page/license-management-utilities)

This section covers licensing requirements and considerations you will want to examine before installing your licenses.

<section class="section" id="bkmrk-installation-require">### Installation requirements

The computer you use as the license server:

- Must be accessible over your network from each of the V93000 system controllers on which you will install a floating license.
- Must run Red Hat Enterprise Linux 5 (64 bit), Red Hat Enterprise Linux 7 or Solaris 10 on Sparc.

An important part of this process involves your identification of a computer that can function effectively as a license server. For an overview of considerations that may affect your choice of a license server that fits your specific test setup, refer to the Revenera documentation: [https://docs.revenera.com/fnp/2021r2/pdf/fnp\_LicAdmin.pdf](https://docs.revenera.com/fnp/2021r2/pdf/fnp_LicAdmin.pdf).

</section><section class="section" id="bkmrk-additional-licensing">### Additional licensing considerations

Bear in mind the following points:

- If you are installing more than one license file, *you need to repeat the procedure for each license file*. The instructions on the following pages are written for a single license file.
- If you purchase and activate (redeem) several licenses at the same time, you will be sent one license file that contains all the licenses you have activated. *You can activate any or all of these licenses at any time you choose*.
- You can simplify management of multiple license files purchased separately *by merging them into a single file* (see [Merging new licenses into an existing license file](https://lhc.advantest.com/link/84#bkmrk-merging-new-licenses "If you have previously installed a FLEXlm license you may find it desirable to merge your new license file with a license file that already exists. This can help reduce the complexity of managing multiple licenses.")).
- *It is critical that you retain your Entitlement Certificate*. This certificate is only issued upon ordering, and contains information that may be required for future use. Be sure to keep your certificate in a safe location, since the certificate conveys specific legal rights and enables access to the license redemption system.

<p class="callout info"><span class="title">Note:</span> In order to download the necessary license server software, you will need to be a registered user of the Semiconductor Test Equipment (STE) Tech Support web pages, which are found on the [Advantest.com](http://www.advantest.com/) web site.</p>

</section><div class="note" id="bkmrk-"></div>---

## Single FNP License server installation, upgrades and updates

<section class="section" id="bkmrk-installation-procedu">Installation procedure for a single FlexNet license server to provide activated licenses. Applicable to fresh installations, and applying upgrades to add major functionality and patch updates installing the latest packages on an existing server.

<section class="section">### About this task

The license server install package can be downloaded from the Advantest Software Center server:

[https://softwarecenter.advantest.com/download/othersw/builds/licensing/licensing:fnp](https://softwarecenter.advantest.com/download/othersw/builds/licensing/licensing:fnp)

The following procedure is applicable to installation, upgrades and updates. For three-license-server redundancy configuration arrangements, also refer to [Set up a three-license-server redundancy configuration](https://lhc.advantest.com/link/84#bkmrk-set-up-a-three-licen-1 "In a redundancy configuration with three license servers, each of the three license servers runs on its own dedicated machine. Two servers are used to serve licenses and their license files must be kept synchronized. The third server is required to build the quorum, participating in monitoring the availability of at least one license server, but does not serve licenses. Licenses do not need to be installed on the third server.").

Registering the server is only required for initial installation. This steps should be omitted for upgrades and updates. If you are upgrading an existing installation, a running license server is automatically stopped as part of the new software installation.

</section><section>### Before you begin

Make sure that the system hosting the FlexNet license server host system meets the hardware and operating system prerequisites. For details, see [License server setup](https://lhc.advantest.com/books/license-server-setup/page/license-server-setup "This section covers licensing requirements and considerations you will want to examine before installing your licenses.").

</section><section>### Procedure

1. Open the Advantest Software Center in a browser: [https://softwarecenter.advantest.com/](https://softwarecenter.advantest.com/)**Login with your credentials.**
2. To get the list of all available Licensing products, from the left menu select: **<span class="menucascade"><span class="uicontrol">Other</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">Licensing</span></span>**[![1.png](https://lhc.advantest.com/uploads/images/gallery/2025-10/scaled-1680-/fNI1-png.png)](https://lhc.advantest.com/uploads/images/gallery/2025-10/scaled-1680-/fNI1-png.png)
3. Scroll to and select the license type FNP and the version you want to install and expand to display the details.
4. Download the archive package by clicking the [![9.png](https://lhc.advantest.com/uploads/images/gallery/2025-10/scaled-1680-/ixq9-png.png)](https://lhc.advantest.com/uploads/images/gallery/2025-10/scaled-1680-/ixq9-png.png) icon. The selected license (**<span class="filepath">tar.gz</span>**) package is downloaded to your browser's download folder.
    
    Example FNP packages include:
    
    <span class="filepath"> <kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="keyword">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">fnp_11.12.1.7_v6-9_rhel7.tar.gz</kbd></kbd></kbd></kbd>`</span></kbd></kbd></kbd></span>
5. <span id="bkmrk-create-an-empty-inst">Create an empty installation directory. For example: **<kbd class="userinput">/tmp/smartest\_pakages</kbd>**</span><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="keyword">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">mkdir /tmp/smartest_pakages</kbd></kbd></kbd></kbd></kbd>`</span></kbd></kbd></kbd></span></kbd>
    
    <p class="callout info"><span class="title">Note It is not recommended to use a separate partition for **<span class="filepath">/tmp</span>**. <span style="text-decoration:underline;">Ensure that sufficient space is allocated to the <span class="filepath">/tmp</span> folder.</span> As <span class="filepath">/tmp</span> is a shared directory and used by many applications, the required folder size is dependent on the actual use and so customer-specific. Therefore, Advantest cannot give a recommendation about the required size of this folder. **Monitor the <span class="filepath">/tmp</span> folder** and make sure that sufficient space is always available.</span></p>
    
    <div><div class="note">  
    </div></div>
6. Install the RPM package from the <kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="keyword">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">smartest_packages</kbd></kbd></kbd></kbd></kbd>`</span></kbd></kbd></kbd></span></kbd>directory on your workstation: <div><div class="note">  
    </div></div><p class="callout info"><span class="title">Note: During upgrading and updating, the installation script can be called without any options. All installed packages are detected automatically and updated if applicable.  
    </span></p>
    
    <kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="keyword">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">smart<kbd class="userinput">-install-3 local-install <package-name>.tar.gz</kbd></kbd></kbd></kbd></kbd></kbd>`</span></kbd></kbd></kbd></span></kbd></kbd>
    
    For example:
    
    <kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="keyword">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">smart<kbd class="userinput">-install<kbd class="userinput">-3 local-install fnp_11.12.1.7_v6-9_rhel7.tar.gz</kbd></kbd></kbd></kbd></kbd></kbd></kbd>`</span></kbd></kbd></kbd></span></kbd></kbd></kbd>
    
    Installation of the selected licensing packages starts and successful installation is confirmed with:
    
    <div><div class="p"><div>  
    </div></div></div>```
    Complete!
    ```
    
    <div>  
    </div>
7. **Optional:** <span id="bkmrk-remove-the-installat">Remove the installation directory. For example:  
      
    </span><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="keyword">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">rm -rf /tmp/smartest_packages</kbd></kbd></kbd></kbd></kbd></kbd>`  
      
    </span></kbd></kbd></kbd></span></kbd></kbd>
    
    <div id="bkmrk--2"></div>
8. To start the license server, log in as <span class="keyword">root</span> user and use the following command: <div><dl><dt class="dlterm"><span style="background-color:rgb(206,212,217);">**RHEL 7**</span></dt><dd><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="keyword">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">systemctl start v93-license</kbd> </kbd></kbd></kbd></kbd></kbd></kbd>`</span></kbd></kbd></kbd></span></kbd></kbd></kbd></dd><dt class="dlterm"><span style="background-color:rgb(206,212,217);">**RHEL 5**</span></dt><dd><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="keyword">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">/etc/init.d/smartest_license start</kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd>`  
      
    </span></kbd></kbd></kbd></span></kbd></kbd></kbd></kbd></dd></dl></div>
9. To monitor the status of the license server, use the following command: <div><dl><dt class="dlterm">**<span style="background-color:rgb(206,212,217);">RHEL 7</span>**</dt><dd><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="keyword">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">syst<kbd class="userinput">emctl status v93-license</kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd>`</span></kbd></kbd></kbd></span></kbd></kbd></kbd></kbd></dd><dt class="dlterm">**<span style="background-color:rgb(206,212,217);">RHEL 5</span>**</dt><dd><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="keyword">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">/opt/flexlm/bin/lmutil lmstat -a </kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd>`</span></kbd></kbd></kbd></span></kbd></kbd></kbd></kbd></kbd></dd></dl></div>

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

The FNP license server and associated tools such as [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).") are installed and running.

For more information about using the license server, see [License server basic operations](https://lhc.advantest.com/link/84#bkmrk-license-server-basic "The license server is implemented as a system service. If licenses are available, the license server starts automatically on system start.").

</section></section><section class="section" id="bkmrk-set-up-a-three-licen">---

# Set up a three-license-server redundancy configuration

In a redundancy configuration with three license servers, each of the three license servers runs on its own dedicated machine. Two servers are used to serve licenses and their license files must be kept synchronized. The third server is required to build the quorum, participating in monitoring the availability of at least one license server, but does not serve licenses. Licenses do not need to be installed on the third server.

<section>### Procedure

<div><div class="p">To specify a three license server configuration you must include three SERVER lines in the license file. The set of three SERVER lines must appear identically in the same order in all three files on all three servers.</div></div>For example:

`SERVER <license_server_host_ name> <hostid> <port>`  
`SERVER <license_server_host_ name> <hostid> <port>`  
`SERVER <license_server_host_ name> <hostid> <port>`  
`VENDOR socbu`

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

By these SERVER lines each license server system knows the other license server systems that have the same set of licenses. Each server system communicates with the other license server systems.

<p class="callout info"><span class="title">Note: The license files must be kept synchronized on the primary and secondary license servers. Both servers are equivalent. If the active one goes down, the other one becomes MASTER and serves the licenses available on its disk.</span></p>

If a license server system detects that it cannot communicate with at least one the others, it refuses to serve licenses until it can. That is, a minimum of two license servers must be running. This ensures that only one of the three license servers serves licenses at any one time.

</section>---

# Merging new licenses into an existing license file

If you have previously installed a FLEXlm license you may find it desirable to merge your new license file with a license file that already exists. This can help reduce the complexity of managing multiple licenses.

</section><p class="callout info"><span class="title">Note:</span> If you are installing a floating license for the first time, skip to the next section, **[Install a floating license file](https://lhc.advantest.com/link/84#bkmrk-install-a-floating-l "A copy of the SmarTest floating-license file must be stored on each computer upon which you will want to execute the SmarTest feature.").**</p>

<section class="section" id="bkmrk-to-merge-your-new-li">To merge your new license file with an existing license file, consult chapter 3 of the *FLEXlm End Users 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>**

If you choose to merge files, be sure to copy the newly merged license file to *each* computer where you want to execute the SmarTest feature.

If you choose not to merge the new license file with an existing license file, follow the instructions for first time installation of a floating license in [Install a floating license file](https://lhc.advantest.com/link/84#bkmrk-install-a-floating-l "A copy of the SmarTest floating-license file must be stored on each computer upon which you will want to execute the SmarTest feature.").

---

# Find out HostID and HostName

This topic describes how to find out the HostID and the HostName of the license servers for license activation.

<div><section class="section">### About this task

<p class="callout info"><span class="title">Note: This topic is applicable to SmarTest 7 and SmarTest 8.</span></p>

To activate license you need the following information:

- Entitlement Certificate
- HostID of the license servers
- HostName of the license servers

</section><section class="sectiontitlefake">### Procedures

</section><section class="section">#### **Find out HostID**

**FLEXlm binaries are installed**

1. Login to as user root: **<kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput">su root</kbd></kbd>`</kbd></kbd>** and enter the root user password.
2. Open a terminal window.
3. Type: <kbd class="userinput">`<kbd class="userinput">/opt/flexlm/bin/lmutil lmhostid -n</kbd>`</kbd>

**FLEXlm binaries are not installed**

The HostID is an 8 digit hexadecimal number (HP-UX or Solaris) or a 12-digit hexadecimal number (Linux). Select from one of the following commands, depending on your OS.

**Sun Solaris**

1. Log in as root and open a terminal window.
2. Type: <kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput">/usr/bin/hostid</kbd></kbd>`</kbd></kbd>

**Linux**

1. Login to as user root: <kbd class="userinput">su root</kbd> and enter the root user password.
2. Open a terminal window.
3. Type: 
    - <span style="text-decoration:underline;">**<span class="uicontrol">Linux RHEL 5</span>**</span><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput">/sbin/ifconfig eth0 | grep HWaddr | sed 's/://g' | awk ' {print $NF} '</kbd></kbd></kbd>`</kbd></kbd>  
          
        </kbd>
    - <span style="text-decoration:underline;">**<span class="uicontrol">Linux RHEL 7</span>**</span><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput">/sbin<kbd class="userinput">/ifconfig eno1 | grep "ether" | sed 's/://g' | awk ' {print $2} ' </kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd>

</section><section class="section">#### **Find out HostName**

**Sun Solaris**

1. Log in as root and open a terminal window.
2. Type: <kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">/bin/hostname</kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd></kbd>

**Linux**

1. Login to as user root: <kbd class="userinput">su root</kbd> and enter the root user password.
2. Open a terminal window.
3. Type: <kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">/<kbd class="userinput">usr/bin/hostname</kbd></kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd></kbd></kbd>

</section><section class="section">### What to do next

[Activating licenses](https://lhc.advantest.com/books/activating-licenses "Licenses can be activated from entitlements or available licenses activated to a selected license server. If the license server has access to the internet, it synchronises automatically. For license servers that are not connected to the internet, the license files must be downloaded and installed manually.")

</section></div><nav>### Related information

<div class="ri"><div>[Install a floating license file](https://lhc.advantest.com/link/84#bkmrk-install-a-floating-l "A copy of the SmarTest floating-license file must be stored on each computer upon which you will want to execute the SmarTest feature.")</div><div>[FlexNet licensing](https://lhc.advantest.com/books/flexnet-licensing/page/flexnet-licensing "For Pin Scale hardware all SmarTest and V93000 test card features are controlled by FlexNet licensing. This third-party license management software allows for efficient use of licenses as it makes software licenses available anywhere on a network.")</div><div>[License clients and license servers](https://lhc.advantest.com/books/flexnet-licensing/page/license-clients-and-license-servers "Understanding the concept of "license client" and "license server" is essential for a correct setup.")</div></div></nav>---

# Check your floating license file installation

To verify your license has been correctly installed, execute the license status command:

<kbd class="userinput"><span class="keyword"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">lmutil lmstat -a </kbd></kbd></kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd></kbd></kbd></span></span></kbd>

This command returns information on the status of licenses currently loaded on a specified server.

The command is available as part of the <kbd class="userinput"><span class="keyword"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">lmutil</kbd></kbd></kbd></kbd></kbd></kbd>` </kbd></kbd></kbd></kbd></kbd></kbd></span></span></kbd>license server utility. The <kbd class="userinput"><span class="keyword"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">lmutil</kbd></kbd></kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd></kbd></kbd></span></span></kbd> license server utility is available from Advantest and should be installed on each server.

For greater detail about <kbd class="userinput"><kbd class="userinput"><span class="keyword"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">lmstat</kbd></kbd></kbd></kbd></kbd></kbd>` </kbd></kbd></kbd></kbd></kbd></kbd></span></span></kbd></kbd>, see chapter 7 of the *FLEXlm End User Guide*.

You can find the *FLEXlm End User Guide* at the [Advantest Web Site](http://www.advantest.com/):

**<span class="uicontrol">Advantest Home &gt; (Support &amp; Services) V93000 SOC &gt; Software Downloads and Utilities for the V93000 SOC Series&gt; FLEXIm License Server Software Downloads &gt; FLEXlm End Users Guide.</span>**

<nav>## Related information

<div class="ri"><div>[Editing .lic license files](https://lhc.advantest.com/books/client-configuration-and-license-management/page/system-lic-license-files "This topic describes how to edit FlexNet Publisher license server related license files (.lic files).")</div><div>[Install a floating license file](https://lhc.advantest.com/link/84#bkmrk-install-a-floating-l "A copy of the SmarTest floating-license file must be stored on each computer upon which you will want to execute the SmarTest feature.")</div></div></nav>---

# License server basic operations

The license server is implemented as a system service. If licenses are available, the license server starts automatically on system start.

<div><section class="section">### **lmadmin user in RHEL 7**

To enhance the robustness of the license server and prevent unintentional shutdowns, the RHEL 7 version provides some improvements:

The license server is controlled by an internal user: **<span class="keyword"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">lmadmin</kbd></kbd></kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd></kbd></kbd></span></kbd></kbd></span>**. You cannot log in as **<span class="keyword"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">lmadmin</kbd></kbd></kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd></kbd></kbd></span></kbd></kbd></span>**.

Using the <span class="keyword">**<kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">systemctl</kbd></kbd></kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd></kbd></kbd></span></kbd></kbd>**</span> functionality, root can start and stop the license server. No user, including the root user, can directly start or stop the license server.

</section><section class="section">### **systemctl**

You can manually control the license server using the <span class="keyword">**<kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">systemctl</kbd></kbd></kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd></kbd></kbd></span></kbd></kbd>**</span> functionality. The related commands are also documented in the manpage: **<span class="keyword">v93-license</span>**

</section><section class="section">### Starting the license server

- **RHEL 7:**To start the license server, log in as <span class="keyword">root</span> user and use the following command:
    
    <kbd class="userinput"><span class="keyword"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">systemctl start v93-license</kbd></kbd></kbd></kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd></kbd></kbd></span></kbd></kbd><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></span></kbd>
    
    <div class="note">  
    </div><p class="callout info"><span class="title">Note</span> The<kbd class="userinput"><span class="keyword"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">/opt/flexlm/bin/lmgrd [-c license_file_path][-l debug_log_path]</kbd></kbd></kbd></kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd></kbd></kbd></span></kbd></kbd></span></kbd><span class="keyword"> command for starting the license server must not be used on RHEL 7.</span></p>
- **RHEL 5:**To start your license server use the **<span class="keyword">lmgrd</span>** command:
    
    <kbd class="userinput"><kbd class="userinput"><span class="keyword"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">/etc/init.d/smartest_license start </kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd></kbd></kbd></span></kbd></kbd></span></kbd></kbd>

</section><section class="section">### Stopping the license server

- **RHEL 7:**To stop the license server, log in as <span class="keyword">root</span> user and use the following command:
    
    <kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="keyword"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">systemctl stop v93-license</kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd>`  
      
    </kbd></kbd></kbd></kbd></kbd></kbd></span></kbd></kbd></span></kbd></kbd></kbd>
- **RHEL 5:**To stop your license server use the smartest\_license script:
    
    <kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="keyword"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">/etc/init.d/smartest_license stop</kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd></kbd></kbd></span></kbd></kbd></span></kbd></kbd></kbd></kbd>

</section><section class="section">### Reading a new license file

- **RHEL 7:**To read a new license file, log in as <span class="keyword">root</span> user and use the following command:
    
    <kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="keyword"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">systemctl reload v93-license</kbd> </kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd>`  
      
    </kbd></kbd></kbd></kbd></kbd></kbd></span></kbd></kbd></span></kbd></kbd></kbd></kbd>
- **RHEL 5:**To read a new license file, use the **<span class="keyword">lmreread</span>** parameter of the **<span class="keyword">lmutil</span>** command:
    
    <kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="keyword"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">/opt/flexlm/bin/lmutil lmreread [-c /opt/flexlm/license] </kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd></kbd></kbd></span></kbd></kbd></span></kbd></kbd></kbd></kbd></kbd>

</section><section class="section">### Monitoring the status of the license server

- **RHEL 7:**To monitor the status of the license server, log in as <span class="keyword">root</span> user and use the following command:
    
    <kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="keyword"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">syste<kbd class="userinput">mctl status v93-license</kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd></kbd></kbd></span></kbd></kbd></span></kbd></kbd></kbd></kbd></kbd>
- **RHEL 5:**To monitor the status of the license server use the **lmstat** parameter of the **lmutil** command:
    
    <kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="keyword"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">/opt/flexlm/bin/lmutil lmstat -a </kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd></kbd></kbd></span></kbd></kbd></span></kbd></kbd></kbd></kbd></kbd></kbd>

</section><section class="section">### Licenses in use

To get further information about the currently used licenses, use the <span class="keyword">**<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">lmutil</kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd></kbd></kbd></span></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd>** **<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><span class="filepath"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">`<kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput"><kbd class="userinput">lmstat</kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd>`</kbd></kbd></kbd></kbd></kbd></kbd></span></kbd></kbd></kbd></kbd></kbd></kbd></kbd></kbd>**</span>command:

```
/opt/flexlm/bin/lmutil lmstat -c @localhost
```

This command gives you the internal status information provided by the license server.

*FLEXlm End User Guide* at the [Advantest Web Site](http://www.advantest.com/):

**<span class="menucascade"><span class="uicontrol">Service &amp; Support</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">IC Test Systems</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">Licensing</span><abbr title="and then"> &gt; </abbr><span class="uicontrol">V93000 FLEXlm License Server Software Downloads and Documents</span></span>**

</section></div><nav>### Related information

<div class="ri"><div>[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).")</div><div>[Using the FLEXlm debug log](https://lhc.advantest.com/link/85#bkmrk-using-the-flexlm-deb "In case of problems with the license server, the status and error messages of the FLEXlm debug log will be useful.")</div></div></nav>  
</section>

# Diagnose and solve license problems

<nav id="bkmrk-subtopics-flexlm-lic">#### **Subtopics**

<div id="bkmrk-flexlm-license-error">1. [FLEXlm license error messages](https://lhc.advantest.com/link/85#bkmrk-flexlm-license-error-1)
2. [Losing connection to license server](https://lhc.advantest.com/link/85#bkmrk-losing-connection-to)
3. [Using the FLEXlm debug log](https://lhc.advantest.com/link/85#bkmrk-using-the-flexlm-deb)
4. [FLEXLM\_DIAGNOSTICS environmental variable](https://lhc.advantest.com/link/85#bkmrk-flexlm_diagnostics-e)
5. [Server and network crash diagnostic table](https://lhc.advantest.com/link/85#bkmrk-server-and-network-c)
6. [Mismatch in license server version](https://lhc.advantest.com/link/85#bkmrk-mismatch-in-license-)
7. [Upgrading FLEXlm executable files](https://lhc.advantest.com/link/85#bkmrk-upgrading-flexlm-exe)
8. [Replacing licenses after a server problem](https://lhc.advantest.com/link/85#bkmrk-replacing-licenses-a)
9. [Emergency licenses](https://lhc.advantest.com/link/85#bkmrk-emergency-licenses)
10. [Adding licenses with lmreread](https://lhc.advantest.com/link/85#bkmrk-adding-licenses-with)

</div></nav>If a problem occurs, please **track the following information**, which can be useful to service personnel.

<div id="bkmrk-which-operating-syst">- Which operating system is in use, and which version of that operating system.
- Type of computer used as license server.
- FLEXlm version. Use the <kbd class="userinput">lmver</kbd> or <kbd class="userinput">lmgrd -v</kbd> commands to identify the version. See [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).") for more detail.
- Error or warning messages that appear.
- Did the server start correctly?
- Are you using a combined or a separate license?
- Are you using a single server or multiple server redundancy?
- What information is returned when you execute the <kbd class="userinput">lmstat - a</kbd>command? lmstat returns license management status information. See [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).") for more detail.
- What information is returned when you execute the <kbd class="userinput">lmdiag</kbd> command. lmdiag returns information relevant to license checkout problems. See [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).") for more detail.

---

</div>### FLEXlm license error messages

FLEXlm and FLEXnet provide error messages that can help guide you in diagnosing a problem. FLEXlm and FLEXnet errors with the same numerical code are identical.

For a complete listing of messages you will see in the "debug log" see Appendix G of the FLEXlm 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>.**)

<div id="bkmrk-flexlm-license-error-2"><table class="frame-topbot" style="border-collapse:collapse;border-width:0.2px;"><caption>***FLEXlm license error messages***</caption><colgroup><col></col><col></col></colgroup><thead><tr class="rowsep-1"><th class="colsep-1 rowsep-0" id="bkmrk-error-code" style="border-width:0.2px;">**Error Code**

</th><th class="colsep-1 rowsep-0" id="bkmrk-flexlm-license-error-3" style="border-width:0.2px;">**FLEXlm License Error Description**

</th></tr></thead><tbody><tr class="rowsep-1"><td class="colsep-1 rowsep-0" style="border-width:0.2px;">-1

</td><td class="colsep-1 rowsep-0" style="border-width:0.2px;">Cannot find license file.

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" style="border-width:0.2px;">-2

</td><td class="colsep-1 rowsep-0" style="border-width:0.2px;">Invalid license file syntax.

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" style="border-width:0.2px;">-3

</td><td class="colsep-1 rowsep-0" style="border-width:0.2px;">No server for this feature.

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" style="border-width:0.2px;">-4

</td><td class="colsep-1 rowsep-0" style="border-width:0.2px;">Licensed number of users already reached.

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" style="border-width:0.2px;">-5

</td><td class="colsep-1 rowsep-0" style="border-width:0.2px;">No such feature exists.

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" style="border-width:0.2px;">-8

</td><td class="colsep-1 rowsep-0" style="border-width:0.2px;">Invalid (inconsistent) license key or signature. The license key/signature and data for the feature do not match. This usually happens when a license file has been altered.

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" style="border-width:0.2px;">-9

</td><td class="colsep-1 rowsep-0" style="border-width:0.2px;">Invalid host. The hostid of this system does not match the hostid specified in the license file.

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" style="border-width:0.2px;">-10

</td><td class="colsep-1 rowsep-0" style="border-width:0.2px;">Feature has expired.

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" style="border-width:0.2px;">-11

</td><td class="colsep-1 rowsep-0" style="border-width:0.2px;">Invalid date format in license file.

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" style="border-width:0.2px;">-13

</td><td class="colsep-1 rowsep-0" style="border-width:0.2px;">No SERVER lines in license file.

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" style="border-width:0.2px;">-14

</td><td class="colsep-1 rowsep-0" style="border-width:0.2px;">Cannot find SERVER hostname in network database. The lookup for the hostname on the SERVER line in then license file failed. This often happens when the host file, or NIS, or DNS is incorrect. Workaround: Use IP address (for example, 123.456.789.123) instead

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" style="border-width:0.2px;">-15

</td><td class="colsep-1 rowsep-0" style="border-width:0.2px;">Cannot connect to license server. The server (lmgrd) has not been started yet, or the wrong port@host or license file is being used

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" style="border-width:0.2px;">-16

</td><td class="colsep-1 rowsep-0" style="border-width:0.2px;">Cannot read data from license server

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" style="border-width:0.2px;">-18

</td><td class="colsep-1 rowsep-0" style="border-width:0.2px;">License server does not support this feature

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" style="border-width:0.2px;">-21

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

</td></tr><tr class="rowsep-1"><td class="colsep-1 rowsep-0" style="border-width:0.2px;">-26

</td><td class="colsep-1 rowsep-0" style="border-width:0.2px;">Request for more licenses than this feature supports

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

</div>The FLEXnet End User 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">(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><abbr title="and then"> &gt; </abbr><span class="uicontrol">FLEXnet End Users Guide</span></span>.**

<nav id="bkmrk-related-information-">### Related information

<div class="ri"><div>[Model file error messages](https://tdc.advantest.com/help/topic/com.verigy.itee.help.smartest.ui.8.7.6/245086.htm "Model file error messages report parser syntax errors and hardware compatibility errors.")</div></div></nav>---

# Losing connection to license server

In case you loose connection to the license server (for example, due to a network outage) the software will continue working for two hours. After that time it will shutdown automatically.

A window (see below) is displayed every 30 minutes to inform you about the lost connection and the remaining time for which the software can still be used.

<div class="p" id="bkmrk--1"><figure class="fignone">[![2.png](https://lhc.advantest.com/uploads/images/gallery/2025-10/scaled-1680-/r322-png.png)](https://lhc.advantest.com/uploads/images/gallery/2025-10/scaled-1680-/r322-png.png)</figure></div><section class="section" id="bkmrk-changing-the-message">### Changing the message interval

To change the interval in which warning messages are shown you can modify the` <span class="filepath">flexlm.cfg</span>file` in the `<span class="filepath">/etc/opt/hp93000/soc_common</span>directory`. The entry <kbd class="userinput">`WarningInterval <minutes>` </kbd>defines the interval in which warning messages are shown. Default value is 30 minutes.

</section><section class="section" id="bkmrk-license-server-behav">### License server behavior

If the connection is lost the license server frees checked out licenses after 20 minutes. This is the minimum time. You can increase the duration in an option file on the license server. The option file must be named <span class="filepath">socbu.opt</span> and reside in the same directory as the vendor daemon <span class="filepath">socbu</span>. For details on the <span class="filepath">socbu.opt</span> option file please refer to the *FLEXlm End User Guide.*

When the license server connection is restored, the 2-hours-timeout is reset and licenses are checked out again.

</section>---

# Using the FLEXlm debug log

In case of problems with the license server, the status and error messages of the **FLEXlm** debug log will be useful.

The license server keeps its log files in the `<span class="filepath">/opt/flexlm/log</span>` directory. All files are tagged with a time stamp marking the date of creation. The most recent file is available via a hard link: **`<span class="filepath">lmgrd_socbu.log</span>`**. The last entries at the end of `<span class="filepath">/opt/flexlm/log/lmgrd_socbu.log</span>` provide information about recent licensing issues.

The log files contain information about:

<div id="bkmrk-configuration-proble">- configuration problem messages,
- daemon software messages, and
- informational messages.

</div>These messages are useful in case you need to debug the license server.

For a listing of possible debug log messages see the ***FLEXlm End User Guide***.

You can find the *FLEXlm End User Guide* at the [Advantest Web Site](http://www.advantest.com/):   
`<strong><span class="filepath">Service & Support > IC Test Systems > Licensing > V93000 FLEXlm License Server Software Downloads and Documents</span><em>.</em></strong>`

<nav id="bkmrk-related-information--1">### Related information

<div class="ri"><div>[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).")</div></div></nav>---

# FLEXLM\_DIAGNOSTICS environmental variable

The FLEXLM\_DIAGNOSTICS environmental variable is mainly used to diagnose license check out problems.

<p class="callout info"><span class="title">Note:</span> To diagnose license check out problems, Advantest recommends to set the variable to **<kbd class="userinput">FLEXLM\_DIAGNOSTICS=stdout</kbd>** instead of level 3. This provides the same data but avoids the creation of empty **<span class="filepath">flex\*.log</span>** files in your SmarTest start directory.</p>

This diagnostic tool provides up to three levels of diagnostic, depending on the version of **FLEXlm** installed on your system. Each level increases the diagnostic functionality available when **FLEXLM\_DIAGNOSTICS** is used. Level 2 includes functionality of levels 2 and 1. Level 3 includes the functionality of levels 3, 2 and 1.

The examples below display the information that will be retrieved when the environmental variable is set to 1, 2, or 3. Text in bold font indicates additional information provided by each level, compared to the preceding level.

- **Level 1:***For use when a license checkout fails to load.* When set to 1 a FLEXlm licensing check out error message is shown, as well as a complete list of the license files that the application attempted to use.
- **Level 2:***For use when a license checkout fails to load*. In addition to level 1 information, the level 2 diagnostic file returns information about the present checkout arguments. Among arguments listed in lm\_checkout: feature, version, num\_lic, queue\_flag, dupgroup\_mask.
- **Level 3:***For use both if a checkout is successful and if it fails to load*. Information about how the license is granted is displayed; for example, whether a server is used, the name of the license file, and how the license server has been designated.
    
    In case of a successful checkout, the log file is still created, but contains no information. We recommend to use **<kbd class="userinput">FLEXLM\_DIAGNOSTICS=stdout</kbd>** instead (see Note above).

<p class="callout info"><span class="title">Note:</span> Default FNP license directory (<var class="varname">path</var>): `<span class="filepath">/opt/flexlm/licenses</span>`</p>

<section class="section" id="bkmrk-example-of-level-1-e">### Example of Level 1

`<kbd class="userinput">export FLEXLM_DIAGNOSTICS=1</kbd>`

`<kbd class="userinput">FLEXlm checkout error: Cannot find license file (-1,73:2) No such file or directory license file(s): /<var class="varname">path</var>/licenses/testing.lic license.lic</kbd>`

</section><section class="section" id="bkmrk-example-of-level-2-e">### Example of Level 2

`<kbd class="userinput">export FLEXLM_DIAGNOSTICS=2</kbd>`

`<kbd class="userinput">FLEXlm checkout error: Cannot find license file (-1,73:2) No such file or directory license file(s): /<var class="varname">path</var>/licenses/testing.lic license.lic</kbd>`

`<strong>lm_checkout ("f1", 1.0, 1, 0x0, ..., 0x4000)</strong>`

</section><section class="section" id="bkmrk-example-of-level-3-e">### Example of Level 3

**<kbd class="userinput">export FLEXLM\_DIAGNOSTICS=3</kbd>**

**<kbd class="userinput">FLEXlm checkout error: Cannot find license file (-1,73:2) No such file or directory license file(s): /<var class="varname">path</var>/licenses/testing.lic license.lic</kbd>**

**lm\_checkout ("f1", 1.0, 1, 0x0, ..., 0x4000)**

<span style="text-decoration:underline;">**app1**</span>

**Checkout succeeded: f0/14263EAEA8E0**

**License file: ./servtest.lic**

**No server used**

<span style="text-decoration:underline;">**app2**</span>

**Checkout succeeded: f1/BC64A7B120AE**

**License file: @localhost**

**License server: @localhost**

<span style="text-decoration:underline;">**app3**</span>

**Checkout succeeded: f1/BC64A7B120AE**

**License file: ./servtest.lic**

**License server: @speedy**

<p class="callout info"><span class="title">Note:</span> Text in bold indicates diagnostic information returned for that level of diagnostic code that is not returned at a lower level. </p>

</section>---

# Server and network crash diagnostic table

In any server or network crash scenario the test systems will continue to run the current tests for two hours or until there is a change of test device. System calibration and diagnostics will, similarly, result in stopping the current device test.

*Test systems cannot initiate new tests until the failure case is repaired*.

The Recovery column indicates the repair for each crash scenario. "ELF" in the table refers to the Emergency License Facility, that is explained in the section *[Emergency licenses](https://lhc.advantest.com/link/85#bkmrk-emergency-licenses "Emergency 10-day licenses enable you to meet test needs until your license is rehosted,")*.

<table class="frame-topbot" id="bkmrk-failure-case-impact-" style="border-collapse:collapse;border-width:0.2px;width:100%;"><colgroup><col style="width:16.6847%;"></col><col style="width:36.8236%;"></col><col style="width:46.4808%;"></col></colgroup><thead><tr class="rowsep-1"><th class="colsep-0 rowsep-0" id="bkmrk-failure-case" style="border-width:0.2px;">**Failure Case**

</th><th class="colsep-0 rowsep-0" id="bkmrk-impact-on-test-syste" style="border-width:0.2px;">**Impact on Test System**

</th><th class="colsep-0 rowsep-0" id="bkmrk-recovery" style="border-width:0.2px;">**Recovery**

</th></tr></thead><tbody><tr class="rowsep-1"><td class="colsep-0 rowsep-0" style="border-width:0.2px;">FLEXlm License Server Crash

</td><td class="colsep-0 rowsep-0" style="border-width:0.2px;">Systems that get their licenses from this server stop once they change device, reboot, calibrate, run diagnostic. Otherwise the testers keep running

</td><td class="colsep-0 rowsep-0" style="border-width:0.2px;">If Harddisk failure, repair Harddisk, install SW and existing licenses.

If Motherboard failure, use ELF process via WEB to obtain 10 days license. Within 10 days obtain ReHosted licenses from Advantest Support.

</td></tr><tr class="rowsep-1"><td class="colsep-0 rowsep-0" style="border-width:0.2px;">Test Floor Network down

</td><td class="colsep-0 rowsep-0" style="border-width:0.2px;">Systems that get their licenses from this server stop once they change device, reboot, calibrate, run diagnostic. Otherwise the testers keep running

</td><td class="colsep-0 rowsep-0" style="border-width:0.2px;">For long time Network outage:

Use Elf process on a network outside the test floor (Internet Cafe) to obtain local licenses for each tester computer. (gives 10 days access)

</td></tr><tr class="rowsep-1"><td class="colsep-0 rowsep-0" style="border-width:0.2px;">FLEXlm License Server Crash and Test Floor Network down

</td><td class="colsep-0 rowsep-0" style="border-width:0.2px;">Systems that get their licenses from this server stop once they change device, reboot, calibrate, run diagnostic. Otherwise the testers keep running

</td><td class="colsep-0 rowsep-0" style="border-width:0.2px;">Use ELF process on a Network outside Test Floor (for example, Internet Cafe) and obtain license. Use floppy disk, Flash card, any removable media, or print out license key and type in on test floor computers.

</td></tr><tr class="rowsep-1"><td class="colsep-0 rowsep-0" style="border-width:0.2px;">FLEXlm License Server Crash and Advantest Server (ELF) down

</td><td class="colsep-0 rowsep-0" style="border-width:0.2px;">Systems that get their licenses from this server stop once they change device, reboot, calibrate, run diagnostic. Otherwise the testers keep running

</td><td class="colsep-0 rowsep-0" style="border-width:0.2px;">No recovery until Advantest server is up again.

(We estimate the probability of both failures occurring simultaneously at about 0.001.)

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

<nav id="bkmrk-related-information--2"><div class="ri"><div></div></div></nav>---

# Upgrading FLEXlm executable files

This topic explains how to upgrade the license server using the FLEXIm executable files.

<section class="section" id="bkmrk-about-this-task-upgr">### About this task

Upgrading the license server means updating these FLEXlm binary executable files:

- `<span class="filepath">lmgrd</span>`: the license server executable
- `<span class="filepath">lmutil</span>`: the license server utility
- `<span class="filepath">socbu</span>`: the license vendor daemon

After having updated SmarTest you may get an error message which asks you to upgrade the license server:

```
Mismatch in License Server version (check <version>). License Server version <version> is older than required version <version>.
License Server upgrade is required, as otherwise no licenses can be checked out.
```

The procedure to upgrade the FLEXlm binary executable files differs depending on the operating system of your license server host: Linux or Sun Solaris. In any case you must have root (superuser) rights to upgrade the binary files.

Alternatively to the procedure described below, you can reinstall the complete FLEXlm License Server RPM package.

<p class="callout info"><span class="title">Note:</span> If you have a three-redundancy-license-server setup you must do the upgrade on all three license servers.</p>

</section><section id="bkmrk-before-you-begin-you">### Before you begin

You must have downloaded the appropriate upgrade package, either a zip file or a tar.gz file, for your operating system from **<span class="uicontrol">FLEXlm License Server Software Downloads and Documents</span>** on [https://www.advantest.com/service-support/ic-test-systems/products-list/v93000-licensing](https://www.advantest.com/service-support/ic-test-systems/products-list/v93000-licensing). The following packages are provided:

- FLEXlm License Server Components <span class="keyword">&lt;version&gt;</span> for RHEL 5 and RHEL 7 64-bit (zip file)
- FLEXlm License Server Components <span class="keyword">&lt;version&gt;</span> for Sun Solaris 10 (tar.gz file)

Each of these packages contains the FLEXlm binary files `<span class="filepath">lmgrd</span>`, `<span class="filepath">lmutil</span>`, and `<span class="filepath">socbu</span>`.

</section><section id="bkmrk-procedure-to-upgrade">### Procedure

1. To upgrade the FLEXlm binary files, login as root (superuser).<s>  
      
    </s>
2. Open a terminal window.
3. The license server must not run. To check if the license server process is running, type `<kbd class="userinput">ps -ef | grep lmgrd</kbd>`
    
    If the process is running, you will get an output for `<span class="filepath">/opt/flexlm/bin/lmgrd</span>` and `<span class="filepath">socbu</span>` like:
    
    ```
    root  1234     1 0  11:11 pts/1  00:00:00   /opt/flexlm/bin/lmgrd ...
    root  1235  1234 0  11:11 ?      00:00:00   socbu -T ...
    root  1239  9480 0  11:29 pts/1  00:00:00   grep lmgrd
    ```
4. If the license process is running, stop the license processes. To stop the processes, type: <div>
    - <span style="background-color:rgb(206,212,217);">**RHEL 7:**</span>To stop the license server, log in as <span class="keyword">root</span> user and use the following command:
        
        `<kbd class="userinput">systemctl stop v93-license</kbd>`
    - <span style="background-color:rgb(206,212,217);">**RHEL 5:**</span>To stop your license server use the smartest\_license script:
        
        `<kbd class="userinput">/etc/init.d/smartest_license stop</kbd>`
    
    </div>
5. To extract the FLEXlm binary files from the upgrade package, <div>
    - on Linux, type `<kbd class="userinput">unzip</kbd><span class="keyword">filename</span><kbd class="userinput">.zip</kbd>`
    - on Sun Solaris, type `<kbd class="userinput">tar -xzvf</kbd><span class="keyword">filename</span><kbd class="userinput">.tar.gz</kbd>`This extracts the FLEXlm binary files `<span class="filepath">lmgrd</span>`, `<span class="filepath">lmutil</span>`, and `<span class="filepath">socbu</span>`.
    
    </div>
6. Copy the files `<span class="filepath">lmgrd</span>`, `<span class="filepath">lmutil</span>`, and `<span class="filepath">socbu</span>` to <span class="filepath">/`opt/flexlm/bin`</span>, replacing the existing version of the files. If you have a three-redundancy-license-server setup you must do this on all three license servers.
7. Make sure the permissions for each file are set correctly. The files must be executable for the appropriate user, who will start the license server.
8. To start the `lmgrd` license process, type: <div>
    - <span style="background-color:rgb(206,212,217);">**RHEL 7:**</span>To start the license server, log in as <span class="keyword">root</span> user and use the following command:
        
        `<kbd class="userinput">systemctl start v93-license</kbd>`
        
        <p class="callout info"><span class="title">Note:</span> The `<span class="keyword">/opt/flexlm/bin/lmgrd [-c license_file_path][-l debug_log_path]</span>` command for starting the license server must not be used on RHEL 7.</p>
    - <span style="background-color:rgb(206,212,217);">**RHEL 5:**</span>To start your license server use the smartest\_license script:
        
        `<kbd class="userinput">/etc/init.d/smartest_license start</kbd>`
    
    </div>

</section><section class="section" id="bkmrk-results-you-upgraded">### Results

You upgraded the FLEXlm binary executable files `<span class="filepath">lmgrd</span>`, `<span class="filepath">lmutil</span>`, and `<span class="filepath">socbu</span>` to the latest version.

</section>---

# Replacing licenses after a server problem

When replacing licenses after a license server problem you must differentiate between two cases: Recovering and Rehosting.

<section class="section" id="bkmrk-recovering-licenses-">## Recovering licenses

Recovering a license file - as contrasted with "rehosting" a license file - is the process that enables you to reload your license file after you restore operation to a failed license server computer.

- If the server crash is due to a hard drive failure, you should repair the hard drive, reinstall the license server software, restore a backup copy of the license file, and start lmgrd. (For a copy of lmgrd, see [Licensing](https://www.advantest.com/service-support/ic-test-systems/products-list/v93000-licensing)).
- Other types of computer failures may or may not affect the integrity of the hostid. If the computer can be repaired without changing the hostid, reinstall the software and licenses, as needed, and start the license server. If the computer repair alters the hostid, then the licenses must be rehosted.
- During the time required for repair of the license server, the emergency license capability can be used (see [Emergency licenses](https://lhc.advantest.com/books/license-server-setup/page/diagnose-and-solve-license-problems#bkmrk-emergency-licenses "Emergency 10-day licenses enable you to meet test needs until your license is rehosted,")). <p class="callout warning"><span class="title">CAUTION:</span> Advantest highly recommends that you keep a backup copy of your license file in a safe location separate from your license server and test computer, so you can more easily recover a license should the need arise.</p>

</section><section class="section" id="bkmrk-rehosting-licenses-r">## Rehosting licenses

Rehosting a license file is the process where all licenses you have originally locked to one license server are reissued by Advantest so a different computer can be used as a replacement license server.

Only two circumstances permit rehosting:

- The catastrophic crash of your server.
- Your server is inoperable due to obsolescence.

In either case you must contact your Advantest sales representative to initiate a rehost action to transfer your existing licenses to a new server. During the time this process takes you may need to utilize the emergency license capability (see [Emergency licenses](https://lhc.advantest.com/books/license-server-setup/page/diagnose-and-solve-license-problems#bkmrk-emergency-licenses "Emergency 10-day licenses enable you to meet test needs until your license is rehosted,")).

<p class="callout info"><span class="title">Note:</span> Any device test already in progress when the server or network crashes, will continue to run for 2 hours. You will be unable to load new device tests.</p>

To rehost, notify your Advantest sales representative that a catastrophic server failure has occurred or that you can no longer use the server due to obsolescence.

You must provide the representative with the hostid and hostname associated with the failed server, as well as the hostid and hostname of the new computer that you will use as your replacement license server.

You will receive a license file for the new license server computer that contains all the licenses associated with the failed license server. You will need to load the license server software on this computer.

<p class="callout info"><span class="title">Note:</span> This process may take several business days, during which you can use an emergency license to keep your operation running (see [Emergency licenses](https://lhc.advantest.com/books/license-server-setup/page/diagnose-and-solve-license-problems#bkmrk-emergency-licenses "Emergency 10-day licenses enable you to meet test needs until your license is rehosted,")).</p>

</section>---

# Emergency licenses

Emergency 10-day licenses enable you to meet test needs until your license is rehosted,

<p class="callout info"><span class="title">Note:</span> Emergency 10-day licenses are only available for emergency circumstances.</p>

The emergency license delivery mechanism will provide you with licenses immediately upon application via Advantest website.

Emergency licenses may be required:

- If your server suffers a catastrophic crash that will require replacement of the server. *In the case of a server that has been catastrophically damaged, you will also have to rehost your original licenses. See **[Replacing licenses after a server problem](https://lhc.advantest.com/books/license-server-setup/page/diagnose-and-solve-license-problems#bkmrk-replacing-licenses-a "When replacing licenses after a license server problem you must differentiate between two cases: Recovering and Rehosting.").** Rehosting can take several days during which time emergency licenses will meet your testing needs.*

There are several considerations you should be aware of, if you apply for emergency licenses:

- You must notify your Advantest sales representative as soon as possible by voice or email before you apply for a license.
- You must take all reasonable steps to restore operation to your original license server, or replace it, within 10 days.
- You should understand that temporary licenses you receive will be good for 10 days, by which time you will need to have rehosted your licenses.

See [Licensing](https://www.advantest.com/service-support/ic-test-systems/products-list/v93000-licensing) for further information about the emergency license process. You will need your STE support site login to access the support web page.

---

# Adding licenses with lmreread

Adding licenses may be required for example, by a new device test, which uses extended test system features, or if you received emergency licenses.

<div id="bkmrk-about-this-task-you-"><section class="section">### About this task

You can add licenses to your license server without impacting device tests that are currently running.

To extend test system capabilities prior to running a new device test, follow the steps below.

</section><section>### Procedure

1. Install the additional licenses file on the server and networked computers on which they will run. See the "**Floating license instructions**" section of the "***Site Planning and Preparation Guide**"* for the *"**V93000 Pin Scale System**"*.
2. Use the `lmreread` command, which will initiate a reread of the license files on the server, which makes these added licenses available from the server's pool of licenses. See [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).") (lmreread) for more detail.
3. Shut down SmarTest. This will check the current licenses back into the server.
4. Restart SmarTest.

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

SmarTest notices the new licenses that have been added to the server, and they will be available for device test.

You will need to shut down and restart SmarTest on *each* test system before that test system will be able to use the new licenses.

For complete <kbd class="userinput">lmreread</kbd> syntax information see chapter 7 of the *FLEXlm 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>**.

</section></div><nav id="bkmrk-related-information--3">### Related information

<div class="ri"><div>[Emergency licenses](https://lhc.advantest.com/link/85#bkmrk-emergency-licenses "Emergency 10-day licenses enable you to meet test needs until your license is rehosted,")</div></div></nav>

# 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 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" style="border-width:0.2px;">`<strong><kbd class="userinput">lmstat</kbd></strong>`

</td><td class="colsep-1 rowsep-0" 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" style="border-width:0.2px;">`<strong><kbd class="userinput">lmdiag</kbd></strong>`

</td><td class="colsep-1 rowsep-0" 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 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" style="height:80.1136px;border-width:0.2px;">**`<kbd class="userinput">lmdown</kbd>`**

</td><td class="colsep-1 rowsep-0" 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" style="height:96.9176px;border-width:0.2px;">**`<kbd class="userinput">lmhostid</kbd>`**

</td><td class="colsep-1 rowsep-0" 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" style="height:63.3097px;border-width:0.2px;">**`<kbd class="userinput">lminstall</kbd>`**

</td><td class="colsep-1 rowsep-0" 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" style="height:80.1136px;border-width:0.2px;">**`<kbd class="userinput">lmpath</kbd>`**

</td><td class="colsep-1 rowsep-0" 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" style="height:63.3097px;border-width:0.2px;">**`<kbd class="userinput">lmremove</kbd>`**

</td><td class="colsep-1 rowsep-0" 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" style="height:113.722px;border-width:0.2px;">**`<kbd class="userinput">lmreread</kbd>`**

</td><td class="colsep-1 rowsep-0" 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" style="height:147.33px;border-width:0.2px;">**`<kbd class="userinput">lmswitch</kbd>`**

</td><td class="colsep-1 rowsep-0" 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" style="height:113.722px;border-width:0.2px;">**`<kbd class="userinput">lmswitchr</kbd>`**

</td><td class="colsep-1 rowsep-0" 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" style="height:113.722px;border-width:0.2px;">**`<kbd class="userinput">lmnewlog</kbd>`**

</td><td class="colsep-1 rowsep-0" 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" style="height:152.926px;border-width:0.2px;">**`<kbd class="userinput">lmver</kbd>`**

</td><td class="colsep-1 rowsep-0" 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 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" style="border-width:0.2px;"><kbd class="userinput">-c license\_file\_path</kbd>

</td><td class="colsep-1 rowsep-0" 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" style="border-width:0.2px;"><kbd class="userinput">-help</kbd>

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

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

</td><td class="colsep-1 rowsep-0" 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" style="border-width:0.2px;"><kbd class="userinput">-verbose</kbd>

</td><td class="colsep-1 rowsep-0" 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>