Users Guide

Monitoring and Alerting Policy Suite Administrator’s Guide 33
53-1002933-02
Working with MAPS rules and actions
4
Policies Associated: none
The following example shows all rules. Notice that the actions are not abbreviated in the output.
admin> mapsrule --show all
----------------------------------------------------------------------------
RuleName Action Condition
----------------------------------------------------------------------------
Rule1 Raslog, Fence, SNMP Switch(SEC_IDB/Min>0)
Rule2 Raslog Switch(SEC_IDB/Hour>1)
NewRule1 Raslog, Fence, SNMP Switch(SEC_IDB/Min>0)
NewRule2 Raslog, Fence, SNMP Switch(SEC_IDB/Hour>1)
The following example shows the policy names associated with the rule. If the rule is not associated
with a policy, nothing is shown. The actions are abbreviated in the output.
admin> mapsrule --show rule1
RuleName: Rule1
Action: Raslog, Fence, SNMP
Condition: Switch(SEC_IDB/Min>0)
Policies Associated: daily_policy, crc_policy
Sending alerts using e-mail
In environments where it is critical that you are notified about errors quickly, you can use e-mail
alerts. With e-mail alerts, you can be notified of serious errors by e-mail or a pager, so you can react
quickly. There is a limit of five e-mail addresses per alert, and the maximum length for each
individual e-mail address is 128 characters.
To configure MAPS to send an alert using e-mail, complete the following steps.
1. Enter the mapsConfig --emailcfg command to set the e-mail parameters.
mapsconfig --emailcfg -address email_address
To send an alert to multiple email addresses, separate the addresses using a comma.
2. Enter the mapsConfig --show command to display the e-mail configuration settings.
Refer to “Configuring e-mail server information” on page 34 for information on specifying the
email server to be used.
mapsconfig --show
The following example specifies the e-mail address for e-mail alerts on the switch.
switch:admin> mapsconfig --emailcfg -address admin@mycompany.com
switch:admin> mapsconfig --show
Configured Notifications: RASLOG,EMAIL,FENCE
Mail Recipient: admin@mycompany.com
Relay Host: Relay Host IP is: 10.168.39.118
Relay Host Domain Name: brocade.com
Paused members :
PORT :
CIRCUIT :
SFP :
The following example specifies multiple e-mail addresses for e-mail alerts on the switch.
switch:admin> mapsconfig --emailcfg -address admin@mycompany.com,
admin2@mycompany.com, admin3@mycompany.com
switch:admin> mapsconfig --show
Configured Notifications: RASLOG,EMAIL,FENCE
Mail Recipient: admin@mycompany.com,