Deployment Guide

To create a rule, enter mapsRule --create rule_name -group group_name -monitor
monitored_threshold -timebase timebase -op op_value -value value -action action -policy
policy_name.
To clone an existing rule, enter mapsRule --clone rule_name -name clone_rule_name.
To modify existing rules, enter mapsRule --config rule_name parameters.
The following example creates a policy by cloning another policy, and then adds
a rule to the new policy.
switch:admin> mapspolicy --clone defpol -name backup_pol
switch:admin> mapsrule --create chassiscpu -monitor CPU -group chassis -op ge -value
70 -action raslog -policy backup_pol
Enabling a policy
Only one policy can be enabled at a time, and it must be enabled before it takes effect. If the active
policy is changed, or if the rules in the active policy are changed, the active policy must be re-enabled
for the changes to take effect.
To enable a policy, complete the following steps.
1. Connect to the switch and log in using an account with admin permissions.
2. Enter mapsPolicy --enable followed by the name of the policy you want to enable.
The previously enabled policy is automatically disabled and the specified policy is then enabled.
There is no confirmation of the change.
The following example enables the “dflt_aggressive_policy” policy.
switch:admin> mapsPolicy --enable dflt_aggressive_policy
Modifying a user-defined policy
It is possible to modify existing policies. For example, you may need to modify a policy if elements in
the fabric change or if threshold configurations needed to be modified to catch certain error conditions.
To modify a policy and its associated rules, complete the following steps.
1. Modify the rules in the policy based on your requirements.
You cannot modify the default rules, but you can add rules to and delete rules from the policy, and
you can create rules and add them to the policy.
Use mapsPolicy to add rules to and delete rules from the policy. Use mapsRule to modify rules or
to create rules and add them to the policy.
2. Optional: If the policy is the active policy, you must enable the policy for the changes to take effect.
Adding a rule to the active policy does not take effect until you re-enable the policy.
switch:admin> mapspolicy --enable my_policy
NOTE
Changing the rules of the active policy does not take effect until you re-enable the policy.
Enabling a policy
48 Monitoring and Alerting Policy Suite Administrator's Guide
53-1003147-01