Reference Guide
582 Fabric OS Command Reference
53-1002921-02
mapsRule
2
--config rule_name
Modifies a monitoring rule. You cannot modify a default rule.
Specify only the operands that you want to modify. Refer to mapsrule --create for
a listing of operands and their descriptions.
--clone existing_rule_name -rulename new_rule_name
Creates a replica of an existing rule. The following operands are required:
existing_rule_name
Specifies the name of the exiting rule to be copied.
-rulename new_rule_name
Specifies the name of the new rule. The name for the new rule must be unique; it
is case-sensitive and can contain up to 32 characters.
Refer to mapsrule --create for a listing of optional operands and their
descriptions. Specify only the operands that you want to modify. If no operands
are specified, an exact copy is created.
--show
Displays a rule, including the condition and actions.
rule_name
Specifies the name of the rule to display.
-all
Displays all rules configured on the switch.
--help
Displays the command usage.
EXAMPLES To create a rule for monitoring the number of CRC errors every hour on critical ports and generating a
RASlog if the number of CRC errors is greater than 10:
switch:admin> mapsrule --create check_crc -monitor crc \
-group CRITICAL_PORTS -timebase hour -op g -value 10
-action raslog
To modify a rule to change the action to generate a RASlog message and fence the port:
switch:admin> mapsrule --config check_crc -monitor crc \
-group CRITICAL_PORTS -timebase hour -op g -value 10
-action raslog,fence
To delete a rule:
switch:admin> mapsrule --delete New_Cntr_High
To clone a rule with a modified timebase:
switch:admin> mapsrule --clone Rule1 -rulename NewRule2
-timebase Hour
To display a single rule:
switch:admin> mapsrule --show defRuleITWAboveHighPF
Rule Data:
----------
RuleName: defRuleITWAboveHighPF
Actions: Raslog
Condition: ALL_PORTS(ITW/MIN>25)
Policies Associated: none










