esacli logSettings
Use the esacli logSettings command to set and display information for the current logging level.
Synopsis
esacli logSettings [-d [script]]
esacli logSettings [-d [script]] {–l level}
Description
The esacli logSettings command sets and displays information for the current logging level. This command is used to set and display the logging level. This command will indicate that it completed successfully with a message: This command completed successfully. When the display option is specified, the new settings will be displayed. This command will also display the current settings when run with only the display option or no option is specified.
Options
- -d | --display
- Specifies the setting values are to be displayed.The optional script option generates this command containing all the current values, which can be used for updates. For example, to create an executable script file that you can use to specify logSettings values, follow these steps:
- Display the current logSettings values by running the following
command:
esacli logSettings -d
Tip: You can display the help for the logSettings command by running the following command:esacli help logSettings
. - Save the output of the logSettings command to a file by running
the following command:
esacli logSettings -d script > log.script
- Edit the log.script file to specify the desired values.
- Change the log.script file to an executable script file.
- Run the log.script file to set the logSettings values on this or other systems.
- Display the current logSettings values by running the following
command:
- -l | --level Severe | Error | Warning | Information | Debug | Trace
- Specifies the Electronic Service Agent logging level.
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}.18
: An option was set more than once. Option: {option}.19
: An option value was not provided when required. Option: {option}.42
: Invalid value {value} specified for the {option} option.
Examples
- Lists logging level
esacli logSettings -d Logging Level: Error
- Sets logging level to Error
esacli logSettings –l Error