Brocade Fabric OS Command Reference (Supporting Fabric OS v7.3.0) User Manual
Page 618
588
Fabric OS Command Reference
53-1003131-01
mapsPolicy
2
policy_name
Specifies the name of the policy to be enabled. The name can be a predefined or
a user-defined policy. If another policy is already enabled, that policy is disabled
and the specified policy is enabled instead.
--clone
Creates a replica of an existing predefined or user-defined policy. The new policy
has all of the rules of the existing policy. You can further modify the newly created
policy. The following operands are required:
existing_policy_name
Specifies the name of an existing policy. The policy can be a predefined policy or a
user-defined policy.
-name new_policy_name
Specifies the name of the policy to be created.
--delete
Deletes a user-defined policy.
policy_name
Specifies the name of the user-defined policy to be deleted. You cannot delete the
predefined policies.
--show
Displays the rules in a policy.
policy_name
Specifies the name of the policy to display. The name can be a predefined or a
user-defined policy.
-summary
Displays all existing policies and the number of rules present in them.
-all
Displays the rules in all of the policies.
--help
Displays the command usage.
EXAMPLES
To create a policy named "aggressive_policy":
switch:admin> mapspolicy --create aggressive_policy
To add a rule to a policy:
switch:admin> mapspolicy --addrule aggressive_policy \
-rulename CRIT_PORT_CRC_GE_2
To delete a rule from a policy:
switch:admin> mapspolicy --delrule aggressive_policy \
-rulename CRIT_PORT_CRC_GE_2
To clone a policy:
switch:admin> mapspolicy --clone dflt_conservative_policy \
-name my_conservative_policy
To delete a policy:
switch:admin> mapspolicy --delete my_conservative_policy