Users Guide

26 Monitoring and Alerting Policy Suite Administrator’s Guide
53-1002933-02
MAPS rules overview
4
The following example clones the default policy, deletes two rules, and modifies a rule to send an
e-mail message in addition to a RASLog entry.
switch:admin> mapspolicy --clone dflt_moderate_policy -name rule_policy
switch:admin> mapspolicy --delrule rule_policy -rulename defCHASSISFLASH_USAGE_90
switch:admin> mapspolicy --delrule rule_policy
-rulename defCHASSISMEMORY_USAGE_75
switch:admin> mapsrule --clone myCHASSISFLASH_USAGE_90 -monitor flash_usage
-group chassis -timebase none -op ge -value 90 -action raslog,email
-policy rule_policy
switch:admin> mapspolicy --enable rule_policy
MAPS rules overview
A MAPS rule associates a condition with actions that need to be triggered when the specified
condition is evaluated to be true.
Each rule specifies the following items:
A group of objects to be evaluated.
Refer to “MAPS groups overview” on page 19 for additional information.
The element to be monitored.
Refer to “MAPS conditions” on page 26 for additional information.
The condition being monitored.
Each rule specifies a single condition. A condition includes a time base and a threshold.
Refer to “MAPS conditions” on page 26 for additional information.
The actions to take if the condition is evaluated to be true.
Refer to “MAPS actions” on page 27 for additional information.
The combination of actions, conditions, and elements allow you to create a rule for almost any
scenario required for your environment.
MAPS conditions
A MAPS condition includes a time base and a threshold. If the condition is evaluated as true, the
rule is triggered. The condition depends on the element that is to be monitored.
Consider the following rule:
For all F_Ports, if the change in the CRC counter in the last minute is greater than 10, then
fence the port and issue a RASLog message.
In this rule, the condition is whether the change in the CRC counter in the last minute is greater
than 10. For more details on RASLog messages in MAPS, refer to the Fabric OS Message
Reference.
Thresholds
Thresholds are the values at which potential problems may occur. For example, in configuring a
port threshold, you can select a specific value at which an action is triggered because of too many
threshold violations.
Consider the following condition: