Working with alert rules
The appliance comes with a set of predefined alert rules which determine how the alert is handled. If necessary, you can change the rules using the ap config command. If you want to send email notifications for a given alert, you must configure SMTP.
Before you begin
Ensure you read Alert rules to learn about different attributes of alert rules that you can set.
You can list all the rules that are defined in your system using the following command:ap config --list alerts_rulesSample output:
Action rules
+----------------------+----------------+----------+
| Scope | Value | Built-in |
+----------------------+----------------+----------+
| default | 1 (send email) | YES |
| ACTION_FAILED | 0 (do nothing) | YES |
| APPLIANCE_EVENT | 0 (do nothing) | YES |
| HW_SERVICE_REQUESTED | 1 (send email) | NO |
| STARTUP_FAILED | 0 (do nothing) | YES |
+----------------------+----------------+----------+
Email rules
+---------+------+-------------------+
| Scope | Mode | Value |
+---------+------+-------------------+
| default | set | admin@pl.ibm.com |
+---------+------+-------------------+
You
can also check the existing SMTP configuration using the command ap config --list
smtp