Contents
- Monitoring QoS Statistics
- Information About QoS Statistics
- Prerequisites for Monitoring QoS Statistics
- Enabling QoS Statistics
- Displaying QoS Statistics
- Clearing QoS Statistics
- Configuration Example for QoS Statistics
- Standards
- MIBs
- RFCs
- Technical Assistance
- Feature History for QoS Statistics
Monitoring QoS Statistics
This chapter contains the following sections:
- Information About QoS Statistics
- Prerequisites for Monitoring QoS Statistics
- Enabling QoS Statistics
- Displaying QoS Statistics
- Clearing QoS Statistics
- Configuration Example for QoS Statistics
- Standards
- MIBs
- RFCs
- Technical Assistance
- Feature History for QoS Statistics
Information About QoS Statistics
Statistics are maintained for each policy, class action, and match criteria per interface. You can enable or disable the collection of statistics globally using the [no] qos statistics command. You can display statistics using the show policy-map interface command, and you can clear statistics based on an interface or policy map with the clear qos statistics command. Statistics are enabled by default and can be disabled globally.
Prerequisites for Monitoring QoS Statistics
You are logged in to the CLI in EXEC mode.
Enabling QoS Statistics
You can enable or disable QoS statistics for all interfaces on the device.
Note | By default, QoS statistics are enabled. |
1. switch# configure terminal
2. switch(config)# qos statistics
3. (Optional) switch(config)# show policy-map interface
4. (Optional) switch(config)# copy running-config startup-config
DETAILED STEPS
This example shows how to enable QoS statistics:
switch# configure terminal switch(config)# qos statistics switch(config)# show policy-map interface Global statistics status : enabled Vethernet1 Service-policy (qos) input: policy1 policy statistics status: enabled Class-map (qos): class1 (match-all) 1 packets Match: access-group testacl1 Match: packet length 3-6000 set dscp af31 Class-map (qos): class-default (match-any) 1 packets Service-policy (qos) output: policy1 policy statistics status: enabled Class-map (qos): class1 (match-all) 9 packets Match: access-group testacl1 Match: packet length 3-6000 set dscp af31 Class-map (qos): class-default (match-any) 18645 packets Vethernet2 Service-policy (qos) output: policy1 policy statistics status: enabled Class-map (qos): class1 (match-all) 18636 packets Match: access-group testacl1 Match: packet length 3-6000 set dscp af31 Class-map (qos): class-default (match-any) 19191 packets Vethernet3 Service-policy (qos) output: policy1 policy statistics status: enabled Class-map (qos): class1 (match-all) 9 packets Match: access-group testacl1 Match: packet length 3-6000 set dscp af31 Class-map (qos): class-default (match-any) 18644 packets Vethernet4 Service-policy (qos) input: 1r2c policy statistics status: enabled Class-map (qos): mat-dscp0 (match-all) 568738560 packets Match: dscp 0 police cir 90 mbps bc 200 ms conformed 37578738384 bytes, 0 bps action: set-dscp-transmit 10 violated 0 bytes, 0 bps action: drop Service-policy (qos) output: policy1 policy statistics status: enabled Class-map (qos): class1 (match-all) 9 packets Match: access-group testacl1 Match: packet length 3-6000 set dscp af31 Class-map (qos): class-default (match-any) 18642 packets switch(config)# copy running-config startup-config
Displaying QoS Statistics
You know the interface for which statistics are needed.
Note | Statistics for individual interfaces are often the most useful. |
1. switch# show policy-map [policy-map-name | interface [brief | ethernet interface_number | output type qos | port-channel number | vethernet interface_number | input type qos] | type qos]
DETAILED STEPS
This example shows how to display QoS statistics:
switch (config)# show policy-map interface port-channel 1 Global statistics status : enabled port-channel1 Service-policy (qos) input: 2rate3clr policy statistics status: enabled Class-map (qos): class1 (match-all) 14 packets Match: access-group testacl1 Match: packet length 3-6000 police cir 300 kbps bc 200 ms pir 750 kbps be 200 ms conformed 1260 bytes, 4384 bps action: set-cos-transmit 4 exceeded 0 bytes, 0 bps action: set dscp dscp table cir-markdown-map violated 0 bytes, 0 bps action: set dscp dscp table pir-markdown-map switch(config-if)# show policy-map interface vethernet 1 Global statistics status : enabled Vethernet1 Service-policy (qos) input: policy1 policy statistics status: enabled Class-map (qos): class1 (match-all) 1 packets Match: access-group testacl1 Match: packet length 3-6000 set dscp af31 Class-map (qos): class-default (match-any) 1 packets Service-policy (qos) output: policy1 policy statistics status: enabled Class-map (qos): class1 (match-all) 9 packets Match: access-group testacl1 Match: packet length 3-6000 set dscp af31 Class-map (qos): class-default (match-any) 19074 packets
Clearing QoS Statistics
1. switch # clear qos statistics [interface {ethernet interface_number | port-channel number | vethernet interface_number | output type qos | input type qos}]
DETAILED STEPS
Command or Action | Purpose |
---|
This example shows how to clear QoS statistics:
switch(config)# clear qos statistics interface port-channel 1 switch# show policy-map interface port-channel 1 Global statistics status : enabled port-channel1 Service-policy (qos) input: 2rate3clr policy statistics status: enabled Class-map (qos): class1 (match-all) 0 packets Match: access-group testacl1 Match: packet length 3-6000 police cir 300 kbps bc 200 ms pir 750 kbps be 200 ms conformed 0 bytes, 0 bps action: set-cos-transmit 4 exceeded 0 bytes, 0 bps action: set dscp dscp table cir-markdown-map violated 0 bytes, 0 bps action: set dscp dscp table pir-markdown-map switch#
Configuration Example for QoS Statistics
This example shows how to display statistics for policy maps that are configured on interfaces:
switch(config)# show policy-map interface Global statistics status : enabled Vethernet3 Service-policy (qos) input: new-policy policy statistics status: enabled Class-map (qos): class-default (match-any) 59610700 packets set prec 5 Vethernet5 Service-policy (qos) output: new-policer policy statistics status: enabled Class-map (qos): new-class (match-all) 344661013 packets Match: precedence 5 police cir 900 mbps bc 200 ms conformed 505953339796 bytes, 899924196 bps action: transmit violated 12285218014 bytes, 22283000 bps action: drop
This example shows how to display the status of the global statistics and the configured policy maps on a specific interface:
switch(config)# show policy-map interface vethernet 3 Global statistics status : enabled Vethernet3 Service-policy (qos) input: policy-protoacl policy statistics status: enabled Class-map (qos): class-protoacl (match-any) 132 packets Match: access-group protoacl 132 packets set qos-group 100
Standards
No new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.
MIBs
MIBS | MIBs Link |
---|---|
CISCO-PROCESS-MIB | To locate and download MIBs, go to the following URL: http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml |
RFCs
No RFCs are supported by this feature.
Technical Assistance
Description |
Link |
---|---|
Technical Assistance Center (TAC) home page, contains 30,000 pages of searchable technical content, including links to products, technologies, solutions, technical tips, and tools. Registered Cisco.com users can log in from this page to access even more content. |
http://www.cisco.com/cisco/web/support/index.html |
Feature History for QoS Statistics
This section provides the QoS statistics release history.
Feature Name |
Release |
Feature Information |
---|---|---|
QoS Statistics |
4.0 |
This feature was introduced |