policy clear statistics
policy clear statistics - Clear policy statistics
Description:
Clear policy statistics. If <traffic-name>
and <policy-id>
are not specified, all policies statistics for all traffic-names will be cleared. If, <traffic-name>
is specified, the policies statistics for this <traffic-name>
will be cleared.
Syntax:
policy clear statistics [<Traffic-name>] [<policy_id>]
Parameters:
Parameter | Description |
---|---|
<Traffic-name> | <string> |
<policy-id> | <decimal> |
policy edit
policy edit - Edit an existing policy
Description:
This command defines the traffic filter and the action associated with an access policy.
Syntax:
policy edit { Traffic-1 | Traffic-2 | Traffic-3 | Traffic-4} <policy-id> {
{ state {enable | disable}} |
{ out-port <port-name>} |
{ queuing-profile <queuing-profile-name>} |
{ filter {l2 | ipv4 | ipv6 | vlan} <filter-name>} |
{ action {permit | drop | MGMT-OAM | MGMT-OAM-drop |
MGMT-OAM-fwd | none}} |
{ monitor {enable <monitor-name> | disable}} |
{ evc-encapsulation {none | push | pop | replace | pop-replace |
push-preserve | preserve-vlan-new-cfi-pcp |
push-push | pop-pop | push-replace}} |
{ evc-ethertype {c-vlan | s-vlan | t-vlan} |
{ evc-ethertype2 {c-vlan | s-vlan | t-vlan} |
{ evc-vlan-id <0-4095>} |
{ evc-vlan-id2 <0-4095>} |
{ cos-mapping {preserve | direct | map}} |
{ map1-state {enable | disable}} |
{ map1-type {pcp-vlan | pcp-vlaninvlan | precedence | dscp}} |
{ map1-cos-profile <cos-profile-name>} |
{ map1-regulator-set {enable <regulator-set-name> | disable}} |
{ map2-state {enable | disable}} |
{ map2-type {pcp-vlan | pcp-vlaninvlan | precedence | dscp}} |
{ map2-cos-profile <cos-profile-name>} |
{ map2-regulator-set {enable <regulator-set-name> | disable}} |
{ green-cfi <0-1>} |
{ yellow-cfi <0-1>} |
{ green-pcp <0-7>} |
{ yellow-pcp <0-7>} |
{ pre-marking {green | yellow | red} |
{ regulator {enable <regulator-name> | disable}}
}+
Parameters:
Parameter | Description |
---|---|
<policy-id> | <decimal> |
<filter-name> | <string> |
<regulator-name> | <string> |
state | Enable or disable the policy. |
out-port | Outgoing port for this policy. |
queuing-profile | The queuing profile associated with this outgoing port. |
filter | Specify an associated filter type and name. |
action | Drop or Permit the traffic matching the filter. Note: None, MGMT-OAM, MGMT-OAM & Drop, and MGMT-OAM & Forward actions are not supported when the filter type is VID set. |
monitor | Allow monitoring the traffic on a monitor. |
evc-encapsulation | Ethernet Virtual Connection encapsulation. Possible values are:
|
evc-ethertype | Ethertype to use in the VLAN tag. Applies only if evc-encapsulation is set to push , push-preserve , replace , push-push , pop-pop , push-replace or pop-replace . |
evc-vlan-id | VLAN ID in the VLAN tag. Applies only if evc-encapsulation is set to push , push-preserve , replace , push-push , pop-pop , push-replace or pop-replace . |
evc-ethertype2 | Ethertype to use in the second VLAN tag. Applies only if evc-encapsulation is set to push-push or push-replace . |
evc-vlan-id2 | VLAN ID in the second VLAN tag. Applies only if evc-encapsulation is set to push-push or push-replace . |
cos-mapping | CoS mapping action. The action can be preserve , direct , or map . |
map1-state | First choice mapping state. |
map1-type | First choice mapping type. Specifies which incoming traffic attribute to use for traffic mapping. |
map1-cos-profile | First choice mapping CoS profile. Use this profile to map the incoming traffic based on the traffic attribute selected in map1-type . |
map1-regulator-set | First choice mapping regulator set. Regulator set to use for traffic regulation based on the traffic attribute selected in map1-type . |
map2-* | Second choice mapping. Applies only if CoS mapping action is set to map . |
green-cfi | Direct or default CFI/DEI bit for outgoing green traffic. The default behavior is active when the cos-mapping is set to preserve or map and the incoming traffic is neither handled by the first nor the second mapping choices. |
green-pcp | Direct or default PCP bits for outgoing green traffic. |
yellow-cfi | Direct or default CFI/DEI bit for outgoing yellow traffic. |
yellow-pcp | Direct or default PCP bits for outgoing yellow traffic. |
pre-marking | Direct or default pre-marking color. |
regulator | Direct or default traffic regulator. |
policy show configuration
policy show configuration - Show policy configuration
Description:
Display policy configuration. If a policy-id is specified, detailed policy configuration is displayed, otherwise a configuration summary is displayed in a table format.
Syntax:
policy show configuration { Traffic-1 | Traffic-2 | Traffic-3 | Traffic-4}
[<policy-id>]
Parameters:
Parameter | Description |
---|---|
<policy-id> | <decimal> |
policy show statistics
policy show statistics - Show policy statistics
Description:
Display policy packet and byte counters.
Syntax:
policy show statistics { Traffic-1 | Traffic-2 | Traffic-3 | Traffic-4}
<policy-id> {
{ type {clearable | persistent | historic} } |
{ buckets <0-16>} |
{ period <period-id>}
}+
Parameters:
Parameter | Description |
---|---|
<policy-id> | <decimal> |
<period-id> | <decimal> |
type | Type of statistics to display:
|
© 2025 Cisco and/or its affiliates. All rights reserved.
For more information about trademarks, please visit: Cisco trademarks
For more information about legal terms, please visit: Cisco legal terms
For legal information about Accedian Skylight products, please visit: Accedian legal terms and tradmarks