Brocade Fabric OS Command Reference (Supporting Fabric OS v7.3.0) User Manual
Page 626
596
Fabric OS Command Reference
53-1003131-01
mapsRule
2
-timebase time_base
Specifies the time interval between two samples to be compared.
-op comparison_operator
Specifies the relational operation to be used in evaluating the condition.
-value value
Specifies the threshold value.
-action action
Specifies a comma-separated list of actions to be taken if the specified condition is
evaluated to be true.
-policy policy
Specifies the user-defined policy to which the rule is to be added. You cannot add
a rule to a predefined policy.
--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.
--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