The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
Contents
This chapter contains the following sections:
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.
You are logged in to the CLI in EXEC mode.
You can enable or disable QoS statistics for all interfaces on the device.
Note | By default, QoS statistics are enabled. |
switch# config terminal switch(config)# qos statistics switch(config)# show policy-map interface switch(config)# copy running-config startup-config
You know the interface for which statistics are needed.
Note | Statistics for individual interfaces are often the most useful. |
switch# show policy-map interface ethernet 2/1
Command or Action | Purpose |
---|
switch# clear qos statistics type qos
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 statistics for a specific IPv4 access control list (ACL):
switch(config)# show ip access-lists protoacl IP access list protoacl statistics per-entry 10 permit icmp 7.120.1.10/32 7.120.1.20/32 20 permit tcp 7.120.1.10/32 7.120.1.20/32 dscp af11 30 permit udp 7.120.1.10/32 7.120.1.20/32 precedence critical 50 permit ip 7.120.1.20/32 7.120.1.10/32 60 permit ip 7.120.1.20/32 7.120.1.10/32 dscp af11 70 permit ip 7.120.1.20/32 7.120.1.10/32 precedence critical
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
No new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.
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 |
No RFCs are supported by this feature.
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 |
This section provides the QoS statistics release history.
Feature Name |
Release |
Feature Information |
---|---|---|
QoS Statistics |
4.0 |
This feature was introduced |