The following examples show how to display class map and policy map configuration and statistics:
Use the show interface snmp-ifindex command to display the mapping of ifindices to interfaces:
switch(config)# show interface snmp-ifindex
--------------------------------------------------------------------------------
Port IFMIB Ifindex (hex)
--------------------------------------------------------------------------------
Eth1/1 436207616 (0x1a000000)
Eth1/2 436211712 (0x1a001000)
Eth1/3 436215808 (0x1a002000)
Eth1/4 436219904 (0x1a003000)
Eth1/5 436224000 (0x1a004000)
Use the show policy-map interface type number command to display statistics and the configured policy
maps on a specified interface:
switch# show policy-map interface ethernet 1/3
Global statistics status : enabled
NOTE: Type qos policy-map configured on VLAN will take precedence
over system-qos policy-map for traffic on the VLAN
Ethernet1/3
Service-policy (qos) input: pmap1
policy statistics status: enabled
Class-map (qos): cmap1 (match-any)
14 packets
Match: cos 4
10 Match packets
Match: dscp 48
4 Match packets
set qos-group 4
Class-map (qos): class-default (match-any)
0 packets
Use the snmpwalk command on the Service Policy Table:
$ snmpwalk -v2c -c public A.B.C.D cbQosServicePolicy
Service Policy Table (QoS only table) – corresponding to the service policy applied on eth1/3
CISCO-CLASS-BASED-QOS-MIB::cbQosIfType.285212681 = INTEGER: mainInterface(1)
CISCO-CLASS-BASED-QOS-MIB::cbQosPolicyDirection.285212681 = INTEGER: input(1)
CISCO-CLASS-BASED-QOS-MIB::cbQosIfIndex.285212681 = INTEGER: 436215808 //436215808 is the
IFMIB Interface Index value
CISCO-CLASS-BASED-QOS-MIB::cbQosVlanIndex.285212681 = Gauge32: 1
//The interface is Eth1/3.
Use the snmpwalk command on the Objects Table:
$ snmpwalk -v2c -c public A.B.C.D cbQosObjects
Objects Table (QoS only table) corresponding to the policy-map, class-map, match & set
Statements
CISCO-CLASS-BASED-QOS-MIB::cbQosConfigIndex.285212681.285212681 = Gauge32: 285212836
Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x
OL-31641-01 327
Class-based Quality-of-Service MIB
Displaying Class-based Quality-of-Service MIB Configuration and Statistics