Displaying system alerts

You can use both the web console and CLI to monitor alerts for Cloud Pak for Data System.

Procedure

Use one of the following approaches:
  • Use the web console:
    • On the main page, view the number of issues and events in the top right corner. When you click on the icons the Notifications tab opens.
    • On the main page, click Monitor > System.
    In the Notifications tab, you can use the drop down list and filter the results by alert type and its state. You can also mark a specific alert and click the View details button to view more information.
  • Use the ap command:
    • 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
    
    Classification
    	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.