alertentries command
Use this command to manage alert recipients.
- alertentries with no options display all alert entry settings.
- alertentries -number -test generates a test alert to the given recipient index number.
- alertentries -number (where number is 0 - 12) display alert entry settings for the specified recipient index number or allow you to modify the alert settings for that recipient.
The following table shows the arguments for the options.
Option | Description | Values |
---|---|---|
-number | Alert recipient index number to display, add, modify, or delete | 1 through 12 |
-status | Alert recipient status | on, off |
-type | Alert type | email, syslog |
-log | Include event log in alert email | on, off |
-n | Alert recipient name | String |
-e | Alert recipient email address | Valid email address |
-ip | Syslog IP address or hostname | Valid IP address or hostname |
-pn | Syslog port number | Valid port number |
-del | Delete specified recipient index number | |
-test | Generate a test alert to specified recipient index number | |
-crt | Sets critical events that send alerts | all, none, custom:te|vo|po|di|fa|cp|me|in|re|ot Custom critical alert settings are specified using a pipe separated list of values of the form alertentries -crt custom:te|vo, where custom values are:
|
-crten | Send critical event alerts | enabled, disabled |
-wrn | Sets warning events that send alerts | all, none, custom:rp|te|vo|po|fa|cp|me|ot Custom warning alert settings are specified using a pipe separated list of values of the form alertentries -wrn custom:rp|te, where custom values are:
|
-wrnen | Send warning event alerts | enabled, disabled |
-sys | Sets routine events that send alerts | all, none, custom:lo|tio|ot|po|bf|til|pf|el|ne Custom routine alert settings are specified using a pipe separated list of values of the form alertentries -sys custom:lo|tio, where custom values are:
|
-sysen | Send routine event alerts | enabled, disabled |
Syntax:
alertentries [<em className="ph i">options</em>]
options:
-number <em className="ph i">recipient_number</em>
-status <em className="ph i">status</em>
-type <em className="ph i">alert_type</em>
-log <em className="ph i">include_log_state</em>
-n <em className="ph i">recipient_name</em>
-e <em className="ph i">email_address</em>
-ip <em className="ph i">ip_addr_or_hostname</em>
-pn <em className="ph i">port_number</em>
-del
-test
-crt <em className="ph i">event_type</em>
-crten <em className="ph i">state</em>
-wrn <em className="ph i">event_type</em>
-wrnen <em className="ph i">state</em>
-sys <em className="ph i">event_type</em>
-sysen <em className="ph i">state</em>
Example:
system> alertentries
1. test
2. <not used>
3. <not used>
4. <not used>
5. <not used>
6. <not used>
7. <not used>
8. <not used>
9. <not used>
10. <not used>
11. <not used>
12. <not used>
system> alertentries -1
-status off
-log off
-n test
-e test@mytest.com
-crt all
-wrn all
-sys none
system>
Give feedback