Alcatel-Lucent 6850-48 参照ガイド

ページ / 3444
QoS Policy Commands
page 53-6
OmniSwitch CLI Reference Guide
September 2009
policy rule
Configures a policy rule on the switch. A rule is made up of a condition (for classifying incoming traffic) 
and an action (to be applied to outgoing traffic).
policy rule rule_name [enable | disable] [precedence precedence] [condition condition] [action action
[validity period 
name | no validity period] [save] [log [log-interval seconds]] [count {packets | bytes}] 
[trap | no trap] [default-list | no default-list]
no policy rule rule_name 
policy rule rule_name [no reflexive] [no save] [no log]
Syntax Definitions
rule_name
The name of the policy rule, any alphanumeric string.
enable
Enables the policy rule.
disable
Disables the policy rule.
precedence
The precedence value in the range 0–65535. This value determines the 
order in which rules are searched for a matching condition. A higher 
number indicates higher precedence. Typically the range 30000–65535 
is reserved for PolicyView.
condition
The condition name that is associated with this rule. Conditions are 
configured through the policy condition command.
action
The name of the action that is associated with this rule. Actions are 
configured through the policy action command.
name
The name of a user-defined validity period that is associated with this 
rule. Validity periods are configured through the policy validity period 
command.
save
Marks the policy rule so that it may be captured as part of the switch 
configuration.
log
Configures the switch to log messages about specific flows coming into 
the switch that match this policy rule. Logging rules is not supported on 
the OmniSwitch 6800
.
seconds
Configures how often to look for packets that match this policy rule 
when rule logging is applied (in the range from 0–3600 seconds). A 
value of 0 specifies to log as often as possible.
packets
Counts the number of packets that match the rule.
bytes
Counts the number of bytes that match the rule. Note that counting bytes 
is not supported on the OmniSwitch 6800.
trap
Enables or disables traps for the rule. 
default-list
Adds or removes the policy rule from the default policy list.