To verify QoS configuration information, perform one of these tasks:
Command |
Purpose |
switch# show class-map |
Displays the class maps defined on the switch. |
switch# show policy-map [name] |
Displays the policy maps defined on the switch. Optionally, you can display the named policy only. |
switch# show policy-map interface [interface number] |
Displays the policy map settings for an interface or all interfaces. |
switch# show policy-map system |
Displays the policy map settings attached to the system qos. |
switch# show policy-map type {network-qos | qos | queuing} [name] |
Displays the policy map settings for a specific policy type. Optionally, you can display the named policy only. |
switch# show queuing interface [interface number] |
Displays the queue configuration and statistics. |
You can clear the QoS policy statistics.
Command |
Purpose |
switch# clear qos statistics |
Clears the policy statistics. |
This example shows how to display the class maps defined on the switch:
switch# show class-map
Type qos class-maps
===================
class-map type qos c1
match cos 0,7
class-map type qos c2
match protocol ldp
match ip rtp 2000-65535
match dscp 10,12
match precedence 6-7
match protocol dhcp
match protocol arp
class-map type qos c3
match cos 2,4-6
class-map type qos c4
match access-group name ipv4
class-map type qos class-fcoe
match cos 3
class-map type qos class-default
match any
class-map type qos class-ip-multicast
match ip multicast
Type queuing class-maps
=======================
class-map type queuing c1
match qos-group 2
class-map type queuing c2
match qos-group 3
class-map type queuing c3
match qos-group 4
class-map type queuing class-fcoe
match qos-group 1
class-map type queuing class-default
match qos-group 0
Type network-qos class-maps
==============================
class-map type network-qos c1
match qos-group 2
class-map type network-qos c2
match qos-group 3
class-map type network-qos c3
match qos-group 4
class-map type network-qos c4
match qos-group 5
class-map type network-qos class-fcoe
match qos-group 1
class-map type network-qos class-default
match qos-group 0
This example shows how to display the policy maps defined on the switch:
switch# show policy-map
Type qos policy-maps
====================
policy-map type qos p1
class type qos c1
set qos-group 2
class type qos c3
set qos-group 4
class type qos c4
set qos-group 5
class type qos c2
set qos-group 3
class type qos c22
set qos-group 3
class type qos class-fcoe
set qos-group 1
class type qos class-default
set qos-group 0
Type queuing policy-maps
========================
policy-map type queuing p1
class type queuing c2
bandwidth percent 10
class type queuing c4
bandwidth percent 25
class type queuing c1
bandwidth percent 20
class type queuing c3
bandwidth percent 5
class type queuing class-fcoe
bandwidth percent 30
class type queuing class-default
bandwidth percent 10
Type network-qos policy-maps
===============================
policy-map type network-qos p1
class type network-qos c1
mtu 5000
class type network-qos c2
mtu 9216
queue-limit 30000 bytes
class type network-qos c3
mtu 8000
class type network-qos c4
pause no-drop
class type network-qos class-fcoe
pause no-drop
mtu 2240
class type network-qos class-default
mtu 1538
This example shows how to display the policy maps attached on the system qos:
switch# show policy-map system
Type network-qos policy-maps
===============================
policy-map type network-qos p1
class type network-qos c1 match qos-group 2
mtu 5000
class type network-qos c2 match qos-group 3
mtu 9216
queue-limit 30000 bytes
class type network-qos c3 match qos-group 4
mtu 8000
class type network-qos c4 match qos-group 5
pause no-drop
class type network-qos class-fcoe match qos-group 1
pause no-drop
mtu 2240
class type network-qos class-default match qos-group 0
mtu 1538
Service-policy (queuing) input: p1
policy statistics status: disabled
Class-map (queuing): c2 (match-any)
Match: qos-group 3
bandwidth percent 10
Class-map (queuing): c4 (match-any)
Match: qos-group 5
bandwidth percent 25
Class-map (queuing): c1 (match-any)
Match: qos-group 2
bandwidth percent 20
Class-map (queuing): c3 (match-any)
Match: qos-group 4
bandwidth percent 5
Class-map (queuing): class-fcoe (match-any)
Match: qos-group 1
bandwidth percent 30
Class-map (queuing): class-default (match-any)
Match: qos-group 0
bandwidth percent 10
Service-policy (queuing) output: default-out-policy
policy statistics status: disabled
Class-map (queuing): class-fcoe (match-any)
Match: qos-group 1
bandwidth percent 50
Class-map (queuing): class-default (match-any)
Match: qos-group 0
bandwidth percent 50
This example shows how to display the policy maps attached to an interface:
switch# show policy-map interface ethernet 1/1
Global statistics status : disabled
Ethernet1/1
Service-policy (qos) input: p2
policy statistics status: disabled
Class-map (qos): c1 (match-any)
Match: cos 0,7
set qos-group 2
Class-map (qos): c2 (match-any)
Match: protocol ldp
Match: ip rtp 2000-65535
Match: dscp 10,12
Match: precedence 6-7
Match: protocol dhcp
Match: protocol arp
set qos-group 3
Class-map (qos): c3 (match-any)
Match: cos 2,4-6
set qos-group 4
Class-map (qos): class-ip-multicast (match-any)
Match: ip multicast
set qos-group 5
Class-map (qos): class-fcoe (match-any)
Match: cos 3
set qos-group 1
Class-map (qos): class-default (match-any)
Match: any
set qos-group 0
Service-policy (queuing) input: p1
policy statistics status: disabled
Class-map (queuing): c2 (match-any)
Match: qos-group 3
bandwidth percent 10
Class-map (queuing): c4 (match-any)
Match: qos-group 5
bandwidth percent 25
Class-map (queuing): c1 (match-any)
Match: qos-group 2
bandwidth percent 20
Class-map (queuing): c3 (match-any)
Match: qos-group 4
bandwidth percent 5
Class-map (queuing): class-fcoe (match-any)
Match: qos-group 1
bandwidth percent 30
Class-map (queuing): class-default (match-any)
Match: qos-group 0
bandwidth percent 10
Service-policy (queuing) output: p2
policy statistics status: disabled
Class-map (queuing): c1 (match-any)
Match: qos-group 2
bandwidth percent 5
priority
Class-map (queuing): c2 (match-any)
Match: qos-group 3
bandwidth percent 20
Class-map (queuing): c3 (match-any)
Match: qos-group 4
bandwidth percent 20
Class-map (queuing): c4 (match-any)
Match: qos-group 5
bandwidth percent 40
Class-map (queuing): class-fcoe (match-any)
Match: qos-group 1
bandwidth percent 10
Class-map (queuing): class-default (match-any)
Match: qos-group 0
bandwidth percent 5
This example shows how to display the queue configuration and statistics:
switch# show queuing interface ethernet 1/1
Interface Ethernet1/1 TX Queuing
qos-group sched-type oper-bandwidth
0 WRR 5
1 WRR 10
2 priority 5
3 WRR 20
4 WRR 20
5 WRR 40
Interface Ethernet1/1 RX Queuing
qos-group 0:
q-size: 21120, MTU: 1538
drop-type: drop, xon: 0, xoff: 132
Statistics:
Pkts received over the port : 1265258330
Ucast pkts sent to the cross-bar : 0
Mcast pkts sent to the cross-bar : 2883444539
Ucast pkts received from the cross-bar : 0
Pkts sent to the port : 367529517
Pkts discarded on ingress : 781087 (36419)
Per-priority-pause status : Rx (Inactive), Tx (Inactive)
qos-group 1:
q-size: 76800, MTU: 2240
drop-type: no-drop, xon: 128, xoff: 240
Statistics:
Pkts received over the port : 0
Ucast pkts sent to the cross-bar : 0
Mcast pkts sent to the cross-bar : 0
Ucast pkts received from the cross-bar : 0
Pkts sent to the port : 0
Pkts discarded on ingress : 0 (0)
Per-priority-pause status : Rx (Inactive), Tx (Inactive)
qos-group 2:
q-size: 20480, MTU: 5000
drop-type: drop, xon: 0, xoff: 128
Statistics:
Pkts received over the port : 0
Ucast pkts sent to the cross-bar : 0
Mcast pkts sent to the cross-bar : 0
Ucast pkts received from the cross-bar : 0
Pkts sent to the port : 0
Pkts discarded on ingress : 0 (0)
Per-priority-pause status : Rx (Inactive), Tx (Inactive)
qos-group 3:
q-size: 30080, MTU: 9216
drop-type: drop, xon: 0, xoff: 188
Statistics:
Pkts received over the port : 0
Ucast pkts sent to the cross-bar : 0
Mcast pkts sent to the cross-bar : 0
Ucast pkts received from the cross-bar : 0
Pkts sent to the port : 0
Pkts discarded on ingress : 0 (0)
Per-priority-pause status : Rx (Inactive), Tx (Inactive)
qos-group 4:
q-size: 20480, MTU: 8000
drop-type: drop, xon: 0, xoff: 128
Statistics:
Pkts received over the port : 0
Ucast pkts sent to the cross-bar : 0
Mcast pkts sent to the cross-bar : 0
Ucast pkts received from the cross-bar : 0
Pkts sent to the port : 0
Pkts discarded on ingress : 0(0)
Per-priority-pause status : Rx (Inactive), Tx (Inactive)
qos-group 5:
q-size: 76800, MTU: 1538
drop-type: no-drop, xon: 128, xoff: 242
Statistics:
Pkts received over the port : 0
Ucast pkts sent to the cross-bar : 0
Mcast pkts sent to the cross-bar : 0
Ucast pkts received from the cross-bar : 0
Pkts sent to the port : 0
Pkts discarded on ingress : 0(0)
Per-priority-pause status : Rx (Inactive), Tx (Inactive)
Total Multicast crossbar statistics:
Mcast pkts received from the cross-bar : 557155515