esacli lsentityIds
Use the esacli lsentityIds to display the entity IDs associated with the hosts.
Synopsis
esacli lsentityIds
esacli lsentityIds [-h hostname]
Description
The esacli lsentityIds command displays the entity IDs of all the hosts or a specific host.
Options
- -h | --host
- Displays the entity ID associated with the specified host.
To collect the entity ID of a particular host, specify the host name. The host can be a remote host or the primary system on which ESA is installed. For the primary system, the value can be either "localhost" or the output of the command host name. For remote host, the value can be either host name or system name / IP address that is used to discover the system.
Note: You might get the following error messages
for the respective conditions:
| Condition | Error message |
|---|---|
| Provided an invalid host name | Specified host name is invalid |
| If there is no entity ID associated with given host name | No Entity IDs for the specified host |
| If you provide the option -h and did not specify the host name (option value). | An option value was not provided |
Exit status
The following table contains the codes that are returned by this command.0: The operation completed successfully.1: IBM Electronic Service Agent instance is not running.10: Unsupported option was specified. Option: {option}13: An invalid host name was specified for a subcommand host option.18: An option was set more than once. Option: {option}19: An option value was not provided when required. Option: {option}
Examples
- Lists entity Ids of all hosts
esacli lsentityIds EntityId | HostName | MachineType | MachineModel | SerialNumber | IPAddresses | systemID | LPARID EPS/BOUB24924961 | sa6p05 | 9117|MMA | 10F94EB | 9.5.103.126,2002:905:150e:301:214:5eff:fe5f:1a24, fe80::214:5eff:fe5f:1a24 | PrimarySystem | 17 EPS/BOUB24925162 | sa6p12 | 8286 | 41A | TU00010 | fe80::42f2:e9ff:fe5a:8dec,9.5.31.12, fe80::42f2:e9ff:fe5a:8dec,192.168.122.1 | PrimarySystem | 12 - List entity Id associated with a specific
host
esacli lsentityIds -h sa6p05 EntityId | HostName | MachineType | MachineModel | SerialNumber | IPAddresses | systemID | LPARID EPS/BOUB24924961 | sa6p05 | 9117 | MMA | 10F94EB | 9.5.103.126,2002:905:150e:301:214:5eff:fe5f:1a24, fe80::214:5eff:fe5f:1a24 | PrimarySystem | 10