Reference Guide
534 Brocade Fabric OS Command Reference
53-1004112-02
mapsRule
--delete rule_name [-force]
Deletes a monitoring rule. The -force option provides the capability to override the default
behavior. This option allows deleting only user-defined rules. The -force option fails if a
default rule is input as an argument.
--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 40 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.
-concise
Displays legends instead of the complete action names in the output. The legends for the
action names are as follows: RS (RASLOG), PF (FENCE), EM (EMAIL), SN (SNMP), PT
(TOGGLE), PD (DECOM), FM (FMS), SQ (SDDQ), SC (SW_CRITICAL), SM
(SW_MARGINAL), and SFPM (SFP_MARGINAL). This operand is optional.
--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