This command manages the recipients of alerts generated by the primary CMM.
If command syntax is not correctly entered, or if a command fails to run, an error message is returned. See Common errors for a list of error messages that apply to all commands or alertentries command errors for a list of error messages that are specific to the alertentries command.
Function | What it does | Command | Target (see paths in Command targets) |
---|---|---|---|
Display alert properties for all recipients | Displays alert properties for all CMM alert
recipients. Returned values for each alert recipient are:
|
alertentries | Primary CMM:
|
Display alert properties for alert recipients | Displays alert properties for the specified CMM alert
recipient profile. Returned values are:
|
alertentries -recip_number where recip_number is a number from 1 to 12 that corresponds to the recipient number assigned in the "Display alert properties for all recipients" list. |
Primary CMM:
|
Delete alert recipient | Delete the specified alert recipient. | alertentries -recip_number-del where recip_number is a number from 1 to 12 that corresponds to the recipient number assigned in the "Display alert properties for all recipients" list. It is possible to delete an empty alert recipient. This command can
only be run by users who have one or more of the following command
authorities:
|
Primary CMM:
|
Create alert recipient | Create the specified alert recipient. All fields must be specified when creating an alert recipient. |
alertentries -recip_number-n recip_name -status alert_status-f filter_type-t notification_method -e email_addr where:
|
Primary CMM:
|
Create alert recipient (continued) |
This command can only be run by users
who have one or more of the following command authorities:
|
||
Set alert recipient name | Sets a name for the specified alert recipient. | alertentries -recip_number-n recip_name where:
This command can only be run by users who have one
or more of the following command authorities:
|
Primary CMM:
|
Set alert recipient status | Sets status for the specified alert recipient. The status determines if a recipient will receive alarm notifications. | alertentries -recip_number-status alert_status where:
This command can only be run by users who have one
or more of the following command authorities:
|
Primary CMM:
|
Set alert types received | Filters the types of alert that are received by the specified alert recipient. | alertentries -recip_number-f filter_type where:
This command can only be run by users who have one
or more of the following command authorities:
|
Primary CMM:
|
Set alert notification method | Sets the alert notification method for the specified alert recipient. | alertentries -recip_number-t notification_method where:
This command can only be run by users who have one
or more of the following command authorities:
|
Primary CMM:
|
Set alert recipient email address | Sets the email address for the specified alert
recipient. This email address is used to send alerts to the recipient
via email. The email address can be set only if the alert notification method (-t option) is set to email. The -t and -e options can be combined within the same command. |
alertentries -recip_number -e email_addr where:
This command can only be run by users who have one
or more of the following command authorities:
|
Primary CMM:
|
Generate test alert | Generates a test alert to verify correct alert
response. Note:
|
alertentries
-test This command can only be run by users
who have one or more of the following command authorities:
In some cases, your system
configuration might also allow the command to be run by users who
have one or more of the following command authorities:
See Commands and user authority for additional information. |
Primary CMM:
|
alertentries -1
alertentries -2 -n test2 -status on -f critical -t email -e test2@us.ibm.com
alertentries -4 -n test4 -status on -f none -t snmp
The following example shows the information that is returned from these commands:
system:mm[1]> alertentries -1 -status on -n test1 -f critical -t email -e test1@us.ibm.com system:mm[1]> alertentries -2 -n test2 -status on -f critical -t email -e test2@us.ibm.com OK system:mm[1]> alertentries -4 -n test4 -status on -f none -t snmp OK system:mm[1]>