esacli token
Use the esacli token command to display the private token for the IBM® Electronic Service Agent.
Synopsis
esacli token {[-d]} {[-f json]}
Description
The esacli token command allows to display the token for the IBM Electronic Service Agent.
Options
- -d | --display
- Displays the private token.
- -f | --format
- Prints the private token in a specific format. Note: Currently only json format is supported.
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.5
: An unsupported command was specified.10
: An unsupported option was specified. Option: {option}.18
: An option was set more than once. Option: {option}.19
: An option value was not provided when required. Option: {option}.29
: The IBM Electronic Service Agent instance has not been activated.30
: The IBM Electronic Service Agent instance is currently suspended.61
: Not a valid option value. Option: {option}.
Examples
This example illustrates running the esacli token
command.
esacli token -d
activated: true
esa-url: https://hostname:5024/rest/v1
token: 606133b2d4d6b32e121b34dd78b30c3c
esacli token -d -f json
{
"activated":true,
"esa-url":"https://hostname:5024/rest/v1",
"token":"606133b2d4d6b32e121b34dd78b30c3c"
}