# Installing emergency licenses for license servers unavailable due to network problems

If your network is not reachable, you must install a local license server and emergency license on each of your test system controllers (workstations).

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

After you have received the emergency licenses, complete the following procedure on each test system controller (tester workstation).

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

Provide the host ID and hostname of every controller and obtain one (1) emergency license for each controller.

If, for example, you have a network problem and 5 workstations are affected, you must get 5 emergency licenses to establish 5 local license servers (one on each workstation).

For details, see [Requesting emergency licenses](https://lhc.advantest.com/books/emergency-licenses/page/requesting-emergency-licenses "Requesting emergency license requires you to complete a short web-based form, supplying some basic information about the affected license servers, host system names, and some contact information.").

</section><section id="bkmrk-procedure-stop-any-o">### **Procedure**

1. Stop any other running local license servers.
2. If not already available, install the FLEXlm executables (`<var class="varname"><span class="keyword">lmgrd, lmutil, ...</span></var>`) in the directory:`<var class="varname"><span class="keyword"><span class="filepath">/opt/flexlm/bin.</span></span></var>`If you do not have the executables, download them from:
    
    [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)<span class="uicontrol">&gt; **FLEXlm License Server Software Downloads and Documents**</span>
3. Create the directory: `<var class="varname"><span class="keyword"><span class="filepath">/opt/flexlm/ELF</span></span></var>`
4. Copy the emergency licenses to the`<var class="varname"><span class="keyword"><span class="filepath">/opt/flexlm/ELF</span></span></var>`directory.
5. Start <span class="keyword">lmgrd</span> pointing to the `<var class="varname"><span class="keyword"><span class="filepath">/opt/flexlm/ELF</span></span></var>` directory: `/opt/flexlm/bin/lmgrd -c /opt/flexlm/ELF -l /opt/flexlm/log/<var class="varname">log-file-name</var>`
6. To ensure that SmarTest accesses the emergency license, set the SOCBU\_LICENSE\_FILE environment variable to the `<var class="varname"><span class="keyword"><span class="filepath">/opt/flexlm/ELF</span></span></var>` directory.

</section><section class="section" id="bkmrk-what-to-do-next-afte">### What to do next

After the network problems are fixed:

- Emergency licenses and any backups must be deleted.
- SOCBU\_LICENSE\_FILE environment variable must be reset on every test system controller (workstation).
- License server process `<var class="varname"><span class="keyword">lmgrd</span></var>`, pointing to the `<var class="varname"><span class="keyword"><span class="filepath">/opt/flexlm/ELF</span></span></var>`directory, must be stopped.

</section>