PurposeCommand or Action
Exits the policy-map type qos class configuration
mode.
switch(config-pmap-c-qos) # exit
Step 13
Exits the policy-map qos configuration mode.switch(config-pmap-qos) # exit
Step 14
Enters the interface configuration mode.
switch(config) # interface type number
Step 15
Applies the service policy map to packets coming
into the mentioned interface.
switch(config-if) # service-policy type
qos input policy-map-name
Step 16
Exits the interface configuration mode.switch(config-if) # exit
Step 17
(Optional)
Saves the change persistently through reboots and
restarts by copying the running configuration to the
startup configuration.
switch(config) # copy running-config
startup-config
Step 18
This example shows how to configure a QoS policy on a switch:
This is a generic example to configure a QoS policy.Note
switch# configure terminal
switch(config)# snmp-server community public rw
switch(config)# snmp-server community private rw
switch(config)# class-map type qos match-any cmap1
switch(config-cmap-qos) # description class map 1
switch(config-cmap-qos) # match cos 4
switch(config-cmap-qos) # match dscp 48
switch(config-cmap-qos) # exit
switch(config) # policy-map type qos pmap1
switch(config-pmap-qos) # description policy map 1
switch(config-pmap-qos) # class cmap1
switch(config-pmap-c-qos) # set qos-group 4
switch(config-pmap-c-qos) # exit
switch(config-pmap-qos) # exit
switch(config) # interface ethernet 1/3
switch(config-if) # service-policy type qos input pmap1
Displaying Class-based Quality-of-Service MIB Configuration and Statistics
Procedure
PurposeCommand or Action
Displays class-map and policy-map configuration and
statistics.
$ snmpwalk -v2c -c community-name
ip-address oid
Step 1
Use the snmpwalk command on an
SNMP-enabled server.
Note
Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x
326 OL-31641-01
Class-based Quality-of-Service MIB
Displaying Class-based Quality-of-Service MIB Configuration and Statistics