Cisco Nexus 5000 Series Command Reference
Quality of Service Commands
Downloads: This chapterpdf (PDF - 290.0KB) The complete bookPDF (PDF - 3.84MB) | Feedback

Quality of Service Commands

Table Of Contents

Quality of Service Commands

bandwidth (QoS)

class (policy map type qos)

class type network-qos

class type queuing

class-map

class-map type network-qos

description

flowcontrol

match access-group

match cos

match dscp

match ip rtp

match precedence

match protocol

match qos-group

mtu

multicast-optimize

pause no-drop

policy-map type network-qos

policy-map (type qos)

policy-map type queuing

priority

priority-flow-control

queue-limit

service-policy

set cos (policy map type network-qos)

set qos-group

show class-map type network-qos

show class-map type qos

show class-map type queuing

show interface flowcontrol

show interface priority-flow-control

show interface untagged-cos

show policy-map

show policy-map interface

show policy-map interface brief

show policy-map system

show queuing interface

system jumbomtu

system qos

untagged cos


Quality of Service Commands


This chapter describes the Cisco NX-OS quality of service (QoS) commands available on Cisco Nexus 5000 Series switches.

bandwidth (QoS)

To allocate a minimum percentage of the interface bandwidth to a queue and configure the bandwidth on both ingress and egress queues, use the bandwidth command. To remove a bandwidth configuration, use the no form of this command.

bandwidth percent percent

no bandwidth percent percent

Syntax Description

percent

Specifies the percentage of bandwidth of the underlying link rate.

percent

Percent value in the range from 1 to 100.


Command Default

Default bandwidth rate is kbps.

Command Modes

Policy map type queuing class configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Examples

This example shows how to set the bandwidth remaining for the specified queue:

switch(config)# policy-map type queuing my_policy1 
switch(config-pmap-que)# class type queuing 1p7q4t-out-pq1 
switch(config-pmap-c-que)# bandwidth remaining percent 25 
switch(config-pmap-c-que)#

This example shows how to remove the bandwidth remaining for the specified queue:

switch(config)# policy-map type queuing my_policy1 
switch(config-pmap-que)# class type queuing 1p7q4t-out-pq1 
switch(config-pmap-c-que)# no bandwidth remaining percent 25 
switch(config-pmap-c-que)#

Related Commands

Command
Description

show class-map

Displays class maps.

show policy-map

Displays policy maps.


class (policy map type qos)

To add a reference to an existing qos class map in a policy map and enter the class mode, use the class command. To remove a class from the policy map, use the no form of this command.

class [type qos] {class-map-name | class-default}

no class {class-map-name | class-default}

Syntax Description

type qos

(Optional) Specifies the component type, which is qos for this class. By default, the type is qos.

class-default

Specifies the reserved class name that matches all traffic not classified in other classes in a policy map.

class-map-name

Reference to a class map. The class map name can be a maximum of 40 characters.


Command Default

None

Command Modes

Policy map type qos configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

Policy actions in the first class that matches the traffic type are performed.

Examples

This example shows how to add a reference to a qos class map at the end of a policy map:

switch(config)# policy-map my_policy1
switch(config-pmap-qos)# class traffic_class2
switch(config-pmap-c-qos)# 

This example shows how to add a reference to the class-default qos class map in a policy map:

switch(config)# policy-map my_policy1
switch(config-pmap-qos)# class class-default
switch(config-pmap-c-qos)# 

This example shows how to remove a class map reference in a policy map:

switch(config)# policy-map my_policy1
switch(config-pmap-qos)# no class traffic_class1
switch(config-pmap-qos)# 

Related Commands

Command
Description

show class-map type qos

Displays type qos class maps.

show policy-map

Displays policy maps.


class type network-qos

To add a reference to an existing network QoS class map in a policy map and enter the class mode, use the class type network-qos command. To remove a class from the policy map, use the no form of this command.

class type network-qos class-map-name

no class type network-qos class-map-name

Syntax Description

class-map-name

Reference to a network QoS class map.


Command Default

None

Command Modes

Policy map type network-qos configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

Policy actions in the first class that matches the traffic type are performed.

Examples

This example shows how to add a reference to a class map in a type network-qos policy map:

switch(config)# policy-map type network-qos nqos_policy 
switch(config-pmap-pmap-nq)# class type network-qos nqos_class 
switch(config-pmap-pmap-nq-c)# 

This example shows how to remove a class map reference in a type network-qos policy map:

switch(config)# policy-map type network-qos nqos_policy 
switch(config-pmap-pmap-nq)# no class type network-qos nqos_class 
switch(config-pmap-pmap-nq)# 

Related Commands

Command
Description

show class-map type network-qos

Displays type network-qos class maps.

show policy-map

Displays policy maps.


class type queuing

To add a reference to an existing queuing class map in a policy map and enter the class mode, use the class type queuing command. To remove a class from the policy map, use the no form of this command.

class type queuing class-map-name

no class type queuing class-map-name

Syntax Description

class-map-name

Reference to a system-defined queuing class map.


Command Default

None

Command Modes

Policy map type queuing configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

Policy actions in the first class that matches the traffic type are performed.

Examples

This example shows how to add a reference to a class map in a type queuing policy map:

switch(config)# policy-map type queuing my_policy1
switch(config-pmap-que)# class type queuing 1p7q4t-out-q3 
switch(config-pmap-c-que)# 

This example shows how to remove a class map reference in a type queuing policy map:

switch(config)# policy-map type queuing my_policy1
switch(config-pmap-que)# no class type queuing 1p7q4t-out-q3
switch(config-pmap-que)# 

Related Commands

Command
Description

show class-map type queuing

Displays the type queuing class maps.

show policy-map

Displays policy maps.



class-map

To create or modify a class map and enter the class-map configuration mode, use the class-map command. To remove a class map, use the no form of this command.

class-map {[type qos] | type queuing} class-map-name

no class-map {[type qos] | type queuing} class-map-name

Syntax Description

type qos

(Optional) Specifies the component type qos for the class map. By default, the class map type is qos.

queuing

Specifies the component type queuing for the class map.

class-map-name

Name assigned to the QoS class map, or a system-defined queuing class map name. The name class-default is reserved.


Command Default

type—qos

Command Modes

Global configuration mode

Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.

4.1(3)N1(1)

The type {qos | network-qos | queuing} keyword was added.


Usage Guidelines

You can define a class map for each class of traffic to be used in QoS policies.

If the packet matches any of the criteria configured for this class map with the match command, then this class map is applied to the packet. Class maps of type queuing support only this option.

If you modify the queuing type class maps, the configuration for all ports of the specified port type on all virtual device contexts (VDCs) also changes.

You cannot delete the system-defined queuing class map names.

Examples

This example shows how to create or modify a class map:

switch(config)# class-map my_class1 
switch(config-cmap)#

This example shows how to remove a class map:

switch(config)# no class-map my_class1 

This example shows how to modify a queuing class map:

switch(config)# class-map type queuing match-any 2q4t-in-q1 
switch(config-cmap-que)#

This example shows how to create or modify a qos class map:

switch(config)# class-map my_class1
switch(config-cmap-qos)#

This example shows how to remove a qos class map:

switch(config-cmap-qos)# no class-map my_class1
switch(config)#

Related Commands

Command
Description

policy-map

Creates or modifies a policy map.

show class-map

Displays class maps.


class-map type network-qos

To create or modify a class map that defines a network QoS class of traffic and enter the class-map configuration mode, use the class-map type network-qos command. To remove a class map, use the no form of this command.

class-map type network-qos class_map_name

no class-map type network-qos class_map_name

Syntax Description

class-map-name

Name assigned to the class map. The name class-default is reserved. The name can be a maximum of 40 alphanumeric characters.


Command Default

None

Command Modes

Global configuration mode

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

Class maps of type network qos support only the match cos command.

Examples

This example shows how to create or modify a network qos class map:

switch(config)# class-map type network-qos my_class1 
switch(config-cmap-nq)# 

This example shows how to remove a network qos class map:

switch(config-cmap-nq)# no class-map my_class1
switch(config)#

Related Commands

Command
Description

match cos

Defines a traffic class that matches the class of service (CoS) values.

show class-map type queuing

Displays class maps.


description

To add a description to a class map, policy map, or table map, use the description command. To remove the description, use the no form of this command.

description text

no description text

Syntax Description

text

Description for the class map, policy map, or table map. The description can be a maximum of 200 alphanumeric characters.


Command Default

None

Command Modes

Class map type network qos configuration

Class map type qos configuration

Class map type queuing configuration

Policy map type network qos configuration

Policy map type qos configuration

Policy map type queuing configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Examples

This example shows how to add a description to a qos class map:

switch(config)# class-map my_class1
switch(config-cmap-qos)# description This class map filters packets that matches an ACL
switch(config-cmap-qos)# 

Related Commands

Command
Description

class-map

Creates or modifies a class map.

policy-map

Creates or modifies a policy map.

show class-map

Displays class maps.

show policy-map

Displays policy maps.


flowcontrol

To enable IEEE 802.3x link-level flow control for the selected interface, use the flowcontrol command.

flowcontrol [receive {on | off}] [transmit {on | off}]

Syntax Description

receive

(Optional) Sets flow control in the receive direction.

off

Disables flow control traffic on an interface.

on

Enables flow control traffic on an interface.

transmit

(Optional) Sets flow control in the transmit direction.


Command Default

None

Command Modes

Interface configuration mode

Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.


Examples

This example shows how to enable flow control for traffic received on an interface:

switch# configure terminal 
switch(config)# interface ethernet 1/2 
switch(config-if)# flowcontrol receive on 

Related Commands

Command
Description

priority-flow-control

Sets the PFC mode for the selected interface.

show interface flowcontrol

Displays the detailed listing of the flow control settings on all interfaces.


match access-group

To identify a specified access control list (ACL) group as a match criteria for a class map, use the match access-group command. To remove an ACL match criteria from a class map, use the no form of this command.

match access-group name acl-name

no match access-group name acl-name

Syntax Description

name acl-name

Matches on the characteristics in the ACL name specified.


Defaults

None

Command Modes

Class-map type qos configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines


Note The permit and deny ACL keywords do not affect the matching of packets.


Examples

This example shows how to create a qos class map that matches characteristics of the ACL my_acl:

switch(config)# class-map class_acl
switch(config-cmap-qos)# match access-group name my_acl

Related Commands

Command
Description

show class-map

Displays class maps.


match cos

To define the class of traffic using the class of service (CoS) value in a type qos class map, use the match cos command. To remove the match on the CoS value, use the no form of this command.

match [not] cos cos-list

no match [not] cos cos-list

Syntax Description

not

(Optional) Negates the specified match result.

cos-list

Specified CoS value or list of specified CoS values. Valid values are from 0 to 7.


Defaults

None

Command Modes

Class-map type qos configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

To specify a list of values, use one of the following options:

Specify a range of values separated by a dash

Specify a noncontiguous list of values separated by commas


Note Only class maps of type qos support the optional not keyword form of this command. Class maps of type queuing do not support the not keyword.


Examples

This example shows how to match on the CoS value for a type qos class map:

switch(config)# class-map class_acl
switch(config-cmap-qos)# match cos 5-7

Related Commands

Command
Description

show class-map

Displays class maps.


match dscp

To identify specific differentiated services code point (DSCP) values as a match criteria, use the match dscp command. To remove specified DSCP values as a match criteria, use the no form of this command.

match [not] dscp dscp-list

no match [not] dscp dscp-list

Syntax Description

not

(Optional) Negates the specified match result.

dscp-list

Specified DSCP value or list of DSCP values. See Table 5-1 for a list of valid DSCP values.


Defaults

None

Command Modes

Class-map type qos configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

The standard DSCP values are shown in Table 5-1.

Table 5-1 Standard DSCP Values 

 
List of DSCP Values

af11

AF11 dscp (001010)—decimal value 10

af12

AF12 dscp (001100)—decimal value 12

af13

AF13 dscp (001110)—decimal value 14

af21

AF21 dscp (010010)—decimal value 18

af22

AF22 dscp (010100)—decimal value 20

af23

AF23 dscp (010110)—decimal value 22

af31

AF31 dscp (011010)—decimal value 26

af32

AF40 dscp (011100)—decimal value 28

af33

AF33 dscp (011110)—decimal value 30

af41

AF41 dscp (100010)—decimal value 34

af42

AF42 dscp (100100)—decimal value 36

af43

AF43 dscp (100110)—decimal value 38

cs1

CS1 (precedence 1) dscp (001000)—decimal value 8

cs2

CS2 (precedence 2) dscp (010000)—decimal value 16

cs3

CS3 (precedence 3) dscp (011000)—decimal value 24

cs4

CS4 (precedence 4) dscp (100000)—decimal value 32

cs5

CS5 (precedence 5) dscp (101000)—decimal value 40

cs6

CS6 (precedence 6) dscp (110000)—decimal value 48

cs7

CS7 (precedence 7) dscp (111000)—decimal value 56

default

Default dscp (000000)—decimal value 0

ef

EF dscp (101110)—decimal value 46


To specify a list of values, use one of the following options:

Specify a range of values separated by a dash

Specify a noncontiguous list of values separated by commas

Examples

This example shows how to match on DSCP value af21:

switch(config)# class-map my_test
switch(config-cmap-qos)# match dscp af21

Related Commands

Command
Description

show class-map

Displays class maps.


match ip rtp

To configure a class map to use the Real-Time Protocol (RTP) port as a match criteria, use the match ip rtp command. To remove the RTP port as a match criteria, use the no form of this command.

match [not] ip rtp port-list

no match [not] ip rtp port-list

Syntax Description

not

(Optional) Negates the specified match result.

port-list

Specified UDP port or list of UDP ports that are using RTP. Valid values range from 2000 to 65535.


Defaults

None

Command Modes

Class-map type qos configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

To specify a list of values, use one of the following options:

Specify a range of values separated by a dash

Specify a noncontiguous list of values separated by commas

Examples

This example shows how to match on a port using RTP:

switch(config)# class-map my_test
switch(config-cmap-qos)# match ip rtp 2300

Related Commands

Command
Description

show class-map

Displays class maps.


match precedence

To configure a class map to use the precedence value in the type of service (ToS) byte field of the IP header as a match criteria, use the match precedence command. To remove the precedence values as a match criteria, use the no form of this command.

match [not] precedence precedence-list

no match [not] precedence precedence-list

Syntax Description

not

(Optional) Negates the specified match result.

precedence-list

Specified IP precedence value or list of IP precedence values specified in bytes. Valid values are shown in Table 5-2.


Defaults

None

Command Modes

Class-map type qos configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

See Table 5-2 for a list of precedence values.

Table 5-2 Precedence Values 

Precedence Value
Description

<0-7>

IP precedence value

critical

Critical precedence (5)

flash

Flash precedence (3)

flash-override

Flash override precedence (4)

immediate

Immediate precedence (2)

internet

Internetwork control precedence (6)

network

Network control precedence (7)

priority

Priority precedence (1)

routine

Routine precedence (0)


To specify a list of values, use one of the following options:

Specify a range of values separated by a dash

Specify a noncontiguous list of values separated by commas

Examples

This example shows how to match on an IP precedence value:

switch(config)# class-map my_test
switch(config-cmap-qos)# match precedence 7

Related Commands

Command
Description

show class-map

Displays class maps.


match protocol

To configure a class map to use a specific protocol as a match criterion, use the match protocol command. To remove the specified protocol as a match criteria, use the no form of this command.

match [not] protocol protocol-name

no match [not] protocol protocol-name

Syntax Description

not

(Optional) Negates the specified match result.

protocol-name

Specified protocol name. Valid values are shown in Table 5-3.


Defaults

None

Command Modes

Class-map type qos configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

The list of valid protocol names is shown in Table 5-3.

Table 5-3 Protocol Names

Argument
Description

arp

Address Resolution Protocol (ARP)

clns_es

CLNS End Systems

clns_is

CLNS Intermediate System

dhcp

Dynamic Host Configuration (DHCP)

ldp

Label Distribution Protocol (LDP)

netbios

NetBIOS Extended User Interface (NetBEUI)


To specify more than one protocol, enter the command more than once with the desired protocol value each time.

Examples

This example shows how to match on a specified protocol:

switch(config)# class-map my_test
switch(config-cmap-qos)# match protocol ldp

Related Commands

Command
Description

show class-map

Displays class maps.


match qos-group

To configure a class map to use a specific QoS group value as a match criterion, use the match qos-group command. To remove the specified protocol as a match criteria, use the no form of this command.

match [not] qos-group qos-group-list

no match [not] qos-group qos-group-list

Syntax Description

not

(Optional) Negates the specified match result.

qos-group-list

Specified Qos group value or list of QoS group values specified in bytes. Valid values are from 2 to 5.


Command Default

None

Command Modes

Class map type network-qos configuration

Class map type queuing configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

The QoS group is an internal label and is not part of the packet payload or any packet header. The QoS group values have no mathematical significance. For example, a QoS group value of 2 is not greater than 1; the values are used only to internally differentiate QoS groups. As such, this value has local significance only.

You match on the QoS group only in egress policies because its value is undefined until you set it in an ingress policy.

To specify a list of values, use one of the following options:

Specify a range of values separated by a dash

Specify a noncontiguous list of values separated by commas

Examples

This example shows how to match on a specified QoS group value:

switch(config)# class-map type queuing my_test 
switch(config-cmap-qos)# match qos-group 6 
switch(config-cmap-qos)#

Related Commands

Command
Description

class-map type network-qos

Creates or modifies a network qos class map.

class-map type queuing

Creates or modifies a queuing class map.

show class-map

Displays class maps.


mtu

To configure the interfaces on a switch to transfer large frames on a port, use the mtu command. To remove the configured maximum transmission unit (MTU), use the no form of this command.

mtu mtu-value

no mtu mtu-value

Syntax Description

mtu-value

MTU value for the class of service (CoS). Valid values are 1500 to 9216.


Command Default

Default MTU value is 1500. For FCoE cos 3, the default is 2158.

Command Modes

Policy map type network-qos class configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.

4.2(1)N1(1)

The MTU range is changed to 1500 to 9216.

On a Cisco Nexus 5000 Series that run a Cisco NX-OS release 4.1(3)N2(1) or earlier, the MTU range is from 1538 to 9216.


Usage Guidelines

You can configure an MTU for each virtual link in the system.

Examples

This example shows how to set an MTU value for a class in a type network-qos policy map:

switch(config)# class-map type network-qos my_class1 
switch(config-cmap-nq)# match qos-group 1 
switch(config-cmap-nq)# exit 
switch(config)# policy-map type network-qos my_policy1 
switch(config-pmap-nq)# class type network-qos my_class1 
switch(config-pmap-nq-c)# mtu 5000 
switch(config-pmap-nq-c)# 

Related Commands

Command
Description

show class-map

Displays class maps.

show policy-map

Displays policy maps.


multicast-optimize

To optimize a class to send multiple packets, use the multicast-optimize command.

multicast-optimize

no multicast-optimize

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes

Policy map type network-qos class configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

Multicast traffic in a class will be served by all available multicast queues.

Only one class in a policy map can be configured for multicast optimization.

Examples

This example shows how to enable optimized multicast for a traffic class:

switch(config)# policy-map type network-qos my_queue 
switch(config-pmap-pmap-nq)# class type network-qos nqos_class 
switch(config-pmap-pmap-nq-c)# multicast-optimize 
switch(config-pmap-nq-c)# 

This example shows how to remove the multicast optimization from a traffic class:

switch(config)# policy-map type network-qos my_queue 
switch(config-pmap-pmap-nq)# class type network-qos nqos_class 
switch(config-pmap-pmap-nq-c)# no multicast-optimize 
switch(config-pmap-nq-c)# 

Related Commands

Command
Description

show policy-map

Displays the policy maps.


pause no-drop

To enable Class Based Flow Control (CBFC) pause characteristics on a class referenced in a type network-qos policy map, use the pause command. To disable the CBFC pause characteristics on a class, use the no form of this command.

pause no-drop [pfc-cos pfc-cos-list]

no pause no-drop [pfc-cos pfc-cos-list]

Syntax Description

pfc-cos

(Optional) CoS values to assert priority flow control (PFC) on.

pfc-cos-list

PFC CoS list. The range is from 0 to 7.

Use a comma (,) to separate multiple values, or a hyphen (-) to specify a range of values; for example, 0, 2, 3, or 2-5.


Command Default

By default, pause no-drop is on.

Command Modes

Policy map type network-qos class configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

Ethernet interfaces use priority flow control (PFC) to provide lossless service to no-drop system classes. PFC implements pause frames on a per-class basis and uses the IEEE 802.1p CoS value to identify the classes that require lossless service.

You can configure PFC CoS only for traffic classes that match a criteria other than the CoS value (match cos).

Examples

This example shows how to enable pause no-drop on a class referenced in a type network-qos policy map:

switch(config)# class-map type network-qos my_class1 
switch(config-cmap-nq)# match qos-group 2 
switch(config-cmap-nq)# exit 
switch(config)# policy-map type network-qos my_policy1 
switch(config-pmap-nq)# class type network-qos my_class1 
switch(config-pmap-nq-c)# pause no-drop 
switch(config-pmap-nq-c)# 

Related Commands

Command
Description

show class-map type network-qos

Displays type network-qos class maps.

show policy-map

Displays policy maps.


policy-map type network-qos

To create or modify a policy map and enter the policy map type network-qos configuration mode, use the policy-map type network-qos command. To remove a policy map, use the no form of this command.

policy-map type network-qos policy-map-name

no policy-map type network-qos policy-map-name

Syntax Description

policy-map-name

Name assigned to a type network-qos policy map. The name can be a maximum of 40 alphanumeric characters.


Command Default

None

Command Modes

Global configuration mode

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

Use the service-policy command to assign policy maps to interfaces.

Examples

This example shows how to create or modify a type network-qos policy map:

switch(config)# policy-map type network-qos my_policy1 
switch(config-pmap-nq) 

This example shows how to remove a type network-qos policy map:

switch(config-pmap-nq)# no policy-map type network-qos my_policy1 
switch(config) 

Related Commands

Command
Description

class type network-qos

References a type network-qos class map in a policy map.

description

Adds a description to a class map or policy map.

service-policy

Attaches a policy map to an interface.

show policy-map

Displays policy maps.


policy-map (type qos)

To create or modify a policy map and enter the policy map type qos configuration mode, use the policy-map command. To remove a QoS policy map, use the no form of this command.

policy-map [type qos] [match-first] qos-policy-map-name

no policy-map [type qos] [match-first] qos-policy-map-name

Syntax Description

type qos

(Optional) Specifies the type qos policy map.

match-first

(Optional) Specifies that policies associated with the first class that matches the packet characteristics are executed. This is the default action if this option is not specified.

Note Because this is the default action, you do not need to enter this variable; it is here to ensure compatibility with other systems.

qos-policy-map-name

Name assigned to a type qos policy map. The name can be a maximum of 40 alphanumeric characters.


Defaults

The software enters the policy map type qos configuration mode if you enter the policy-map command without specifying a type.

Command Modes

Global configuration mode

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

Use the service-policy command to assign policy maps to interfaces.

Examples

This example shows how to create or modify a type qos policy map:

switch(config)# policy-map my_policy1
switch(config-pmap-qos)#

This example shows how to remove a type qos policy map:

switch(config-pmap-qos)# no policy-map my_policy1

Related Commands

Command
Description

service-policy

Attaches a policy map to an interface.

show policy-map

Displays policy maps.


policy-map type queuing

To create or modify a policy map and enter the policy map type queuing configuration mode, use the policy-map type queuing command. To remove a policy map, use the no form of this command.

policy-map type queuing [match-first] queuing-policy-map-name

no policy-map type queuing [match-first] queuing-policy-map-name

Syntax Description

match-first

(Optional) Specifies that policies associated with the first class that matches the packet characteristics are executed. This is the default action if this option is not specified.

Note Because this is the default action, you do not need to enter this variable; it is here to ensure compatibility with other systems.

queuing-policy-map-name

Name assigned to a type queuing policy map. The name can be a maximum of 40 alphanumeric characters.


Command Default

None

Command Modes

Global configuration mode

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

Use the service-policy command to assign policy maps to interfaces.

Examples

This example shows how to create or modify a queuing policy map:

switch(config)# policy-map type queuing my_policy1
switch(config-pmap-que)#

This example shows how to remove a type queuing policy map:

switch(config-pmap-que)# no policy-map type queuing my_policy1
switch(config)#

Related Commands

Command
Description

service-policy

Attaches a policy map to an interface.

show policy-map

Displays policy maps.


priority

To assign a priority to a traffic class in a policy map, use the priority command. To remove the mapping, use the no form of this command.

priority

no priority

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes

Policy map type queuing class configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

When you configure a strict priority queue for a traffic class in a policy map, the priority class receives preference over other class queues. This queue is serviced before all other queues except queue zero (which carries control traffic, not data traffic).

Examples

This example shows how to map the traffic class to a strict priority queue:

switch(config)# policy-map type queuing my_policy1 
switch(config-pmap-que)# class type queuing 8q2t-in-q4 
switch(config-pmap-c-que)# priority 
switch(config-pmap-que)# 

Related Commands

Command
Description

show policy-map

Displays the policy maps.


priority-flow-control

To set the priority-flow-control (PFC) mode for the selected interface, use the priority-flow-control command.

priority-flow-control mode {auto | on}

no priority-flow-control mode {auto | on}

Syntax Description

auto

Negotiates PFC capability.

on

Force-enables PFC.


Command Default

None

Command Modes

Interface configuration mode

Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.


Examples

This example shows how to force-enable PFC on an interface:

switch# configure terminal 
switch(config)# interface ethernet 1/2 
switch(config-if)# priority-flow-control mode on 
switch(config-if)#

Related Commands

Command
Description

flowcontrol

Sets link-level flow control for the selected interface.

show interface flowcontrol

Displays the detailed listing of the flow control settings on all interfaces.

show interface priority-flow-control

Displays the priority flow control details for a specified interface.


queue-limit

To configure tail drop by setting queue limits on both ingress and egress queues, use the queue-limit command. To remove a queue limit, use the no form of this command.

queue-limit queue-size bytes

no queue-limit queue-size bytes

Syntax Description

queue-size

Queue size threshold (in bytes). The range is from 20480 to 204800.


Command Default

None

Command Modes

Policy map type network-qos class configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

You can use this command to specify or modify the maximum number of packets the queue can hold for a class policy configured in a policy map. The system drops packets that exceed the configured queue-size threshold.

You can use this command only for network-qos class maps that do not have "pause" configured.

Examples

This example shows how to assign a queue limit to a policy map network-qos class:

switch(config)# policy-map type network-qos my_queue 
switch(config-pmap-pmap-nq)# class type network-qos nqos_class 
switch(config-pmap-pmap-nq-c)# queue-limit 10 mbytes 
switch(config-pmap-nq-c)# 

This example shows how to remove a queue limit from a policy map queuing class:

switch(config)# policy-map type network-qos my_queue 
switch(config-pmap-pmap-nq)# class type network-qos nqos_class 
switch(config-pmap-pmap-nq-c)# no queue-limit 10 mbytes 
switch(config-pmap-nq-c)# 

Related Commands

Command
Description

pause no-drop

Enables pause characteristics on a class referenced in a type network-qos policy map.

show policy-map

Displays policy maps.


service-policy

To attach a policy map to an interface or system policy, use the service-policy command. To remove a service-policy from an interface or system policy, use the no form of this command.

service-policy {input | type {qos input | queuing {input | output}}} policy-map-name

no service-policy {input | type {qos input | queuing {input | output}}} policy-map-name

Syntax Description

input

Applies this policy map to packets coming into this interface.

type

(Optional) Specifies whether the policy map is of type qos or queuing.

qos

Specifies a policy map of type qos.

queuing

Specifies a policy map of type queuing.

output

Applies this policy map to packets going out of this interface.

policy-map-name

Name of the policy map to attach to this interface. Only one policy map can be attached to the input and one to the output of a given interface for each of the policy type qos and queuing.

The policy map name can be a maximum of 40 alphanumeric characters.


Defaults

None

Command Modes

Interface configuration

System QoS configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.

4.2(1)N1(1)

You can attach a policy map to a system policy.


Usage Guidelines

You can attach one ingress and one egress type queuing policy map to an interface of type port, and port channel. Only one policy map can be attached to the input of a given interface for each of the policy type qos and queuing.

Examples

This example shows how to attach a queuing policy map to the ingress packets of a port interface:

switch# configure terminal 
switch(config)# interface ethernet 2/1
switch(config-if)# service-policy type queuing input my_input_q_policy
switch(config-if)# 

This example shows how to attach qos type policy maps to the incoming packets of an interface:

switch# configure terminal 
switch(config)# system qos 
switch(config-sys-qos)# service-policy type queueing output my_policy1 
switch(config-sys-qos)#

Related Commands

Command
Description

show policy-map interface brief

Displays all interfaces and VLANs with attached service policies in a brief format.

system qos

Configures a system policy.


set cos (policy map type network-qos)

To assign a class of service (CoS) value for a class of traffic in a type network-qos policy map, use the set command. To remove the assigned value from the class, use the no form of this command.

set cos cos-value

no set cos cos-value

Syntax Description

cos-value

CoS value to assign for this class of traffic. The range is from 0 to 7.


Command Default

None

Command Modes

Policy map type network-qos class configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

You can use this command only on type network-qos policies that are attached to egress ports.

Examples

This example shows how to assign a CoS value for a class of traffic in a type network-qos policy map:

switch(config)# policy-map my_policy1
switch(config-pmap-qos)# class traffic_class2
switch(config-pmap-c-qos)# set cos 3
switch(config-pmap-c-qos)# 

This example shows how to remove the assignment of CoS for a class of traffic in a type network-qos policy map:

switch(config)# policy-map my_policy1
switch(config-pmap-qos)# class traffic_class2
switch(config-pmap-c-qos)# no set cos 3
switch(config-pmap-c-qos)# 

Related Commands

Command
Description

show policy-map

Displays policy maps.


set qos-group

To assign the QoS group identifier for a class of traffic in a type qos policy map, use the set qos-group command. To remove the assigned value from the class, use the no form of this command.

set qos-group qos-group-value

no set qos-group qos-group-value

Syntax Description

qos-group-value

QoS group value to assign for this class of traffic. The range is from 0 to 126.


Command Default

None

Command Modes

Policy map type qos class configuration

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

You can set the QoS group identifier value only in ingress policies.

Examples

This example shows how to assign a QoS group identifier for a class of traffic in a type qos policy map:

switch(config)# policy-map my_policy1 
switch(config-pmap-qos)# class traffic_class2 
switch(config-pmap-c-qos)# set qos-group 100 
switch(config-pmap-c-qos)#

Related Commands

Command
Description

show policy-map

Displays policy maps.


show class-map type network-qos

To display type network-qos class maps, use the show class-map type network-qos command.

show class-map type network-qos [class-map-name]

Syntax Description

class-map-name

Name of the class map. The name can be a maximum of 40 alphanumeric characters.


Command Default

Displays all type network-qos class maps if no class map name is specified.

Command Modes

Any command mode

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

If you do not specify the type, the command displays all the class maps configured in the system.

Examples

This example shows how to display all type network-qos class maps:

switch(config)# show class-map type network-qos 


  Type network-qos class-maps
  ==============================

    class-map type network-qos s1
      match qos-group 2

    class-map type network-qos s2
      match qos-group 3

    class-map type network-qos s3
      match qos-group 4

    class-map type network-qos s4
      match qos-group 5

    class-map type network-qos cu1
      match qos-group 2

    class-map type network-qos cu2
      match qos-group 3

    class-map type network-qos cu3
      match qos-group 4

    class-map type network-qos cu4
      match qos-group 5

    class-map type network-qos new
      match qos-group 2

    class-map type network-qos class7
      match qos-group 5

    class-map type network-qos class-0
      match qos-group 2

    class-map type network-qos ip-based
      match qos-group 5

    class-map type network-qos class-1-2
      match qos-group 3

    class-map type network-qos class-4-7
      match qos-group 4

    class-map type network-qos cos-based
      match qos-group 2

    class-map type network-qos class-fcoe
      match qos-group 1

    class-map type network-qos class-flood
      match qos-group 2

    class-map type network-qos cos-based-3
      match qos-group 3

    class-map type network-qos cos-based-4
      match qos-group 4

    class-map type network-qos class-default
      match qos-group 0

    class-map type network-qos class-multicast

    class-map type network-qos class-ip-multicast
      match qos-group 5


switch(config)# 

Related Commands

Command
Description

class-map

Creates or modifies a class map.


show class-map type qos

To display type qos class maps, use the show class-map type qos command.

show class-map type qos [class-map-name]

Syntax Description

class-map-name

Named class map. The name class-default is reserved.

The name can be a maximum of 40 alphanumeric characters.


Defaults

Displays all type qos class maps if no class map name is specified.

Command Modes

Any command mode

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Examples

This example shows how to display all type qos class maps:

switch(config)# show class-map type qos 


  Type qos class-maps
  ===================

    class-map type qos s1
      match cos 0

    class-map type qos s2
      match protocol ldp
      match ip rtp 2000
      match protocol dhcp
      match protocol arp

    class-map type qos s3
      match access-group name mac

    class-map type qos s4
      match access-group name ipv4

    class-map type qos cp1
      match precedence 4-5
      match cos 0,4
      match dscp 4
      match protocol ldp
      match protocol arp

    class-map type qos cp2
      match ip rtp 2000
      match cos 0

    class-map type qos cp3
      match access-group name mac

    class-map type qos cp5

    class-map type qos cq1
      match protocol ldp
      match precedence 7
      match cos 0

    class-map type qos cq2
      match protocol ldp
      match cos 1-2

    class-map type qos cq3
      match access-group name mac

    class-map type qos cq4
      match access-group name ipv4-1

    class-map type qos cq5
      match access-group name ipv6-based

    class-map type qos p1.1
      match cos 7

    class-map type qos p1.2
      match protocol ldp
      match ip rtp 2000-6001,10000-20000,60000-65535
      match dscp 1
      match protocol dhcp
      match protocol arp
      match precedence 0-7

    class-map type qos p1.3
      match access-group name mac

    class-map type qos p1.4
      match access-group name ipv4

    class-map type qos p2.1
      match cos 0,7

    class-map type qos p2.2
      match protocol ldp
      match ip rtp 2000-6000,6002,10000-20000,60000-65535
      match dscp 2
      match protocol dhcp
      match protocol arp
      match precedence 0-7

    class-map type qos p2.3
      match access-group name mac

    class-map type qos p2.4
      match access-group name ipv4

    class-map type qos p3.1
      match cos 0,7

    class-map type qos p3.2
      match protocol ldp
      match ip rtp 2000-6000,6003,10000-20000,60000-65535
      match dscp 3
      match protocol dhcp
      match protocol arp
      match precedence 0-7

    class-map type qos p3.3
      match access-group name mac

    class-map type qos p3.4
      match access-group name ipv4

    class-map type qos p4.1
      match cos 0,7

    class-map type qos p4.2
      match protocol ldp
      match ip rtp 2000-6000,6004,10000-20000,60000-65535
      match dscp 4
      match protocol dhcp
      match protocol arp
      match precedence 0-7

    class-map type qos p4.3
      match access-group name mac

    class-map type qos p4.4
      match access-group name ipv4

    class-map type qos p5.1
      match cos 0,7

    class-map type qos p5.2
      match protocol ldp
      match ip rtp 2000-6000,6005,10000-20000,60000-65535
      match dscp 5
      match protocol dhcp
      match protocol arp
      match precedence 0-7

    class-map type qos p5.3
      match access-group name mac

    class-map type qos p5.4
      match access-group name ipv4

    class-map type qos p6.1
      match cos 0,7

    class-map type qos p6.2
      match protocol ldp
      match ip rtp 2000-6000,6006,10000-20000,60000-65535
      match dscp 6
      match protocol dhcp
      match protocol arp
      match precedence 0-7

    class-map type qos p6.3
      match access-group name mac

    class-map type qos p6.4
      match access-group name ipv4

    class-map type qos p7.1
      match cos 0,7

    class-map type qos p7.2
      match protocol ldp
      match ip rtp 2000-6000,6007,10000-20000,60000-65535
      match dscp 7
      match protocol dhcp
      match protocol arp
      match precedence 0-7

    class-map type qos p7.3
      match access-group name mac

    class-map type qos p7.4
      match access-group name ipv4

    class-map type qos p8.1
      match cos 0,7

    class-map type qos p8.2
      match protocol ldp
      match ip rtp 2000-6000,6008,10000-20000,60000-65535
      match dscp 8
      match protocol dhcp
      match protocol arp
      match precedence 0-7

    class-map type qos p8.3
      match access-group name mac

    class-map type qos p8.4
      match access-group name ipv4

    class-map type qos p9.1
      match cos 0,7

    class-map type qos p9.2
      match protocol ldp
      match ip rtp 2000-6000,6009,10000-20000,60000-65535
      match dscp 9
      match protocol dhcp
      match protocol arp
      match precedence 0-7

    class-map type qos p9.3
      match access-group name mac

    class-map type qos p9.4
      match access-group name ipv4

    class-map type qos class-0
      match cos 0

    class-map type qos class-6
      match cos 6

    class-map type qos class-7
      match cos 7

    class-map type qos clsas-0

    class-map type qos cos-6-7
      match cos 7

    class-map type qos ip-based
      match access-group name ip-based

    class-map type qos acl-based
      match access-group name ipPacl

    class-map type qos class-1-2
      match cos 1-2

    class-map type qos class-4-5
      match cos 4-5

    class-map type qos class-4-6
      match cos 5

    class-map type qos class-4-7
      match cos 5,7

    class-map type qos class-405

    class-map type qos cos-based

    class-map type qos mac-based
      match access-group name foo

    class-map type qos udp-based
      match access-group name ip-based

    class-map type qos class-fcoe
      match cos 3

    class-map type qos class-flood

    class-map type qos class-default
      match any

    class-map type qos class-all-flood
      match all flood

    class-map type qos class-ip-multicast
      match ip multicast

switch(config)#

This example shows how to display a specific class map:

switch# show class-map type qos class-4-6


  Type qos class-maps
  ===================

    class-map type qos class-4-6
      match cos 5

switch#

Related Commands

Command
Description

class-map

Creates or modifies a class map.



show class-map type queuing

To display type queuing class maps, use the show class-map type queuing command.

show class-map type queuing [class-map-name]

Syntax Description

class-map-name

Named class map. The name can be a maximum of 40 alphanumeric characters.


Defaults

Displays all type queuing class maps if no class map name is specified.

Command Modes

Any command mode

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Examples

This example shows how to display all type queuing class maps:

switch(config)# show class-map type queuing 


  Type queuing class-maps
  =======================

    class-map type queuing s1
      match qos-group 2

    class-map type queuing s2
      match qos-group 3

    class-map type queuing s3
      match qos-group 4

    class-map type queuing s4
      match qos-group 5

    class-map type queuing cq1
      match qos-group 2

    class-map type queuing cq2
      match qos-group 3

    class-map type queuing cq3
      match qos-group 4

    class-map type queuing cq4
      match qos-group 5

    class-map type queuing pq1

    class-map type queuing cqe1
      match qos-group 2

    class-map type queuing cqe2
      match qos-group 3

    class-map type queuing cqe3
      match qos-group 4

    class-map type queuing cqe4
      match qos-group 5

    class-map type queuing p1.1
      match qos-group 2

    class-map type queuing p1.2
      match qos-group 3

    class-map type queuing p1.3
      match qos-group 4

    class-map type queuing p1.4
      match qos-group 5

    class-map type queuing p2.1
      match qos-group 2

    class-map type queuing p2.2
      match qos-group 3

    class-map type queuing p2.3
      match qos-group 4

    class-map type queuing p2.4
      match qos-group 5

    class-map type queuing p3.1
      match qos-group 2

    class-map type queuing p3.2
      match qos-group 3

--More--
switch(config)# 

Related Commands

Command
Description

class-map

Creates or modifies a class map.


show interface flowcontrol

To display the detailed listing of the flow control settings on all interfaces, use the show interface flowcontrol command.

show interface flowcontrol [module number]

Syntax Description

module number

(Optional) Displays flow control settings on all interfaces on a specified module. The module number range is from 1 to 3.


Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.


Examples

This example shows how to display the flow control settings on all interfaces on a switch:

switch# show interface flowcontrol 

--------------------------------------------------------------------------------
Port       Send FlowControl  Receive FlowControl  RxPause TxPause
           admin    oper     admin    oper
--------------------------------------------------------------------------------
Eth1/1       off      off      off      off         0                 0

Eth1/2       off      off      off      off         0                 0

Eth1/3       off      off      off      off         0                 0

Eth1/4       off      off      off      off         0                 0

Eth1/5       off      off      off      off         0                 0

Eth1/6       off      off      off      off         0                 0

Eth1/7       off      off      off      off         0                 0

Eth1/8       off      off      off      off         0                 0

Eth1/9       off      off      off      off         0                 0

Eth1/10      off      off      off      off         0                 0

Eth1/11      off      off      off      off         0                 0

--More--
switch# 

This example shows how to display the flow control settings on all interfaces on a specified module:

switch# show interface flowcontrol module 1 

-------------------------------------------------------------------------------
Port       Send FlowControl  Receive FlowControl  RxPause TxPause
           admin    oper     admin    oper
-------------------------------------------------------------------------------
Eth1/1       off      off      off      off         0                 0

Eth1/2       off      off      off      off         0                 0

Eth1/3       off      off      off      off         0                 0

Eth1/4       off      off      off      off         0                 0

Eth1/5       off      off      off      off         0                 0

Eth1/6       off      off      off      off         0                 0

Eth1/7       off      off      off      off         0                 0

Eth1/8       off      off      off      off         0                 0

Eth1/9       off      off      off      off         0                 0

Eth1/10      off      off      off      off         0                 0

Eth1/11      off      off      off      off         0                 0

Eth1/12      off      off      off      off         0                 0

Eth1/13      off      off      off      off         0                 0

Eth1/14      off      off      off      off         0                 0
--More--
switch# 

Related Commands

Command
Description

flowcontrol

Enables IEEE 802.3x link-level flow control on interfaces.

priority-flow-control

Sets the priority-flow-control (PFC) mode for the selected interface.


show interface priority-flow-control

To display the priority flow control details for a specified interface, use the show interface priority-flow-control command.

show interface [ethernet slot/port] priority-flow-control

Syntax Description

ethernet slot/port

(Optional) Specifies the Ethernet interface and its slot number and port number. The slot number is from 1 to 255, and the port number is from 1 to 128.


Command Default

None

Command Modes

Any command mode

Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.


Examples

This example shows how to display the priority flow control details for a specified interface:

switch# show interface ethernet 1/2 priority-flow-control 
============================================================
Port               Mode Oper(VL bmap)  RxPPP      TxPPP
============================================================

Ethernet1/2        Auto On  (9)       4088353    1890
switch#

The interface specified is Ethernet 1/2, the PFC mode is set to negotiate PFC capability, the operation is on, and packets transmitted is 1890.

Related Commands

Command
Description

priority-flow-control

Sets the PFC mode for the selected interface.


show interface untagged-cos

To display the untagged class of service (CoS) values for a specified interface, use the show interface untagged-cos command.

show interface untagged-cos [module module_no]

Syntax Description

module

(Optional) Displays the interfaces on this module of the switch chassis.

module_no

Module number in switch chassis. The range is from 1 to 18.


Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Examples

This example shows how to display the untagged CoS values for a specified interface:

switch# show interface untagged-cos 
=================================

Interface      Untagged-CoS
=================================

port-channel1
port-channel3  2
port-channel5  5
port-channel6
port-channel12
port-channel15
port-channel20
port-channel24
port-channel25
port-channel33
port-channel41
port-channel44
--More--
switch# 

Related Commands

Command
Description

untagged cos

Sets a CoS value for untagged Ethernet frames.


show policy-map

To display policy maps, use the show policy-map command.

show policy-map [type {qos | queuing | network-qos}] [policy-map-name]

Syntax Description

type

(Optional) Specifies the component type to display.

network-qos

Displays policy maps of type network-qos.

qos

Displays policy maps of type qos only.

queuing

Displays policy maps of type queuing only.

policy-map-name

(Optional) Named policy map. The name can be a maximum of 40 alphanumeric characters.


Defaults

None

Command Modes

Any command mode

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

When you enter the show policy-map command with no arguments or keywords, the system also displays the Control Plane Policing (CoPP) information.

Examples

This example shows how to display a named network-qos policy map:

switch# show policy-map type network-qos my_pnq 


  Type network-qos policy-maps
  ===============================

  policy-map type network-qos my_pnq
    class type network-qos cl_nq
      multicast-optimize
      queue-limit 20480 bytes
      mtu 1500
    class type network-qos class-fcoe
      pause no-drop
      mtu 2158
    class type network-qos class-default
      mtu 1500
switch#

Related Commands

Command
Description

policy-map

Creates or modifies a policy map.

show queuing interface

Displays QoS statistics.


show policy-map interface

To display service policy maps configured on the interfaces, use the show policy-map interface command.

show policy-map interface [ethernet {slot/port} | port-channel {channel-number}] [input | output] [type {qos | queuing}]

Syntax Description

ethernet

(Optional) Displays policy maps assigned to Ethernet interfaces.

slot/port

Ethernet interface slot number and port number. The slot number is from 1 to 255, and the port number is from 1 to 128.

port-channel

(Optional) Displays policy maps assigned to EtherChannels.

channel-number

EtherChannel number. The number is from 1 to 4096.

input

(Optional) Displays policy maps assigned to input traffic only.

output

(Optional) Displays policy maps assigned to output traffic only.

type

(Optional) Specifies the component type to display.

qos

Displays policy maps of type qos only.

queuing

Displays policy maps of type queuing only.


Defaults

None

Command Modes

Any command mode

Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.


Usage Guidelines

Statistics are on by default.

Examples

This example shows how to display policy maps assigned to a specified interface:

switch(config)# show policy-map interface ethernet 2/10 

This example shows how to display QoS policy maps assigned to a specified interface:

switch# show policy-map interface ethernet 3/1 type qos 


Global statistics status :   disabled

Ethernet3/1

  Service-policy (qos) input:   s
    policy statistics status:   disabled

    Class-map (qos):   s1 (match-any)
      Match: cos 0
      set qos-group 2

    Class-map (qos):   class-1-2 (match-any)
      Match: cos 1-2
      set qos-group 3

    Class-map (qos):   class-4-5 (match-any)
      Match: cos 4-5
      set qos-group 4

    Class-map (qos):   class-6 (match-any)
      Match: cos 6
      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

switch#

This example shows how to display the policy maps assigned to the output traffic of a specified interface:

switch# show policy-map interface ethernet 3/1 output 


Global statistics status :   disabled

Ethernet3/1

  Service-policy (queuing) output:   pqe1
    policy statistics status:   disabled

    Class-map (queuing):   cqe1 (match-any)
      Match: qos-group 2
      bandwidth percent 20

    Class-map (queuing):   cqe2 (match-any)
      Match: qos-group 3
      priority

    Class-map (queuing):   cqe3 (match-any)
      Match: qos-group 4
      bandwidth percent 20

    Class-map (queuing):   cqe4 (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

switch# 

Related Commands

Command
Description

policy-map

Creates or modifies a policy map.

show queuing interface

Displays QoS statistics.


show policy-map interface brief

To display policy maps applied to interfaces in a brief format, use the show policy-map interface brief command.

show policy-map interface brief

Syntax Description

This command has no arguments or keywords.

Defaults

None

Command Modes

Any command mode

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Examples

This example shows how to display assigned policy maps in a brief format:

switch(config)# show policy-map interface brief


 Interface      [Status]:INP QOS        INP QUE       OUT QUE
===================================================================
port-channel1   [Active]:p1            pqe1          pqe1
port-channel3   [Active]:s             pqe1          pqe1
port-channel5   [Active]:s             pqe1          pqe1
port-channel6   [Active]:s             pqe1          pqe1
port-channel12  [Active]:p12           p12-in        p12-out
port-channel15  [Active]:s             pqe1          pqe1
port-channel20  [Active]:s             pqe1          pqe1
port-channel24  [Active]:p4            pqe1          pqe1
port-channel25  [Active]:p4            pqe1          pqe1
port-channel33  [Active]:s             pqe1          pqe1
port-channel41  [Active]:s             pqe1          pqe1
port-channel44  [Active]:s             pqe1          pqe1
port-channel48  [Active]:s             pqe1          pqe1
port-channel101 [Active]:s             pqe1          pqe1
port-channel102 [Active]:p4
port-channel103 [Active]:p4
port-channel104 [Active]:p4
port-channel105 [Active]:p4
port-channel106 [Active]:p4
port-channel107 [Active]:p4
--More--
switch(config)#

Related Commands

Command
Description

policy-map

Creates or modifies a policy map.

show policy-map

Displays policy maps.


show policy-map system

To display all active policy maps in the system, use the show policy-map system command.

show policy-map system [type {network-qos | qos [input] | queuing [input | output]}]

Syntax Description

type

(Optional) Specifies the component type to display.

network-qos

Displays policy maps of type network-qos only.

qos

Displays policy maps of type qos only.

input

(Optional) Displays policy maps assigned to input traffic.

queuing

Displays policy maps of type queuing only.

output

(Optional) Displays policy maps assigned to output traffic.


Command Default

All policy maps

Command Modes

EXEC mode

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Usage Guidelines

If you do not specify a policy map type and name, the system displays all the active policy maps in the system.

Examples

This example shows how to display all active policy maps in the system:

switch# show policy-map system 


  Type network-qos policy-maps
  ===============================

  policy-map type network-qos s
    class type network-qos s2      match qos-group 3

      mtu 4000
    class type network-qos s1      match qos-group 2

      mtu 5000
      set cos 0
      multicast-optimize
      pause no-drop
    class type network-qos s3      match qos-group 4

      mtu 9216
    class type network-qos s4      match qos-group 5

      mtu 9216
    class type network-qos class-fcoe      match qos-group 1

      pause no-drop
      mtu 2158
    class type network-qos class-default      match qos-group 0

      mtu 1500


  Service-policy (qos) input:   s
    policy statistics status:   disabled

    Class-map (qos):   s1 (match-any)
      Match: cos 0
      set qos-group 2

    Class-map (qos):   class-1-2 (match-any)
      Match: cos 1-2
      set qos-group 3

    Class-map (qos):   class-4-5 (match-any)
      Match: cos 4-5
      set qos-group 4

    Class-map (qos):   class-6 (match-any)
      Match: cos 6
      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:   pqe1
    policy statistics status:   disabled

    Class-map (queuing):   cqe1 (match-any)
      Match: qos-group 2
      bandwidth percent 20

    Class-map (queuing):   cqe2 (match-any)
      Match: qos-group 3
      priority

    Class-map (queuing):   cqe3 (match-any)
      Match: qos-group 4
      bandwidth percent 20

    Class-map (queuing):   cqe4 (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

  Service-policy (queuing) output:   pqe1
    policy statistics status:   disabled

    Class-map (queuing):   cqe1 (match-any)
      Match: qos-group 2
      bandwidth percent 20

    Class-map (queuing):   cqe2 (match-any)
      Match: qos-group 3
      priority

    Class-map (queuing):   cqe3 (match-any)
      Match: qos-group 4
      bandwidth percent 20

    Class-map (queuing):   cqe4 (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

switch#

This example shows how to display active network-qos policy maps in the system:

switch# show policy-map system type network-qos 


  Type network-qos policy-maps
  ===============================

  policy-map type network-qos s
    class type network-qos s2      match qos-group 3

      mtu 4000
    class type network-qos s1      match qos-group 2

      mtu 5000
      set cos 0
      multicast-optimize
      pause no-drop
    class type network-qos s3      match qos-group 4

      mtu 9216
    class type network-qos s4      match qos-group 5

      mtu 9216
    class type network-qos class-fcoe      match qos-group 1

      pause no-drop
      mtu 2158
    class type network-qos class-default      match qos-group 0

      mtu 1500
switch#

Related Commands

Command
Description

show policy-map

Displays all policy maps.


show queuing interface

To display the queuing information on interfaces, use the show queuing interface command.

show queuing interface [ethernet slot-no/port-no]

Syntax Description

ethernet

(Optional) Specifies that queuing information to be displayed for an Ethernet interface.

slot-no

Slot number of the Ethernet interface. The range is from 1 to 255.

port-no

Port number of the Ethernet interface. The range is from 1 to 128.


Command Default

Displays the queuing information for all interfaces.

Command Modes

EXEC mode

Command History

Release
Modification

4.1(3)N1(1)

This command was introduced.


Examples

This example shows how to display the queuing information for all interfaces:

switch# show queuing interface 
Ethernet1/1 queuing information:
  TX Queuing
    qos-group  sched-type  oper-bandwidth
        0       WRR             73
        1       WRR              0
        2       WRR              1
        3       WRR              6
        4       WRR             20
        5       priority         0

  RX Queuing
    qos-group 0
    q-size: 25600, HW MTU: 9280 (9216 configured)
    drop-type: drop, xon: 0, xoff: 160
    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
        Per-priority-pause status               : Rx (Inactive), Tx (Inactive)

    qos-group 1
    q-size: 76800, HW MTU: 2240 (2158 configured)
    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
        Per-priority-pause status               : Rx (Inactive), Tx (Inactive)

    qos-group 2
    q-size: 20480, HW MTU: 9280 (9216 configured)
    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
        Per-priority-pause status               : Rx (Inactive), Tx (Inactive)

    qos-group 3
    q-size: 20480, HW MTU: 9280 (9216 configured)
    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
        Per-priority-pause status               : Rx (Inactive), Tx (Inactive)

    qos-group 4
    q-size: 20480, HW MTU: 9280 (9216 configured)
    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
        Per-priority-pause status               : Rx (Inactive), Tx (Inactive)

    qos-group 5
    q-size: 81920, HW MTU: 9280 (9216 configured)
    drop-type: no-drop, xon: 128, xoff: 230
    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
        Per-priority-pause status               : Rx (Inactive), Tx (Inactive)

  Total Multicast crossbar statistics:
    Mcast pkts received from the cross-bar      : 0

Ethernet1/2 queuing information:
  TX Queuing
    qos-group  sched-type  oper-bandwidth
        0       WRR             73
        1       WRR              0
        2       WRR              1
        3       WRR              6
        4       WRR             20
        5       priority         0
<---output truncated--->
switch#

This example shows how to display the queuing information on Ethernet interface 1/2:

switch# show queuing interface ethernet 1/2 
Ethernet1/2 queuing information:
  TX Queuing
    qos-group  sched-type  oper-bandwidth
        0       WRR             73
        1       WRR              0
        2       WRR              1
        3       WRR              6
        4       WRR             20
        5       priority         0

  RX Queuing
    qos-group 0
    q-size: 25600, HW MTU: 9280 (9216 configured)
    drop-type: drop, xon: 0, xoff: 160
    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  : 1851526994
        Pkts sent to the port                   : 1851527000
        Pkts discarded on ingress               : 0
        Per-priority-pause status               : Rx (Inactive), Tx (Inactive)

    qos-group 1
    q-size: 76800, HW MTU: 2240 (2158 configured)
    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
        Per-priority-pause status               : Rx (Inactive), Tx (Inactive)

    qos-group 2
    q-size: 20480, HW MTU: 9280 (9216 configured)
    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
        Per-priority-pause status               : Rx (Inactive), Tx (Inactive)

--More--
switch# 

Table 5-4 describes the significant fields shown in the display.

Table 5-4 show queuing interface Field Descriptions 

Field
Description

Ethernet ...

Ethernet interface information.

qoS-group

Information about QoS groups configured on the switch.

sched-type

Type of schedule.

WRR

Weighted round robin(WRR). Queue eight for scheduling.

Priority

Priority of the queue.

q-size

Queue size.

drop-type

Queue drop type can be either drop or no-drop.

MTU

Maximum transmit unit (MTU) for the queue.

Xon

Transmission on at this threshold.

Xoff

Transmission off at this threshold.


Related Commands

Command
Description

hardware buffer-threshold

Configures the hardware buffer threshold.

hardware queue-limit

Configures the hardware queue limit.

show fex

Displays all configured Fabric Extender chassis connected to the switch.


system jumbomtu

To define the upper bound of any maximum transmission unit (MTU) in the system, use the system jumbomtu command.

system jumbomtu [value]

Syntax Description

value

Jumbomtu value. The range is from 2158 to 9216.


Command Default

9216 bytes

Command Modes

Global configuration mode

Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.


Examples

This example shows how to define the upper bound of any MTU in the system:

switch(config)# system jumbomtu 9216 
switch(config)#

Related Commands

Command
Description

show interface

Displays the jumbo MTU frames sent and received on the specified interface.


system qos

To configure a system policy, use the system qos command.

system qos

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes

Global configuration mode

Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.


Examples

This example shows how to configure a system qos to apply a queuing policy to all interfaces in the system:

switch(config)# system qos 
switch(config-sys-qos)#

Related Commands

Command
Description

service-policy

Associates the system class policy-map to the service policy for the system.


untagged cos

To override the class of service (CoS) value for the selected interface, use the untagged cos command. To revert to the defaults, use the no form of this command.

untagged cos cos-value

no untagged cos cos-value

Syntax Description

cos-value

Class of service (CoS) value for untagged frames. Values can range from 1 to 7.


Command Default

None

Command Modes

Interface configuration mode

Command History

Release
Modification

4.0(1a)N1(1)

This command was introduced.


Usage Guidelines

Ethernet frames received with no CoS value are given a CoS value of 0.

Examples

This example shows how to set the CoS value to 4 for untagged frames received on an interface:

switch# configure terminal 
switch(config)# interface ethernet 1/2 
switch(config-if)# untagged cos 4 

Related Commands

Command
Description

match cos

Sets the CoS value to match for the selected class.