esacli generateToken

Use the esacli generateToken command to generate token for the IBM® Electronic Service Agent™.

Synopsis

esacli generateToken {[-f ]}

Description

The esacli generateToken command enables you to generate an access token. This token is used to authenticate to ESA and update the settings of ESA, once ESA is activated.

Options

-f | --force
Generates token, even if token already exists.

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: Unsupported option was specified. Option: {option}.
  • 18: An option was set more than once. Option: {option}.
  • 62: Token already exists.

Examples

This example illustrates running the esacli generateToken command.
esacli generateToken -f
Token generated successfully.
esacli generateToken
0062: Token already exists.