---
title: "Obtaining the Host Name and Host ID"
slug: "guide/licensing/obtaining-the-host-name-and-host-id"
sidebar:
  order: 7
---

<a id="ref-287c051f1f87"></a>
<a id="ref-2eb7c053cb0b"></a>

The host name is usually known and equal to the output of the `hostname(1)` command. However, the host ID, as used by the license server of the Online Configurator, is different from the output of the `hostid(1)` command[^1]. Assuming the license server is not already running the following can be done to obtain the host ID:

```text
bash$ cd EAILS
bash$ java -jar LicenseServer.jar -log cons
NOTICE: Starting LicenseServer version 1.0.3 
CONFIG: platform=amd64-linux 
CONFIG: hostname=vaio, hostid=HHM5-N6MA-9ES2-DSEX 
```

The license server can then be terminated using Control-C. Of course, the host name and host ID will be different from the values shown above.

If the license server is already running then the values can be obtained from the log file of the license server. The log files of the license server are usually in `EAILS/var/log`.

[^1]: On Linux, the host ID is computed based on the hardware address of `eth0`. If `eth0` does not exist then it is computed based on the hardware address of the first network interface found other than the loopback interface or a point-to-point interface.
