display traffic policy statistics
Function
The display traffic policy statistics command displays packet statistics on an interface to which a traffic policy has been applied.
Format
display traffic policy statistics interface interface-type interface-number { inbound | outbound } [ verbose { classifier-base | rule-base } [ class classifier-name ] ]
Parameters
Parameter |
Description |
Value |
---|---|---|
interface interface-type interface-number |
Displays packet statistics on a specified interface to which a traffic policy has been applied.
|
- |
inbound |
Displays packet statistics in the inbound direction to which a traffic policy has been applied. |
- |
outbound |
Displays packet statistics in the outbound direction to which a traffic policy has been applied. |
- |
verbose |
Displays detailed packet statistics. |
- |
classifier-base |
Displays statistics on packets matching a specified traffic classifier. If this parameter is specified, statistics on packets matching a traffic classifier in the traffic policy are displayed. |
- |
rule-base |
Displays statistics on packets matching a rule. If this parameter is specified, statistics on packets matching each rule are displayed. |
- |
class classifier-name |
Specifies the name of a traffic classifier. If this parameter is specified, statistics on packets matching the specified traffic classifier or rules in the specified traffic classifier are displayed. If this parameter is not specified, statistics on packets matching all traffic classifiers are displayed. |
The value is a string of 1 to 31 case-sensitive characters without spaces. |
Usage Guidelines
Usage Scenario
The display traffic policy statistics command displays statistics on forwarded packets and discarded packets on an interface to which a traffic policy has been applied. The command output helps you locate faults.
Precautions
Error: The Policy is not applied in this view.
Info: Statistic has not been enabled!
Example
# Display traffic statistics on GE0/0/1 in the inbound direction to which a traffic policy has been applied.
<AC6605> display traffic policy statistics interface gigabitethernet 0/0/1 inbound Interface: GigabitEthernet0/0/1 Traffic policy inbound: p1 Rule number: 1 Current status: OK! Item Sum (Packets/Bytes) ------------------------------------------------------- Matched 0/ 0 +--Passed 0/ 0 +--Dropped 0/ 0 +--Filter 0/ 0 +--CAR 0/ 0 ------------------------------------------------------- +--Car 0/ 0 +--Green packets 0/ 0 +--Yellow packets 0/ 0 +--Red packets 0/ 0
<AC6605> display traffic policy statistics interface gigabitethernet 0/0/1 inbound verbose classifier-base class c1 Interface: GigabitEthernet0/0/1 Traffic policy inbound: p1 Rule number: 1 Current status: OK! Classifier: c1 operator or Behavior: b1 Item Sum (Packets/Bytes) ------------------------------------------------------- Matched 0/ 0 +--Passed 0/ 0 +--Dropped 0/ 0 +--Filter 0/ 0 +--CAR 0/ 0 ------------------------------------------------------- +--Car 0/ 0 +--Green packets 0/ 0 +--Yellow packets 0/ 0 +--Red packets 0/ 0
Item |
Description |
---|---|
Interface |
Interface to which the traffic policy is applied. |
Traffic policy inbound |
Applied traffic policy. |
Rule number |
Number of valid rules in the traffic classifier. |
Current status |
Traffic policy status. |
Classifier |
Logical relationship between rules in the traffic classifier. To configure logical relationship between rules in the traffic classifier, run the traffic classifier command. |
Behavior |
Traffic behavior name. To create a traffic behavior, run the traffic behavior command. |
Item |
Statistical item. |
Sum(Packets/Bytes) | Number of packets or bytes. If the information is displayed as -, the statistics on this item cannot be collected. |
Matched |
Numbers of packets and bytes that match the traffic classification rule. Packet statistics have been collected after the previous statistics were cleared last time. |
Passed |
Numbers of forwarded packets and bytes that match the traffic classification rule. Packet statistics have been collected after the previous statistics were cleared last time. |
Dropped |
Numbers of discarded packets and bytes that match the traffic classification rule. Packet statistics have been collected after the previous statistics were cleared last time. The dropped packets include the filtered packets and packets dropped by CAR. |
Filter |
Numbers of filtered packets and bytes that match the traffic classification rule. Packet statistics have been collected after the previous statistics were cleared last time. |
CAR |
Numbers of packets and bytes that match the traffic classification rule and are discarded by CAR. Packet statistics have been collected after the previous statistics were cleared last time. To configure CAR, run the car (traffic behavior view) command. |
Car |
Numbers of packets and bytes that match the traffic classifier. The traffic classifier is bound to the traffic behavior that containing the CAR action. Packet statistics have been collected after the previous statistics were cleared last time. |
Green packets |
Number of green packets, including the number of bytes in green packets. Packet statistics have been collected after the previous statistics were cleared last time. |
Yellow packets |
Number of yellow packets, including the number of bytes in yellow packets. Packet statistics have been collected after the previous statistics were cleared last time. |
Red packets |
Number of red packets, including the number of bytes in red packets. Packet statistics have been collected after the previous statistics were cleared last time. |