Displaying system alerts

You can use the ap commands to monitor alerts for Cloud Pak for Data System.


Use one of the following approaches:
  • ap issues displays all open issues.
  • ap events or ap issues -e displays all events.
  • ap issues -c displays all closed issues.
  • ap issues <ID> displays details for the issue or event with a given ID
Note that you can set the time frame for which to display the alerts by using the following parameters with ap issues and ap events:
--from <time>
--to <time>
where the <time> value can be provided in three forms:
  • --from YYYY-MM-DD-hh:mm
    --to YYYY-MM-DD-hh:mm
    where YYYY-MM-DD-hh:mm is date and time.
  • --from YYYY-MM-DD
    --to YYYY-MM-DD
    where YYYY-MM-DD is a date. In this case, the start time is assumed to be 00:00:00 and the end time is 23:59:59.
  • --from -N
    --to -N
    where N is a number of days before the current date, so, for example, --from -32 sets the start date to 32 days before the current date. The starts time is assumed to be 00:00:00 and the end time is 23:59:59.
Example output:
ap issues 1001

General Information
	ID                       : 1001
	Date                     : 2017-08-02 06:13:14.465388
	Close Date               : None
	Target                   : appliance://
	Target Type              : appliance-application
	Severity                 : INFORMATION
	Title                    : Application start requested
	Stateful                 : 0

	Group                    : SW
	Type                     : APPLIANCE_EVENT
	Reason Code              : 807

Processing Status
	State                    : DELIVERED
	Log Collection Status    : NOT_APPLICABLE
	SMTP Status              : NOT_APPLICABLE
	Call Home Status         : NOT_APPLICABLE
	SRID                     : None

Collected Logs
	Log File Path            : None
	Log File Node            : None

For more information, see ap command.