# Diagnose and solve license problems

<nav id="bkmrk-subtopics-flexlm-lic" role="navigation">#### **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 border="1" 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" headers="_245343__entry__1" style="border-width: 0.2px;">-1

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

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

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

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

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

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

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

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

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

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

</td><td class="colsep-1 rowsep-0" headers="_245343__entry__2" 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" headers="_245343__entry__1" style="border-width: 0.2px;">-9

</td><td class="colsep-1 rowsep-0" headers="_245343__entry__2" 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" headers="_245343__entry__1" style="border-width: 0.2px;">-10

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

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

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

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

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

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

</td><td class="colsep-1 rowsep-0" headers="_245343__entry__2" 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" headers="_245343__entry__1" style="border-width: 0.2px;">-15

</td><td class="colsep-1 rowsep-0" headers="_245343__entry__2" 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" headers="_245343__entry__1" style="border-width: 0.2px;">-16

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

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

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

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

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

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

</td><td class="colsep-1 rowsep-0" headers="_245343__entry__2" 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-" role="navigation">### 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" role="navigation">### 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 border="1" 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" headers="_246978__entry__1" style="border-width: 0.2px;">FLEXlm License Server Crash

</td><td class="colsep-0 rowsep-0" headers="_246978__entry__2" 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" headers="_246978__entry__3" 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" headers="_246978__entry__1" style="border-width: 0.2px;">Test Floor Network down

</td><td class="colsep-0 rowsep-0" headers="_246978__entry__2" 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" headers="_246978__entry__3" 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" headers="_246978__entry__1" style="border-width: 0.2px;">FLEXlm License Server Crash and Test Floor Network down

</td><td class="colsep-0 rowsep-0" headers="_246978__entry__2" 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" headers="_246978__entry__3" 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" headers="_246978__entry__1" style="border-width: 0.2px;">FLEXlm License Server Crash and Advantest Server (ELF) down

</td><td class="colsep-0 rowsep-0" headers="_246978__entry__2" 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" headers="_246978__entry__3" 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" role="navigation"><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" role="navigation">### 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>