esacli activity
Use the esacli activity command to display activity log entries for the IBM® Electronic Service Agent™ instance.
Synopsis
esacli activity [[-m count]
| [{-b start-date-time} {-e end-date-time}]]
Description
The esacli activity command enables you to display activity log entries for the IBM Electronic Service Agent instance.
Options
- -m | --max count
- Specifies the maximum number of entries from the end of the activity log to be displayed. A positive integer value must be specified. The entire activity log is displayed if this option is not specified.
- -b | --begin date-timestamp
- Specifies a date and time for the earliest entry from the activity log to be returned. The date and time may be specified using local conventions for specifying a date and time. Use help for this command to see a sample format for specifying a date and time value. The date and time can also be specified using ISO 8601 an international system for specifying dates and times. An ISO 8601 date and time should be expressed with the following format: YYYY-MM-DD HH:MM. The time is expressed using a 24-hour clock.
- -e | --end date-timestamp
- Specifies a date and time for the latest entry from the activity log to be returned. The date and time may be specified using local conventions for specifying a date and time. Use help for this command to see a sample format for specifying a date and time value. The date and time can also be specified using ISO 8601 an international system for specifying dates and times. An ISO 8601 date and time should be expressed with the following format: YYYY-MM-DD HH:MM. The time is expressed using a 24-hour clock.
Exit status
The following table contains the codes that are returned by this command.0: The operation completed successfully.1: The IBM Electronic Service Agent instance is not running.10: Unsupported option was specified. Option: {option}.14: A required option was not provided. Option: {option}.18: An option was set more than once. Option: {option}.19: An option value was not provided when required. Option: {option}.29: IBM Electronic Service Agent instance has not been activated.31: An integer value was not provided when required.32: An integer value was not in the valid range.41: Invalid value specified: {value}. Value should be specified like {date format} for option {option}.42: Invalid value {value} specified for the {option} option.45: Mutually exclusive arguments used together.
Examples
- List the last six entries in the activity log
This example illustrates running the esacli activity command to list the last six entries in the activity log.
esacli activity -m 6 Activity log entries: Jul 23, 2010 5:43:39 PM: Operational test successful. Jul 22, 2010 8:59:28 PM: Software service information sent. Jul 22, 2010 8:58:34 PM: Software service information collection initiated. Jul 22, 2010 8:57:39 PM: Software service information sent. Jul 22, 2010 8:55:40 PM: Hardware service information collection initiated. Jul 22, 2010 8:56:34 PM: Software service information sent - List the activity entries between two dates using a locale format.
This example illustrates running esacli activity to list the activity between two dates and times using a locale specific format.
esacli activity -b “Jul 22, 2012” -e “Jul 24, 2012” Activity log entries: Jul 23, 2012 5:43:39 PM: Operational test successful. Jul 22, 2012 8:59:28 PM: Software service information sent. Jul 22, 2012 8:58:34 PM: Software service information collection initiated. Jul 22, 2012 8:57:39 PM: Software service information sent. Jul 22, 2012 8:55:40 PM: Hardware service information collection initiated. Jul 22, 2012 8:56:34 PM: Software service information sent. - List the activity entries between two dates
This example illustrates running esacli activity to list the activity between two dates using an ISO 8601 format.
esacli activity -b 2012-07-21 -e 2012-07-24 Activity log entries: Jul 23, 2012 5:43:39 PM: Operational test successful. Jul 22, 2012 8:59:28 PM: Software service information sent. Jul 22, 2012 8:58:34 PM: Software service information collection initiated. Jul 22, 2012 8:57:39 PM: Software service information sent. Jul 22, 2012 8:55:40 PM: Hardware service information collection initiated. Jul 22, 2012 8:56:34 PM: Software service information sent.