# System .lic license files

#### Subtopics

1. [Find out HostID and HostName](https://lhc.advantest.com/link/88#bkmrk-find-out-hostid-and--1)
2. [Editing .lic license files](https://lhc.advantest.com/link/88#bkmrk-editing-.lic-license)

System `<span class="filepath">*.lic</span>` licenses enable you to scale test system capabilities, such as speed and memory.

All `<span class="filepath">*.lic</span>` license files reside by default in the `<span class="filepath">/opt/flexlm/license</span>` directory on both the license client and the license server.

The system `<span class="filepath">.lic</span> `license file on the client provides the hostname or IP address of the license server for SmarTest and the dedicated vendor daemon value (For Advantest SmarTest, the vendor daemon value is `<kbd class="userinput">socbu</kbd>`). The vendor daemon value specifies that this license file is associated with the <kbd class="userinput">socbu</kbd> vendor daemon.

To receive a system` <span class="filepath">*.lic</span>` license file, you must activate the corresponding license. For details see [Activating licenses](https://lhc.advantest.com/books/activating-licenses/page/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.").

<p class="callout info"><span class="title">Note: Service and Support (S&amp;S) licenses do not need to be activated.</span></p>

<div id="bkmrk-checking-out-license"><section class="section">### **Checking out licenses from a license server**

The procedure for checking out licenses is:

- At startup, SmarTest reads the test program file and resolves the requested capability into required licenses.
- Next, the` <kbd class="userinput">*.lic</kbd>` license files in the `<span class="filepath">/opt/flexlm/license</span>` directory on the same workstation are read. The `<span class="filepath">*.lic</span> `license files specify the hostname of the license server, which can be the same workstation in the case of a local license server, or another workstation in the case of a central license server. See [Editing .lic license files](https://lhc.advantest.com/link/88#bkmrk-editing-.lic-license "This topic describes how to edit FlexNet Publisher license server related license files (.lic files).").
- Finally, SmarTest contacts the license server to check if the required licenses are available: 
    - Available: the licenses are checked out and the features enabled.
    - Not available: SmarTest runs the script `<span class="filepath">license_checkout_failure</span>.`

<p class="callout info"><span class="title">Note:</span> Base capabilities are always available, even without licenses.</p>

</section><section class="section">### **Returning licenses to a license server**

Licenses are automatically returned the license server when SmarTest is shut down.

</section></div><nav id="bkmrk-related-information-" role="navigation">### **Related information**

<div class="ri"><div>[Activating licenses](https://lhc.advantest.com/books/activating-licenses/page/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.")</div><div>[Editing .lic license files](https://lhc.advantest.com/link/88#bkmrk-editing-.lic-license "This topic describes how to edit FlexNet Publisher license server related license files (.lic files).")</div></div></nav>---

# 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 id="bkmrk-about-this-task-note"><section class="section">### About this task

<p class="callout info"><span class="title">Note:</span> This topic is applicable to SmarTest 7 and SmarTest 8.</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">su root</kbd>` and enter the root user password.<s>  
      
    </s>
2. Open a terminal window.<s>  
      
    </s>
3. Type: `<kbd class="userinput">/opt/flexlm/bin/lmutil lmhostid -n</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">/usr/bin/hostid</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">`/sbin/ifconfig eth0 | grep HWaddr | sed 's/://g' | awk ' {print $NF} '`  
          
        </kbd>
    - <span style="text-decoration: underline;">**<span class="uicontrol">Linux RHEL 7</span>**</span>`<kbd class="userinput">/sbin/ifconfig eno1 | grep "ether" | sed 's/://g' | awk ' {print $2} '</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">/bin/hostname</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">/usr/bin/hostname</kbd>`

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

[Activating licenses](https://lhc.advantest.com/books/activating-licenses/page/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 id="bkmrk-related-information--1" role="navigation">### 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>---

# Editing .lic license files

This topic describes how to edit FlexNet Publisher license server related license files (.lic files).

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

</section></div><p class="callout warning"><span class="title">CAUTION:</span> The editing instructions below only apply to license files referring to a license server. Service and support license files have a different structure and must not be edited.</p>

<div id="bkmrk-the%C2%A0.lic%C2%A0license-fil"><section class="section">The `<span class="filepath">.lic</span>` license files must reside in the `flexlm` license directory `<span class="filepath">/opt/flexlm/license/</span> `for both license servers and clients.

The server `<span class="filepath">.lic</span>` license file must provide the server hostname and the correct vendor daemon ("`<kbd class="userinput">socbu</kbd>`").

The `<span class="filepath">.lic</span> `file on the license server provides the actual license, while the corresponding client `<kbd class="userinput">.lic</kbd>` file can contain an additional USE\_SERVER statement used to specify the associated license server. When SmarTest reads the USE\_SERVER statement from the client `<kbd class="userinput">.lic</kbd>` file, it ignores everything else in the license file except the preceding SERVER lines and transfers license control to the specified license server. The USE\_SERVER statement takes no arguments and should be used in client license files only.

<div class="p">Advantest strongly recommends adding the USE_SERVER statement to client `<kbd class="userinput">.lic</kbd>` files. When using a central license server, the USE_SERVER statement improves performance compared with setting the LM_LICENSE_FILE environment variable.</div></section></div><p class="callout info"><span class="title">Note:</span> For information about license server installation, see the section **[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.").**</p>

<div id="bkmrk-procedures-server-li"><section class="sectiontitlefake">### Procedures

</section><section class="section">#### **Server license files**

To edit `<kbd class="userinput">.lic</kbd>` license files on a server system:

1. Copy the `<kbd class="userinput">.lic</kbd>` license file you received to the `<span class="filepath">/opt/flexlm/license/</span>` directory on the license server system.
2. Open the `<kbd class="userinput">.lic</kbd>` license file in an editor.
3. The SERVER statements specify the hostname and host IDs of the license server systems and the TCP/IP port number of the license server manager (`lmgrd`).  
      
    In the **<kbd class="userinput">SERVER</kbd>** statement, replace the server hostname placeholder string **<kbd class="userinput">this\_host</kbd>** with the hostname of the license server.
    
    The graphic below shows the server string to be replaced.
    
    <div class="p"><figure class="fignone">[![33.png](https://lhc.advantest.com/uploads/images/gallery/2025-10/scaled-1680-/9Qz33-png.png)](https://lhc.advantest.com/uploads/images/gallery/2025-10/scaled-1680-/9Qz33-png.png)  
      
    </figure></div>
4. Also in the **<kbd class="userinput">SERVER</kbd>** statement, replace the server host ID placeholder string <kbd class="userinput">123456789012</kbd> with the actual host ID of your license server (and optionally the port number of your license server).  
      
    <p class="callout info"><span class="title">Note:</span> For more information about querying the license server hostnames and host IDs, see **[Find out HostID and HostName](https://lhc.advantest.com/link/84#bkmrk-find-out-hostid-and- "This topic describes how to find out the HostID and the HostName of the license servers for license activation.").**   
    <kbd class="userinput">&lt;host\_name&gt;</kbd> = The license server hostname or IP address returned by the <kbd class="userinput">hostname</kbd> command.   
    <kbd class="userinput">&lt;hostid&gt;</kbd> = The string returned by the <kbd class="userinput">lmhostid</kbd> command.  
    <kbd class="userinput">\[port\]</kbd> = TCP/IP port number to use.</p>
    
    <div class="p">If a port must be specified (check with your network administrator), the syntax is as follows: 
    - `<kbd class="userinput">SERVER <host_name> <hostid> [port]</kbd>`, for example: `<kbd class="userinput">SERVER MyLicSvr 8502053d1905 27000</kbd>`
    - `<kbd class="userinput">VENDOR socbu [port]</kbd>`, for example: `<kbd class="userinput">VENDOR socbu PORT=27020</kbd>`
    
    </div><p class="callout info"><span class="title">Note:</span> If no port is configured, the client automatically checks all ports from 27000 to 27009. Any other ports must be specified.</p>
    
      
    Normally a license file has one SERVER statement. Three SERVER statements signifies that you are using a three-license-server redundancy configuration. See **[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.")**. In a three-license-server configuration you must edit all three SERVER statement entries.
5. The VENDOR statement specifies the daemon name and should be as follows: `<kbd class="userinput">VENDOR socbu</kbd>`.

</section><section class="section">#### **Client license files**

To edit `<span class="filepath">.lic</span>` license files on a client system:  
  
1. Copy the`<span class="filepath">.lic</span>` license file you received to the` <span class="filepath">/opt/flexlm/license/</span> `directory on the client machine.
2. Open the <span class="filepath">`.lic`</span> license file in an editor.
3. The SERVER statements specify the hostname and host IDs of the license server systems and the TCP/IP port number of the license server manager (lmgrd).  
      
    In the <kbd class="userinput">SERVER</kbd> statement, replace the server hostname placeholder string <kbd class="userinput">this\_host</kbd> with the hostname of the license server.
    
    The graphic below shows the server string to be replaced.
    
    <div class="p"><figure class="fignone">[![44.png](https://lhc.advantest.com/uploads/images/gallery/2025-10/scaled-1680-/aAP44-png.png)](https://lhc.advantest.com/uploads/images/gallery/2025-10/scaled-1680-/aAP44-png.png)</figure></div>
4. Also in the **<kbd class="userinput">SERVER</kbd>** statement, replace the server host ID placeholder string <kbd class="userinput">123456789012</kbd> with the actual host ID of your license server (and optionally the port number of your license server).  
      
    <p class="callout info"><span class="title">Note:</span> For more information about querying the license server hostnames and host IDs, see **[Find out HostID and HostName](https://lhc.advantest.com/link/84#bkmrk-find-out-hostid-and- "This topic describes how to find out the HostID and the HostName of the license servers for license activation.").**   
    <kbd class="userinput">&lt;host\_name&gt;</kbd> = The license server hostname or IP address returned by the <kbd class="userinput">hostname</kbd> command.   
    <kbd class="userinput">&lt;hostid&gt;</kbd> = The string returned by the <kbd class="userinput">lmhostid</kbd> command.  
    <kbd class="userinput">\[port\]</kbd> = TCP/IP port number to use.</p>
    
      
    Normally a license file has one **SERVER** statement. Three **SERVER** statements signifies that you are using a three-license-server redundancy configuration. See [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."). In a three-license-server configuration you must edit all three SERVER statement entries.
5. The **VENDOR** statement specifies the daemon name and should be as follows: `<kbd class="userinput">VENDOR socbu</kbd>.`
6. The **<kbd class="userinput">USE\_SERVER</kbd>** line in the client license file ensures that the requested license features are obtained from the specified license servers. The license file on the client no longer needs to be in sync with the license file on the server and may even not contain any license information. <div class="p">Enter the **<kbd class="userinput">USE\_SERVER</kbd>** statement. It takes no arguments.  
      
    </div><p class="callout info"><span class="title">Note:</span> For standalone systems with a local license server, the **<kbd class="userinput">USE\_SERVER</kbd>** statement is not necessary as both client and server use the `<span class="filepath">/opt/flexlm/license/*</span> directory`. Therefore, the server license file automatically specifies the server for the client (`<kbd class="userinput"><host_name></kbd> = <kbd class="userinput">localhost</kbd>`).</p>
7. **Optional:** In the client `<span class="filepath">.lic</span>` file only, any license strings below the <kbd class="userinput">USE\_SERVER</kbd> keyword are ignored and can be removed. Only the licenses on the servers specified in the **<kbd class="userinput">SERVER</kbd>** lines are read.

</section></div><nav id="bkmrk-related-information--2" role="navigation">### Related information

<div class="ri"><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>