The following example shows how to display the QoS statistics:
switch(config)# show policy-map interface ethernet 8/1
Global statistics status: enabled
Ethernet8/1
Service-policy (qos) input: pmap
policy statistics status: enabled
Class-map (qos): map (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: cos 0
police cir 10 mbps bc 200 ms
conformed 0 bytes, 0 bps action: transmit
violated 0 bytes, 0 bps action: drop
Class-map (qos): map1 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: dscp 0
police cir 10 mbps bc 200 ms
conformed 0 bytes, 0 bps action: transmit
violated 0 bytes, 0 bps action: drop
Class-map (qos): map2 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: precedence 5
police cir 20 mbps bc 200 ms
conformed 0 bytes, 0 bps action: transmit
violated 0 bytes, 0 bps action: drop
Class-map (qos): map3 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: cos 3
police cir 30 mbps bc 200 ms
conformed 0 bytes, 0 bps action: transmit
violated 0 bytes, 0 bps action: drop
Class-map (qos): map4 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: packet length 100
police cir 40 mbps bc 200 ms
conformed 0 bytes, 0 bps action: transmit
violated 0 bytes, 0 bps action: drop
Class-map (qos): map5 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: access-group foo
police cir 50 mbps bc 200 ms
conformed 0 bytes, 0 bps action: transmit
violated 0 bytes, 0 bps action: drop
Class-map (qos): class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
police cir 60 mbps bc 200 ms
conformed 0 bytes, 0 bps action: transmit
violated 0 bytes, 0 bps action: drop
The following example shows how to display the QoS statistics in the specified port channel:
switch(config)# show policy-map interface port-channel 6
Global statistics status: enabled
port-channel6
Service-policy (queuing) input: default-8e-4q8q-in-policy
SNMP Policy Index: 301993627
Class-map (queuing): 8e-4q8q-in-q1 (match-any)
queue-limit percent 10
bandwidth percent 49
queue dropped pkts: 0
queue dropped bytes: 0
queue transmit pkts: 2175032764 queue transmit bytes: 1051188564890
Class-map (queuing): 8e-4q8q-in-q-default (match-any)
queue-limit percent 88
bandwidth percent 49
queue dropped pkts: 0
queue dropped bytes: 0 current depth bytes: 99
queue transmit pkts: 518903560636 queue transmit bytes: 457520859584290
In this example, the current depth bytes field appears because of an active congestion.
The current depth bytes field appears for any physical interface when there is an active congestion and the software reads the counter. The value
of the counter must be non zero. The current depth indicates that there are packets waiting in the buffer to be forwarded.
The value of the current depth is in bytes.
For complete information on the show policy-map command, see the Cisco Nexus 7000 Series NX-OS Quality of Service Command Reference.