|
Table Of Contents
Cisco Nexus 7000 Series NX-OS Quality of Service Commands
class type queuing (policy map type queuing)
class-map type network-qos match-any
class-map type queuing match-any
match cos (class map type network-qos)
match cos (class map type qos)
match cos (class map type queuing)
queue-limit (Tail drop threshold)
service-policy type network-qos
set cos (policy map type queuing)
show class-map type network-qos
show interface priority-flow-control
show policy-map interface brief
show policy-map system type network-qos
show policy-map type network-qos
Cisco Nexus 7000 Series NX-OS Quality of Service Commands
This chapter describes the Cisco NX-OS quality of service (QoS) commands.
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 {rate [bps | kbps | mbps | gbps] | percent percent}
no bandwidth {rate [bps | kbps | mbps | gbps] | percent percent}
Syntax Description
Defaults
None
Command Modes
Policy map type queuing class configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
You can use the system-defined ingress or egress queue class for the type of module to which you want to apply the policy map. For more information about system-defined type queuing class maps, see Table 1.
Table 1 System-Defined Type queuing Class Maps
Class Map Queue Name Description Default CoS Values1 Gigabit Module Ingress: 2 queues with 4 thresholds per queue
2q4t-in-q1
Ingress queue 1 of 2q4t type
5-7
2q4t-in-q-default
Ingress default queue of 2q4t type
0-4
1 Gigabit Module Egress: 1 strict priority queue and 3 normal queues with 4 thresholds per queue
1p3q4t-out-pq1 1
Egress priority queue of 1p3q4t type
5-7
1p3q4t-out-q2
Egress queue 2 of 1p3q4t type
-
1p3q4t-out-q3
Egress queue 3 of 1p3q4t type
-
1p3q4t-out-q-default
Egress default queue of 1p3q4t type
0-4
10 Gigabit Module Ingress: 8 queues with 2 thresholds per queue
8q2t-in-q1
Ingress queue 1 of 8q2t type
5-7
8q2t-in-q2
Ingress queue 2 of 8q2t type
-
8q2t-in-q3
Ingress queue 3 of 8q2t type
-
8q2t-in-q4
Ingress queue 4 of 8q2t type
-
8q2t-in-q5
Ingress queue 5 of 8q2t type
-
8q2t-in-q6
Ingress queue 6 of 8q2t type
-
8q2t-in-q7
Ingress queue 7 of 8q2t type
-
8q2t-in-q-default
Ingress default queue of 8q2t type
0-4
10 Gigabit Module Egress: 1 strict priority queue and 7 normal queues with 4 thresholds per queue
1p7q4t-out-pq1 1
Egress priority queue of 1p7q4t type
5-7
1p7q4t-out-q2
Egress queue 2 of 1p7q4t type
-
1p7q4t-out-q3
Egress queue 3 of 1p7q4t type
-
1p7q4t-out-q4
Egress queue 4 of 1p7q4t type
-
1p7q4t-out-q5
Egress queue 5 of 1p7q4t type
-
1p7q4t-out-q6
Egress queue 6 of 1p7q4t type
-
1p7q4t-out-q7
Egress queue 7 of 1p7q4t type
-
1p7q4t-out-q-default
Egress default queue of 1p7q4t type
0-4
1 These are either priority or normal queues. If you use the priority keyword in your configuration, these are used as priority queues. Otherwise, they are used as normal queues.
Note After you use this command in a specified policy map, you cannot use the priority or shape command in the same policy map.
This command does not require a license.
Examples
This example shows how to specify a bandwidth rate for a queue:
switch(
config)#
policy-map type queuing my_policy1switch(config-pmap-que)# class type queuing 1p7q4t-out-pq1switch(config-pmap-c-que)# bandwidth 10 mbpsThis example shows how to remove a bandwidth rate for a queue:
switch(
config)#
policy-map type queuing my_policy1switch(config-pmap-que)# class type queuing 1p7q4t-out-pq1switch(config-pmap-c-que)# no bandwidth 10 mbpsRelated Commands
Command Descriptionbandwidth remaining
Configures the bandwidth remaining on the interface in a queue.
show class-map
Displays class maps.
show policy-map
Displays policy maps and statistics.
bandwidth remaining
To configure the percentage of the bandwidth remaining on the interface after other allocations are configured on both ingress and egress queues, use the bandwidth remaining command. To remove the remaining bandwidth allocation, use the no form of this command.
bandwidth remaining percent {percent}
no bandwidth remaining percent {percent}
Syntax Description
Defaults
None
Command Modes
Policy map type queuing class configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
You can use the system-defined ingress or egress queue class for the type of module to which you want to apply the policy map. For more information about system-defined type queuing class maps, see Table 1. You can use this command with the priority command.
For more information on using this command, see the Cisco Nexus 7000 Series NX-OS Quality of Service Configuration Guide, Release 5.0.
This command does not require a license.
Examples
This example shows how to set the bandwidth remaining for the specified queue:
switch(
config)#
policy-map type queuing my_policy1switch(config-pmap-que)# class type queuing 1p7q4t-out-pq1switch(config-pmap-c-que)# bandwidth remaining percent 25This example shows how to remove the bandwidth remaining for the specified queue:
switch(
config)#
policy-map type queuing my_policy1switch(config-pmap-que)# class type queuing 1p7q4t-out-pq1switch(config-pmap-c-que)# no bandwidth remaining percent 25Related Commands
Command Descriptionbandwidth
Allocates a minimum percentage of the interface bandwidth to a queue.
show class-map
Displays class maps.
show policy-map
Displays policy maps and statistics.
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 | qos-dynamic | class-default} [insert-before [type qos] before-class-map-name]
no class {class-map-name | class-default}
Syntax Description
Defaults
None
Command Modes
Policy map type qos configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
Policy actions in the first class that matches the traffic type are performed.
This command does not require a license.
Examples
This example shows how to add a reference to a class map at the end of a policy map:
switch(
config)#
policy-map my_policy1switch(config-pmap)# class traffic_class2switch(config-pmap-c-qos)#This example shows how to add a reference to a class map before an existing class map reference in a policy map:
switch(
config)#
policy-map my_policy1switch(config-pmap-qos)# class insert-before traffic_class2 traffic_class1switch(config-pmap-c-qos)#This example shows how to add a reference to the class-default class map in a policy map:
switch(
config)#
policy-map my_policy1switch(config-pmap-qos)# class class-defaultswitch(config-pmap-c-qos)#This example shows how to remove a class map reference in a policy map:
switch(
config)#
policy-map my_policy1switch(config-pmap)# no class traffic_class1switch(config-pmap)#Related Commands
Command Descriptionshow class-map qos
Displays class maps.
show policy-map
Displays policy maps and statistics.
class type queuing (policy map 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 Descriptionno
class-map-name
Reference to a system-defined class map. For a list of the system-defined type queuing class maps, see Table 1.
Defaults
None
Command Modes
policy map type queuing configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
Policy actions in the first class that matches the traffic type are performed.
This command does not require a license.
Examples
This example shows how to add a reference to a class map at the end of a type queuing policy map:
switch(
config)#
policy-map type queuing my_policy1switch(config-pmap-que)# class type queuing 8q2t-in-q4switch(config-pmap-c-que)#This example shows how to add a reference to a class map before an existing class map reference in a type queuing policy map:
switch(
config)#
policy-map type queuing my_policy1switch(config-pmap-que)# class type queuing 8q2t-in-q4 insert-before type queuing 8q2t-in-q2switch(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_policy1switch(config-pmap-que)# no class type queuing 8q2t-in-q4switch(config-pmap-que)#Related Commands
Command Descriptionshow class-map queuing
Displays class maps.
show policy-map
Displays policy maps and statistics.
class-map type network-qos match-any
To configure a class map and enter the type network qos configuration mode, use the class-map type network-qos command. To remove the class map of the type network qos, use the no form of this command.
class-map type network-qos match-any {class-map-name} {c-nq-4e-drop | c-nq-4e-ndrop | c-nq-4e-ndrop-fcoe | c-nq-6e-drop | c-nq-6e-ndrop | c-nq-6e-ndrop-fcoe | c-nq-7e-drop | c-nq-7e-ndrop-fcoe | c-nq-8e | eth}
no class-map type network-qos match-any {class-map-name} {c-nq-4e-drop | c-nq-4e-ndrop | c-nq-4e-ndrop-fcoe | c-nq-6e-drop | c-nq-6e-ndrop | c-nq-6e-ndrop-fcoe | c-nq-7e-drop | c-nq-7e-ndrop-fcoe | c-nq-8e | eth}
Syntax Description
Defaults
type—qos
Command Modes
Global configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to configure the class map of the type network qos:
switch# configure terminal
switch(config)# class-map type network-qos match-any eth
switch(config)#This example shows how to remove the class map of the type network qos:switch# configure terminal
switch(config)# no class-map type network-qos match-any ethswitch(config)#
Related Commands
Command Descriptionshow class-map network-qos
Display type network-qos class maps.
match cos (class map type network-qos)
Defines the class of traffic in type network-qos class maps.
class-map
To create or modify a class map that defines a class of traffic 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] {[match-any | match-all] class-map-name | conform-color-in | conform-color-out | exceed-color-in | exceed-color-out}
no class-map [type qos] {class-map-name | [match-any | match-all]}
Syntax Description
Defaults
type—qos
Command Modes
Global configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
You cannot delete the system-defined queuing class map names. For more information about the class-map command, see the Cisco Nexus 7000 Series NX-OS Quality of Service Configuration Guide, Release 5.0.
Note When you configure match all for a qos class map by entering the class-map type qos match-all command, the match-all option does not work. Instead, the match criteria is always treated as match any.
This command does not require a license.
Examples
This example shows how to create or modify a qos class map:
switch(
config)#
class-map my_class1switch(config-cmap-qos)#This example shows how to remove a qos class map:
switch(
config)#
no class-map my_class1switch(config)#This example shows how to modify a qos color class map:
switch(
config)#
class-map conform-color-inswitch(config-color-map)#Related Commands
class-map type queuing match-any
To modify a type queuing class map and enter the class-map configuration mode, use the class-map type queuing match-any command.
class-map type queuing match-any {queuing-class-map-name | WORD}
Syntax Description
queuing-class-map-name
System-defined queuing class map name. For the list of system-defined queuing class maps, see Table 1.
WORD
Hierarchical class-map name. It can be a string of 40 alphanumeric characters.
Defaults
None
Command Modes
Global configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
The argument WORD is supported only on the F-Series Modules.
When a non-8e template is active, it allows you to specify a hierarchical queuing (both ingress and egress) policy.
If the packet matches any of the criteria configured for this class map with the match command, this class map is applied to the packet. Class maps of type queuing support only this option.
Any modification made to the class maps type queuing changes the configuration for all ports of the specified port type on all VDCs.
You cannot delete system-defined queuing class map names. For more information on using the class-map type queuing match-any command, see the Cisco Nexus 7000 Series NX-OS Quality of Service Configuration Guide, Release 5.0.
This command does not require a license.
Examples
This example shows how to modify a queuing class map:
switch(
config)#
class-map type queuing match-any 2q4t-in-q1switch(config-cmap-que)#Related Commands
Command Descriptionshow class-map queuing
Displays class maps.
match cos
Defines the class of traffic in type queuing class maps.
clear qos statistics
To clear the quality of service (QoS) statistics, use the clear qos statistics command.
clear qos statistics [{interface [ethernet type/slot | port-channel number] | [vlan [vlan-id]} [input | output] [type {qos | queuing}]]
Syntax Description
Defaults
None
Command Modes
Any command mode
Supported User Rolesnetwork-admin
network-operator
vdc-admin
vdc-operatorCommand History
Usage Guidelines
If you do not specify the interface or VLAN, the device clears the counters for all VLANs and interfaces.
This command does not require a license.
Examples
This example shows how to clear all the QoS statistics:
switch#
clear qos statisticsswitch#This example shows how to clear all input QoS statistics for VLAN 1:
switch#
clear qos statistics vlan 1 inputswitch#Related Commands
Command Descriptionqos statistics
Enables or disables QoS statistics.
show qos statistics
Displays QoS statistics.
congestion-control
To configure congestion control, use the congestion-control command. To remove the congestion control configuration, use the no form of this command.
congestion-control [random-detect {threshold [burst-optimized | mesh-optimized]} | tail-drop {threshold [burst-optimized | mesh-optimized]}]
no congestion-control [random-detect {threshold [burst-optimized | mesh-optimized]} | tail-drop {threshold [burst-optimized | mesh-optimized]}]
Syntax Description
Defaults
None
Command Modes
Policy-map type network qos configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to configure congestion control:
switch# config t
switch(config)# policy-map type network-qos my_template
switch(config-pmap-nqos)# class type network-qos eth
switch(config-pmap-nqos-c)# congestion-control tail-drop threshold mesh-optimized
switch(config-pmap-nqos-c)#This example shows how to configure congestion control:
switch# config t
switch(config)# policy-map type network-qos my_template
switch(config-pmap-nqos)# class type network-qos eth
switch(config-pmap-nqos-c)# no congestion-control tail-drop threshold mesh-optimizedswitch(config-pmap-nqos-c)#
Related Commands
default (table map)
To specify the default action for mapping input field values to output field values in a table map, use the default command.
default {value | copy}
no default {value | copy}
Syntax Description
value
Default value to use for the output value in the range from 0 to 63.
copy
Specifies that the default action is to copy all equal values to an equal output value.
Defaults
Copies the input value to the output value.
Command Modes
Table map configuration
Default table map configurationSupported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
The copy keyword is available only in the table map configuration mode. In the default table map configuration mode, the copy keyword is not available because all values must be assigned a mapping.
This command does not require a license.
Examples
This example shows how to remove the default mapping action copy. The resulting default action is ignore:
switch(
config)#
table-map my_table1switch(config-tmap)# no default copyswitch(config-tmap)#Related Commands
Command Descriptionfrom
Specifies the input field to output field mappings in table maps.
show table-map
Displays table 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 has a maximum of 200 characters.
Defaults
None
Command Modes
Class map type qos configuration
Policy map type qos configuration
Policy map type queuing configuration
Table map configurationSupported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to add a description to a policy map:
switch(
config)#
policy-map my_policy1switch(config-pmap)# description this policy applies to input packetsswitch(config-pmap)#Related Commands
Command Descriptionclass-map
Creates or modifies a class map.
policy-map
Creates or modifies a policy map.
table-map
Creates or modifies a table map.
from (table map)
To specify a set of mappings of input field values to output field values in a table map, use the from command.
from source-value to dest-value
Syntax Description
source-value
Source value in the range from 0 to 63.
dest-value
Destination value in the range from 0 to 63.
Defaults
To configure the default mapping action for table maps, see the default (table map) command.
Command Modes
Table map configuration
Default table map configurationSupported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to create a mapping from three source values to the corresponding destination values:
switch(
config)#
table-map my_table1switch(config-tmap)# from 0 to 7switch(config-tmap)# from 1 to 6switch(config-tmap)# from 2 to 5Related Commands
Command Descriptiondefault (table map)
Specifies the default action for mapping of the input field value to the output field value in a table map.
show table-map
Displays table maps.
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 in the class map configuration mode. To remove 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
Defaults
None
Command Modes
Class-map type qos configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Release Modification4.0
This command was introduced.
4.1(2)
This command was updated to allow matching on IPv6 ACLs and IPv4 ACLs.
Usage Guidelines
Note The permit and deny ACL keywords do not affect the matching of packets.
This command does not require a license.
Examples
This example shows how to create a qos class map that matches characteristics of the ACL my_acl:
switch(
config)#
class-map class_aclswitch(config-cmap-qos)# match access-group name my_aclRelated Commands
match class-map
To match on the match commands in a specified class map, use the match class-map command in the class map configuration mode. To remove the match on the specified class map, use the no form of this command.
match [not] class-map class-map-name
no match [not] class-map class-map-name
Syntax Description
not
(Optional) Negates the specified match result.
class-map-name
Specified class-map name where the match commands need to be matched.
Defaults
None
Command Modes
Class-map type qos configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to match on the matches specified in class map named my_test:
switch(
config)#
class-map my_testswitch(config-cmap-qos)# match class-name my_testRelated Commands
match cos (class map type network-qos)
To define the class of traffic in a type network qos class map, use the match cos command. To remove the match configuration, use the no form of this command.
match cos cos-list
no match cos cos-list
Syntax Description
Defaults
None
Command Modes
Class-map type qos configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
To specify a list of values, use one of the following options:
•Specify a range of values by separating each value with a dash.
•Specify a noncontiguous list of values by separating each value by a comma.
This command does not require a license.
Examples
This example shows how to match on the CoS value for a type network qos class map:
switch(config)# class-map type network-qos match-any eth
switch(config-cmap-nqos)# match cos 3-5
switch(config-cmap-nqos)#
Related Commands
match cos (class map type qos)
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
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
To specify a list of values, use one of the following options:
•Specify a range of values by separating each value with a dash.
•Specify a noncontiguous list of values by separating each value by a comma.
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.
This command does not require a license.
Examples
This example shows how to match on the CoS value for a type qos class map:
switch(
config)#
class-map class_aclswitch(config-cmap-qos)# match cos 5-7Related Commands
match cos (class map type queuing)
To define the class of traffic in a type queuing class map, use the match cos command. To remove the match configuration, use the no form of these commands.
match cos cos-list
no match cos cos-list
Syntax Description
cos-list
Specified class of service (CoS) value or list of specified CoS values. Valid values are from 0 to 7.
Defaults
None
Command Modes
Class-map type queuing configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
To specify a list of values, use one of the following options:
•Specify a range of values by separating each value with a dash.
•Specify a noncontiguous list of values by separating each value by a comma.
Any modifications that you make to the class map type queuing changes the configuration for all ports of the specified port type on all VDCs.
Note Only class maps of type qos support the optional not keyword form of this command.
This command does not require a license.
Examples
This example shows how to modify a type queuing class map to match on CoS:
switch(
config)#
class-map type queuing match-any 8q2t-in-q4switch(config-cmap-que)# match cos 3switch(config-cmap-que)#Related Commands
match discard-class
To identify specific discard class values as a match criteria, use the match discard-class command. To remove specified discard class values as a match criteria, use the no form of this command.
match [not] discard-class discard-class-list
no match [not] discard-class discard-class-list
Syntax Description
not
(Optional) Negates the specified match result.
discard-class-list
Specified discard class value or list of discard class values. Valid values are from 0 to 63.
Defaults
None
Command Modes
Class-map type qos configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
The discard-class value is an internal label and is not part of the packet payload or any packet header. The discard-class values have no mathematical significance.
To specify a list of values, use one of the following options:
•Specify a range of values by separating each value with a dash.
•Specify a noncontiguous list of values by separating each value by a comma.
This command does not require a license.
Examples
This example shows how to match on the discard class value 5:
switch(
config)#
class-map my_testswitch(config-cmap-qos)# match discard-class 5Related Commands
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. For the list of valid DSCP values, see Table 2.
Defaults
None
Command Modes
Class-map type qos configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
The standard DSCP values are shown in Table 2.
To specify a list of values, use one of the following options:
•Specify a range of values by separating each value with a dash.
•Specify a noncontiguous list of values by separating each value by a comma.
This command does not require a license.
Examples
This example shows how to match on DSCP value af21:
switch(
config)#
class-map my_testswitch(config-cmap-qos)# match dscp af21Related Commands
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 User Datagram Protocol (UDP) or list of UDP ports that are using RTP. Valid values are from 2000 to 65535.
Defaults
None
Command Modes
Class-map type qos configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
To specify a list of values, use one of the following options:
•Specify a range of values by separating each value with a dash.
•Specify a noncontiguous list of values by separating each value by a comma.
This command does not require a license.
Examples
This example shows how to match on a port using RTP:
switch(
config)#
class-map my_testswitch(config-cmap-qos)# match ip rtp 2300Related Commands
match packet length
To configure a class map to use Layer 3 packet length in the IP header as a match criteria, use the match packet length command. To remove a previously specified Layer 3 packet length as a match criteria, use the no form of this command.
match [not] packet length packet-length-list
no match [not] packet length packet-length-list
Syntax Description
not
(Optional) Negates the specified match result.
packet-length-list
Specified Layer 3 packet length or list of packets lengths specified in bytes. Valid values are from 1 to 9198.
Defaults
None
Command Modes
Class-map type qos configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
To specify a list of values, use one of the following options:
•Specify a range of values by separating each value with a dash.
•Specify a noncontiguous list of values by separating each value by a comma.
This command does not require a license.
Examples
This example shows how to match on a Layer 3 packet length of 600 to 660:
switch(
config)#
class-map my_testswitch(config-cmap-qos)# match packet length 600-660Related Commands
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 3.
Defaults
None
Command Modes
Class-map type qos configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
For a list of precedence values, see Table 3.
To specify a list of values, use one of the following options:
•Specify a range of values by separating each value with a dash.
•Specify a noncontiguous list of values by separating each value by a comma.
This command does not require a license.
Examples
This example shows how to match on an IP precedence value:
switch(
config)#
class-map my_testswitch(config-cmap-qos)# match precedence 7Related Commands
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 4.
Defaults
None
Command Modes
Class-map type qos configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
The list of valid protocol names is shown in Table 4.
Note A maximum of eight different protocols can be matched at a time.
To specify more than one protocol, enter the match protocol command with the desired protocol value each time.
This command does not require a license.
Examples
This example shows how to match on a specified protocol:
switch(
config)#
class-map my_testswitch(config-cmap-qos)# match protocol ldpRelated Commands
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 0 to 126.
Defaults
None
Command Modes
Class-map type qos configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
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 can 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 by separating each value with a dash.
•Specify a noncontiguous list of values by separating each value by a comma.
This command does not require a license.
Examples
This example shows how to match on a specified qos group value:
switch(
config)#
class-map my_testswitch(config-cmap-qos)# match qos-group 6Related Commands
mtu
To configure the maximum transmission unit (MTU) size in a network qos policy, use the mtu command.
mtu [mtu_size]
Syntax Description
Defaults
None
Command Modes
Policy-map type network qos configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to configure the MTU size in a network policy:
switch# config t
switch(config)# policy-map type queuing my-4q-4e-drop-out
switch(config-pmap-que)# class type queuing 1p3q1t-8e-out-pq1
switch(config-pmap-que)# priority level 2
switch(config-pmap-que)# mtu 1500
switch(config-pmap-que)#Related Commands
pause
To configure no-drop per class of service (CoS), use the pause command. To remove the no-drop configuration, use the no form of this command.
pause
no pause
Syntax Description
This command has no arguments or keywords.
Defaults
no pause
Command Modes
Class-map type qos configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to configure no-drop CoS:
switch# config t
switch(config)# class-map type network-qos match-any eth
switch(config-cmap-nqos)# match cos 0,5-7
switch(config)# class-map type network-qos match-any fc1
switch(config-cmap-nqos)# match protocol fcoe
switch(config-cmap-nqos)# match cos 3
Switch(config)# class-map type network-qos match-any fc2
Switch(config-cmap-nqos)# match cos 1,2,4
switch(config)# policy-map type network-qos my_template
switch(config-pmap-nqos)# class type network-qos eth
switch(config-pmap-nqos-c)# pause
switch(config-pmap-nqos-c)#Related Commands
police (QoS)
To configure policing of the data rates for a particular class of traffic, use the police command. To remove a policing configuration, use the no form of this command.
police [cir] {cir-value [bps | kbps | mbps | gbps] | percent percent} | [[bc] bc-value [bytes | kbytes | mbytes | ms | us]] | | [pir {pir-value [bps | kbps | mbps | gbps] | percent percent} [[be] be-value [bytes | kbytes | mbytes | ms | us]] | [conform {transmit | set-prec-transmit precedence-value | set-dscp-transmit dscp-value | set-cos-transmit cos-val | set-discard-class-transmit discard-class-value | set-qos-transmit qos-group-value} [exceed {drop | set dscp dscp table cir-markdown-map}] [violate {drop | set dscp dscp table pir-markdown-map}]]}
no police [cir] {cir-value [bps | kbps | mbps | gbps] | percent percent} | [[bc] bc-value [bytes | kbytes | mbytes | ms | us]] | | [pir {pir-value [bps | kbps | mbps | gbps] | percent percent} [[be] be-value [bytes | kbytes | mbytes | ms | us]] | [conform {transmit | set-prec-transmit precedence-value | set-dscp-transmit dscp-value | set-cos-transmit cos-val | set-discard-class-transmit discard-class-value | set-qos-transmit qos-group-value} [exceed {drop | set dscp dscp table cir-markdown-map}] [violate {drop | set dscp dscp table pir-markdown-map}]]}
Syntax Description
cir
(Optional) Sets the committed information rate as a bit rate or a percentage of the link rate.
cir-value
Committed information rate. The range of values is from 1 to 80000000000; the range of policing values that are mathematically significant is 8000 to 80 Gbps.
bps
(Optional) Specifies the units of bits per second.
kbps
(Optional) Specifies the units of kilobits per second.
mbps
(Optional) Specifies the units of megabits per second.
gbps
(Optional) Specifies the units of gigabits per second.
percent
Specifies the percentage of the related parameter.
percent
Specifies percent. Valid values are from 1 to 100.
bc
Sets the committed burst rate, which is how much the cir can be exceeded, either as a bit rate or an amount of time at cir.
bc-value
Committed burst rate. Valid values are from 1 to 536870912. The default value is 200.
bytes
(Optional) Specifies the units of bytes per second.
kbytes
(Optional) Specifies the units of kilobytes per second.
mbytes
(Optional) Specifies the units of megabytes per second.
ms
(Optional) Specifies the units of milliseconds.
us
(Optional) Specifies the units of microseconds.
pir
Sets the peak information rate.
pir-value
Peak information rate. Valid values are from 1 to 80000000000; the range of policing values that are mathematically significant is 8000 to 80 Gbps.
be
Specifies the extended burst rate. Valid values are from 1 to 536870912.
be-value
Extended burst rate. If the bc value is not specified, the default is 200 milliseconds of traffic at the configured rate. The default data rate units are bytes.
conform
Sets the action to take when the data rate is within bounds.
transmit
Specifies the action of transmitting packets.
set-prec-transmit precedence-value
Sets the IP precedence field to the specified value and transmits the packet. Valid values are from 0 to 7.
set-dscp-transmit dscp-value
Sets the Differentiated Service Code Point (DSCP) field to the specified value and transmits the packet. For a list of valid values for this field, see Table 2.
set-cos-transmit cos-val
Sets the class of service (CoS) field to the specified value and transmits the packet. Valid values are from 0 to 7.
set-discard-class-transmit discard-class-value
Sets the discard class field to the specified value and transmits the packet. Valid values are from 0 to 63.
set-qos-transmit qos-group-value
Sets the qos group field to the specified value and transmits the packet. Valid values are from 0 to 126.
exceed
Sets the action to take when the data rate is exceeded. The default is drop.
drop
Specifies the action of dropping packets.
set dscp dscp table cir-markdown-map
Sets the DSCP field to the corresponding value in the system-defined table map and transmits the packet.
violate
Sets the action to take when the data rate violates the configured rate values. The default is drop.
set dscp dscp table pir-markdown-map
Sets the DSCP field to the corresponding value in the system-defined table map and transmits the packet.
Defaults
bc default value is 200 milliseconds of traffic at the configured rate. The default data rate units are bytes.
be default value is 200 milliseconds of traffic at the configured rate. The default data rate units are bytes.
exceed default action is drop.
violate default action is drop.
Command Modes
Policy map type qos class configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows a 1-rate, 2-color policer that transmits if the data rate is within 200 milliseconds of traffic at 256000 bps and marks the DSCP value based on the system-defined table map pir-markdown-map if the data rate is violated:
switch(
config)#
policy-map my_policy1switch(config-pmap-qos)# class default-classswitch(config-pmap-c-qos)# police cir 256000 conform transmit violate dropswitch(config-pmap-c-qos)#This example shows a 1-rate, 3-color policer that transmits if the data rate is within 200 milliseconds of traffic at 256000 bps, marks DSCP based on the system-defined table map cir-markdown-map if the data rate is within 300 milliseconds of traffic at 256000 bps, and drops packets otherwise (pir must equal cir):
switch(
config)#
policy-map my_policy1switch(config-pmap-qos)# class default-classswitch(config-pmap-c-qos)# police cir 256000 pir 256000 conform transmit exceed set dscp dscp table cir-markdown-map violate dropswitch(config-pmap-c-qos)#This example shows a 2-rate, 3-color policer that transmits and sets CoS to 5 if the data rate is within 200 milliseconds of traffic at 256000 bps, marks DSCP based on the system-defined table map cir-markdown-map if the data rate exceeds 200 milliseconds of traffic at 512 bps, and drops packets otherwise:
switch(
config)#
policy-map my_policy1switch(config-pmap-qos)# class default-classswitch(config-pmap-c-qos)# police cir 256000 pir 512000 conform set-cos-transmit 5 exceed set dscp dscp table cir-markdown-map violate dropswitch(config-pmap-c-qos)#Related Commands
police aggregate
To apply an aggregate policer to a particular class of traffic across multiple interfaces, use the police aggregate command. To remove an aggregate policer configuration, use the no form of this command.
police aggregate policer-name
no police aggregate policer-name
Syntax Description
Defaults
None
Command Modes
Policy map type qos class configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
Shared policers can only be applied to interfaces on the same module.
Note For information about configuring a shared policer, see the qos shared-policer command.
This command does not require a license.
Examples
This example shows how to configure a shared policer for the class-default class of traffic:
switch(
config)#
policy-map my_policy1switch(config-pmap-qos)# class default-classswitch(config-pmap-c-qos)# police aggregate my_aggregate_policerswitch(config-pmap-c-qos)#This example shows how to remove the configuration of a shared policer from the class-default class of traffic:
switch(
config)#
policy-map my_policy1switch(config-pmap-qos)# class default-classswitch(config-pmap-c-qos)# no police aggregate my_aggregate_policerswitch(config-pmap-c-qos)#Related Commands
Command Descriptionqos shared-policer
Configures simultaneous policing across multiple interfaces for a specified class of traffic.
show policy-map
Displays policy maps and statistics.
policy-map type network-qos
To configure a policy map and enter the policy map type network qos configuration mode, use the policy-map type network-qos command. To remove a class map, use the no form of this command.
policy-map type network-qos {policy-map-name} {default-nq-4e-policy | default-nq-6e-policy | default-nq-7e-policy | default-nq-8e-policy | my_template}
no policy-map type network-qos {policy-map-name} {default-nq-4e-policy | default-nq-6e-policy | default-nq-7e-policy | default-nq-8e-policy | my_template}
Syntax Description
Defaults
qos
Command Modes
Global configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
Use the service-policy command to assign policy maps to system qos.
This command does not require a license.
Examples
This example shows how to configure a policy map of the type network qos:
switch# configure terminal
switch(config)# policy-map type network-qos my_template
switch(config-pmap-nqos)#This example shows how to remove a policy map of the type network qos:switch# configure terminal
switch(config)# no policy-map type network-qos my_templateswitch(config)#
Related Commands
Command Descriptionservice-policy
Attaches a policy map to an interface.
show policy-map
Displays policy maps and statistics.
policy-map type qos
To create or modify a policy map and enter the policy map type qos configuration mode, use the policy-map type qos command. To remove a policy map, use the no form of this command.
policy-map [type qos] [match-first] {qos-policy-map-name | qos-dynamic}
no policy-map [type qos] [match-first] {qos-policy-map-name | qos-dynamic}
Syntax Description
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
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
Use the service-policy command to assign policy maps to interfaces.
This command does not require a license.
Examples
This example shows how to create or modify a type qos policy map:
switch(
config)#
policy-map my_policy1switch(config-pmap-qos)#This example shows how to remove a type qos policy map:
switch(
config)#
no policy-map my_policy1Related Commands
Command Descriptionservice-policy
Attaches a policy map to an interface.
show policy-map
Displays policy maps and statistics.
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 | que-dynamic}
no policy-map type queuing [match-first] {queuing-policy-map-name | que-dynamic}
Syntax Description
Defaults
None
Command Modes
Global configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
Use the service-policy command to assign policy maps to interfaces.
This command does not require a license.
Examples
This example shows how to create or modify a queuing policy map:
switch(
config)#
policy-map type queuing my_policy1switch(config-pmap-que)#This example shows how to remove a type queuing policy map:
switch(
config)#
no policy-map type queuing my_policy1switch(config)#Related Commands
Command Descriptionservice-policy
Attaches a policy map to an interface.
show policy-map
Displays policy maps and statistics.
priority (queuing)
To configure a single output queuing class as the priority queue, use the priority command. To remove the priority queue selection, use the no form of this command.
priority [level priority-value]
no priority [level priority-value]
Syntax Description
level priority-value
(Optional) Specifies the priority level for an output queuing class. Only one priority level is supported. The priority value can only be 1.
Defaults
The software distributes the bandwidth among the output queues, when you do not specify the priority.
Command Modes
Policy map type queuing configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
The priority level can only be 1.
Use the bandwidth remaining command to allocate the remaining bandwidth among the nonpriority output queues. By default, the software evenly distributes the remaining bandwidth among the nonpriority output queues.
You can also use the police command to explicitly configure the priority for specified classes of traffic.
Note After you use this command in a specified policy map, you cannot use the bandwidth or shape command in the same policy map.
This command does not require a license.
Examples
This example shows how to assign a priority queue:
switch(
config)#
policy-map type queuing match-first my_queueswitch(config-pmap-que)# class type queuing 1p3q4t-out-pq1switch(config-pmap-c-que)# priority level 1switch(config-pmap-c-que)#This example shows how to remove a priority queue:
switch(
config)#
policy-map type queuing match-first my_queueswitch(config-pmap-que)# class type queuing 1p3q4t-out-pq1switch(config-pmap-c-que)# no priority level 1switch(config-pmap-c-que)#Related Commands
priority-flow-control mode
To configure priority flow control (PFC) on an interface, use the priority-flow-control mode command.
priority-flow-control mode {auto | off | on}
Syntax Description
Defaults
auto
Command Modes
Global configuration
Supported User Rolesnetwork-admin
network-operator
vdc-admin
vdc-operatorCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to set the PFC mode to on:
switch# configure terminal
switch(config)# interface ethernet 2/5
switch(config-if)# priority-flow-control mode on
switch(config-if)#This example shows how to set the PFC mode to off:
switch# configure terminal
switch(config)# interface ethernet 2/5
switch(config-if)# priority-flow-control mode off
switch(config-if)#
Related Commands
Command Descriptionshow interface priority-flow-control
Displays the status of priority flow control (PFC) on all interfaces.
qos copy policy-map
To copy a system-defined network-qos policy and modify it for use, use the qos copy policy-map command.
qos copy policy-map type {network-qos [default-nq-4e-policy {prefix prefix | suffix suffix} | default-nq-6e-policy {prefix prefix | suffix suffix} | default-nq-7e-policy {prefix prefix | suffix suffix} | default-nq-8e-policy {prefix prefix | suffix suffix}] | queuing
[default-4q-4e-in-policy {prefix prefix | suffix suffix} | default-4q-4e-out-policy{prefix prefix | suffix suffix}]}Syntax Description
Defaults
None
Command Modes
Global configuration
Supported User Rolesnetwork-admin
network-operator
vdc-admin
vdc-operatorCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to copy a system-defined network qos policy and modify it for use:
switch# configure terminal
switch(config)# qos copy policy-map type network-qos default-nq-4e-policy prefix my_
switch(config)#Related Commands
Command Descriptionpolicy-map type network-qos
Configure a policy map and enter the policy map type network qos configuration mode.
qos shared-policer
To configure simultaneous policing of the data rates for a particular class of traffic across multiple interfaces, use the qos shared-policer command. To remove a shared policer configuration, use the no form of this command.
qos shared-policer [type qos] policer-name [cir] {cir-value [bps | kbps | mbps | gbps] | percent percent} | [[bc] bc-value [bytes | kbytes | mbytes | ms | us]] | [pir {pir-value [bps | kbps | mbps | gbps] | percent -percent} [[be] be-value [bytes | kbytes | mbytes | ms | us]]] | [conform {transmit | set-prec-transmit precedence-value | set-dscp-transmit dscp-value | set-cos-transmit cos-val | set-discard-class-transmit discard-class-value | set-qos-transmit qos-group-value} [exceed {drop | set dscp dscp table cir-markdown-map}] [violate {drop | set dscp dscp table pir-markdown-map}]]
no qos shared-policer [type qos] policer-name
Syntax Description
type qos
(Optional) Specifies the component type, which is quality of service (QoS) for this class.
policer-name
Name of a shared policer.
cir
(Optional) Sets the committed information rate as a bit rate or a percentage of the link rate.
cir-value
Committed information rate. Valid values are from 1 to 80000000000; the range of policing values that are mathematically significant is 8000 to 80 Gbps.
bps
(Optional) Specifies the units of bits per second.
kbps
(Optional) Specifies the units of kilobits per second.
mbps
(Optional) Specifies the units of megabits per second.
gbps
(Optional) Specifies the units of gigabits per second.
percent
Specifies the percentage of the related parameter.
percent
Specifies percent. Valid values are from 1 to 100.
bc
Sets the committed burst rate, which is how much the cir can be exceeded, either as a bit rate or an amount of time at cir.
bc-value
Committed burst rate. Valid values are from 1 to 536870912. The default value is 200.
bytes
(Optional) Specifies the units of bytes per second.
kbytes
(Optional) Specifies the units of kilobytes per second.
mbytes
(Optional) Specifies the units of megabytes per second.
ms
(Optional) Specifies the units of milliseconds.
us
(Optional) Specifies the units of microseconds.
pir
Sets the peak information rate.
pir-value
Peak information rate. Valid values are from 1 to 80000000000; the range of policing values that are mathematically significant is from 8000 to 80 Gbps.
be
Specifies the extended burst rate. Valid values are from 1 to 536870912.
be-value
Extended burst rate. If the bc value is not specified, the default is 200 milliseconds of traffic at the configured rate. The default data rate units are bytes.
conform
Sets the action to take when the data rate is within bounds.
transmit
Specifies the action of transmitting packets.
set-prec-transmit precedence-value
Sets the IP precedence field to the specified value and transmits the packet. Valid values are from 0 to 7.
set-dscp-transmit dscp-value
Sets the Differentiated Services Code Point (DSCP) field to the specified value and transmits the packet. For a list of valid values for this field, see Table 2.
set-cos-transmit cos-val
Sets the class of service (CoS) field to the specified value and transmits the packet. Valid values are from 0 to 7.
set-discard-class-transmit discard-class-value
Sets the discard class field to the specified value and transmits the packet. Valid values are from 0 to 63.
set-qos-transmit qos-group-value
Sets the qos group field to the specified value and transmits the packet. Valid values are from 0 to 126.
exceed
Sets the action to take when the data rate is exceeded. The default is drop.
drop
Specifies the action of dropping packets.
set dscp dscp table cir-markdown-map
Sets the DSCP field to the corresponding value in the system-defined table map and transmits the packet.
violate
Sets the action to take when the data rate violates the configured rate values. The default is drop.
set dscp dscp table pir-markdown-map
Sets the DSCP field to the corresponding value in the system-defined table map and transmits the packet.
Defaults
type default value is qos.
bc default value is 200 milliseconds of traffic at the configured rate. The default data rate units are bytes.
be default value is 200 milliseconds of traffic at the configured rate. The default data rate units are bytes.
exceed default action is drop.
violate default action is drop.
Command Modes
Global configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
The interfaces that are attached to the shared policer must be on the same module. For an example of using a shared policer, see the police aggregate command.
This command does not require a license.
Examples
This example shows configuration of a 2-rate, 3-color shared policer that transmits and sets CoS to 5 if the data rate is within 200 milliseconds of traffic at 256000 bps, marks DSCP based on the system-defined table map cir-markdown-map if the data rate exceeds 200 milliseconds of traffic at 512 bps, and drops packets otherwise:
switch(
config)#
qos shared-policer my_shared_policer cir 256000 pir 512000 conform set-cos-transmit 5 exceed set dscp dscp table cir-markdown-map violate dropswitch(config)#Related Commands
qos statistics
To enable Quality of Service (QoS) statistics, use the qos statistics command. To disable QoS statistics, use the no form of this command.
qos statistics
no qos statistics
Syntax Description
This command has no arguments or keywords.
Defaults
Enabled
Command Modes
Global configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
On M1 Modules if QoS statistics were disabled it may take up to 90 seconds to show the statistics under "show policy-map interface <num> type queuing" command.
This command does not require a license.
Examples
This example shows how to enable QoS statistics:
switch(
config)#
qos statisticsswitch(config)#This example shows how to disable QoS statistics:
switch(
config)#
no qos statisticsswitch(config)#Related Commands
queue-limit (Tail drop threshold)
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 {cos cos-value [packets | bytes | kbytes | mbytes | ms | us] | percent percent-queue-size}
no queue-limit {cos cos-value [packets | bytes | kbytes | mbytes | ms | us] | percent percent-queue-size}
Syntax Description
Defaults
queue-size is in packets by default.
Command Modes
Policy map type queuing class configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Release Modification5.1(1)
Modified the queue-limit command to include Tail drop threshold.
4.0
This command was introduced.
Usage Guidelines
The system drops packets that exceed the configured queue-size threshold.
By default, the queue limit is applied to all packets with a class of service (CoS) value that is not assigned a queue limit.
The queue limit is not supported on ingress policies on the 10-Gbps interfaces.
Tail drop and weighted random early detection (WRED) cannot be configured in the same class. For information about configuring WRED, see the random-detect command.
This command does not require a license.
Examples
This example shows how to assign a queue limit to a policy map queuing class that applies only to the specified CoS value:
switch(
config)#
policy-map type queuing match-first my_queueswitch(config-pmap-que)# class type queuing 1p3q4t-out-pq1switch(config-pmap-c-que)# queue-limit cos 3 10 mbytesswitch(config-pmap-c-que)#This example shows how to remove a queue limit from a policy map queuing class:
switch(
config)#
policy-map type queuing match-first my_queueswitch(config-pmap-que)# class type queuing 1p3q4t-out-pq1switch(config-pmap-c-que)# no queue-limit cos 3 10 mbytesswitch(config-pmap-c-que)#Related Commands
Command Descriptionrandom-detect
Configures weighted random early detection (WRED).
show policy-map
Displays policy maps and statistics.
queue-limit (queue-size)
To configure queue size 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 [packets | bytes | kbytes | mbytes | ms | us] | percent percent-queue-size}
no queue-limit {queue-size [packets | bytes | kbytes | mbytes | ms | us] | percent percent-queue-size}
Syntax Description
Defaults
queue-size is in packets by default.
Command Modes
Policy map type queuing class configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Release Modification5.1(1)
Modified the queue-limit command to include queue size.
4.0
This command was introduced.
Usage Guidelines
The system drops packets that exceed the configured queue-size threshold.
By default, the queue limit is applied to all packets with a class of service (CoS) value that is not assigned a queue limit.
The queue limit is not supported on ingress policies on the 10-Gbps interfaces.
Tail drop and weighted random early detection (WRED) cannot be configured in the same class. For information about configuring WRED, see the random-detect command.
This command does not require a license.
Examples
This example shows how to assign a queue limit to a policy map queuing class that applies only to the specified CoS value:
switch(
config)#
policy-map type queuing match-first my_queueswitch(config-pmap-que)# class type queuing 1p3q4t-out-pq1switch(config-pmap-c-que)# queue-limit cos 3 10 mbytesswitch(config-pmap-c-que)#This example shows how to remove a queue limit from a policy map queuing class:
switch(
config)#
policy-map type queuing match-first my_queueswitch(config-pmap-que)# class type queuing 1p3q4t-out-pq1switch(config-pmap-c-que)# no queue-limit cos 3 10 mbytesswitch(config-pmap-c-que)#Related Commands
Command Descriptionrandom-detect
Configures weighted random early detection (WRED).
show policy-map
Displays policy maps and statistics.
random-detect
To configure weighted random early detection (WRED) on both ingress and egress queues by setting aggregate minimum and maximum packet drop threshold default values for specific class of service (CoS) values, use the random-detect command. To remove a WRED configuration, use the no form of this command.
random-detect {cos cos-list [minimum-threshold] {min-threshold [packets | bytes | kbytes | mbytes | ms | us] | percent min-percent-of-qsize} [maximum-threshold] {max-threshold [packets | bytes | kbytes | mbytes | ms | us] | percent max-percent-of-qsize}
no random-detect {cos cos-list [minimum-threshold] {min-threshold [packets | bytes | kbytes | mbytes | ms | us] | percent min-percent-of-qsize} [maximum-threshold] {max-threshold [packets | bytes | kbytes | mbytes | ms | us] | percent max-percent-of-qsize}
Syntax Description
Defaults
Thresholds are in packets by default.
The random-detect cos-based command must be specified for a queue to establish default thresholds for any CoS values that are not specified in random-detect commands for the same queue.
Command Modes
Policy map type queuing class configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
Note You must enter the random-detect cos-based command before you enter the random-detect command.
The minimum and maximum threshold units must match.
The system drops packets that exceed the minimum threshold at an increasing rate as the maximum threshold is reached. By default, the units are in packets,
WRED and tail drop cannot be configured in the same class. For information about configuring tail drop, see the queue-limit command.
You cannot configure WRED on ingress on the 10-Gigabit Ethernet ports.
For CoS lists, you can use the following:
•Specify only one value—cos 1
•Specify a range of values—cos 1-3
•Specify a comma-separated list of values—cos 1, 4-6
This command does not require a license.
Examples
This example shows how to configure WRED for a queue by setting the default WRED thresholds followed by thresholds that apply to CoS values 5 and 7:
switch(
config)#
policy-map type queuing match-first my_queueswitch(config-pmap-que)# class type queuing 1p3q4t-out-pq1switch(config-pmap-c-que)# random-detect cos-based aggregate 10 mbytes 20 mbytesswitch(config-pmap-c-que)# random-detect cos 5,7 15 mbytes 20 mbytesswitch(config-pmap-c-que)#This example shows how to configure WRED for a queue by setting the default WRED thresholds followed by queue buffer size thresholds that apply to CoS value 5:
switch(
config)#
policy-map type queuing match-first my_queueswitch(config-pmap-que)# class type queuing 1p3q4t-out-pq1switch(config-pmap-c-que)# random-detect cos-based aggregate 10 mbytes 20 mbytesswitch(config-pmap-c-que)# random-detect cos 5 percent 5 percent 15switch(config-pmap-c-que)#This example shows how to remove a WRED configuration from a policy map queuing class:
switch(
config)#
policy-map type queuing match-first my_queueswitch(config-pmap-que)# class type queuing 1p3q4t-out-pq1switch(config-pmap-c-que)# no random-detect cos-based aggregate 10 mbytes 20 mbytesswitch(config-pmap-c-que)# no random-detect cos 5 percent 5 percent 15switch(config-pmap-c-que)#Related Commands
Command Descriptionrandom-detect cos-based
Configures WRED.
queue limit
Configures tail drop.
show policy-map
Displays policy maps and statistics.
random-detect cos-based
To configure weighted random early detection (WRED) on both ingress and egress queues by setting minimum and maximum packet drop thresholds, use the random-detect cos-based command. To remove a WRED configuration, use the no form of this command.
random-detect cos-based [aggregate [minimum-threshold] {min-threshold [packets | bytes | kbytes | mbytes | ms | us] | percent min-percent-of-qsize} [maximum-threshold] {max-threshold [packets | bytes | kbytes | mbytes | ms | us] | percent max-percent-of-qsize}]
no random-detect cos-based [aggregate [minimum-threshold] {min-threshold [packets | bytes | kbytes | mbytes | ms | us] | percent min-percent-of-qsize} [maximum-threshold] {max-threshold [packets | bytes | kbytes | mbytes | ms | us] | percent max-percent-of-qsize}]
Syntax Description
Defaults
Thresholds are in packets by default.
Command Modes
Policy map type queuing class configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
The random-detect cos-based command is required when you configure WRED to establish default thresholds for class of service (CoS) values for which you do not define specific thresholds.
The minimum and maximum threshold units must match.
The system drops packets that exceed the minimum threshold at an increasing rate as the maximum threshold is reached. By default, the units are in packets,
WRED and tail drop cannot be configured in the same class. For information about configuring tail drop, see the queue-limit command.
Note You cannot configure WRED on ingress 10-Gigabit Ethernet ports.
This command does not require a license.
Examples
This example shows how to configure WRED for a queue by setting the default WRED thresholds followed by thresholds that apply to CoS values 5 and 7:
switch(
config)#
policy-map type queuing match-first my_queueswitch(config-pmap-que)# class type queuing 1p3q4t-out-pq1switch(config-pmap-c-que)# random-detect cos-based aggregate 10 mbytes 20 mbytesswitch(config-pmap-c-que)# random-detect cos 5,7 15 mbytes 20 mbytesswitch(config-pmap-c-que)#This example shows how to configure WRED for a queue by setting the default WRED thresholds followed by queue buffer size thresholds that apply to CoS value 5:
switch(
config)#
policy-map type queuing match-first my_queueswitch(config-pmap-que)# class type queuing 1p3q4t-out-pq1switch(config-pmap-c-que)# random-detect cos-based aggregate 10 mbytes 20 mbytesswitch(config-pmap-c-que)# random-detect cos 5 percent 5 percent 15switch(config-pmap-c-que)#This example shows how to remove a WRED configuration from a policy map queuing class:
switch(
config)#
policy-map type queuing match-first my_queueswitch(config-pmap-que)# class type queuing 1p3q4t-out-pq1switch(config-pmap-c-que)# no random-detect cos-based aggregate 10 mbytes 20 mbytesswitch(config-pmap-c-que)# no random-detect cos 5 percent 5 percent 15switch(config-pmap-c-que)#Related Commands
Command Descriptionrandom-detect
Configures WRED.
queue limit
Configures tail drop.
show policy-map
Displays policy maps and statistics.
service-policy
To attach a policy map to an interface, VLAN, or tunnel, use the service-policy command. To remove a service-policy from an interface, VLAN or tunnel, use the no form of this command.
service-policy [type {qos | queuing}] {input | output} {policy-map-name | qos-dynamic} [no-stats]
no service-policy [type {qos | queuing}] {input | output} {policy-map-name | qos-dynamic} [no-stats]
Syntax Description
Defaults
type default is qos.
No policies of type qos are active on an interface until the service-policy command is entered. The system-defined type queuing class maps are attached to each interface unless you specifically attach a different class map. For a list of the system-defined type queuing class maps, see Table 1.
Command Modes
Interface configuration
VLAN configurationSupported User Rolesnetwork-admin
vdc-adminCommand History
Release Modification5.x
Changed the Qos Config on vlan.
4.0
This command was introduced.
4.0(3)
Support for tunnel interfaces is added.
4.2(1)
The qos-dynamic variable was added.
Usage Guidelines
No policies of type qos are active on an interface until you enter the service-policy command. The system-defined type queuing class maps are attached to each interface unless you specifically attach a different class map.
You can attach one ingress and one egress type qos policy map to a port, port channel, tunnel, or VLAN. You can attach one ingress and one egress type queuing policy map to an interface of type port, port channel, tunnel, or VLAN.
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.
Note For more information on using service policies, see the Cisco Nexus 7000 Series NX-OS Quality of Service Configuration Guide, Release 5.0.
This command does not require a license.
Examples
This example shows how to attach qos type policy maps to the ingress and egress packets of a VLAN:
switch(
config)#
vlan configuration 111switch(config-vlan-config)# service-policy input pmap1switch(config-vlan-config)# service-policy output pmap1switch(config-vlan-config)#This example shows how to attach a queuing policy map to the ingress packets of a port interface:
switch(
config)#
interface ethernet 2/1switch(config-if)# service-policy type queuing input my_input_q_policyswitch(config-if)#This example shows how to remove a policy map from a VLAN:
switch(
config)#
vlan 1switch(config-vlan)# no service-policy input my_input_policyswitch(config-vlan)#Related Commands
Command Descriptionshow policy-map interface brief
Displays all interfaces and VLANs with attached service policies in a brief format.
service-policy type network-qos
To specify the type of network QoS policy, use the service-policy type network-qos command. To remove a service policy type network QoS, use the no form of this command.
service-policy type network-qos {default-nq-4e-policy | default-nq-6e-policy | default-nq-7e-policy | default-nq-8e-policy}
no service-policy type network-qos {default-nq-4e-policy | default-nq-6e-policy | default-nq-7e-policy | default-nq-8e-policy}
Syntax Description
Defaults
Default-nq-8e-policy is used by default.
Command Modes
Configuration mode.
Supported User Rolesnetwork-admin
Related Commands
Related Commands
Usage Guidelines
8E template is used if no policies of type network-qos under system qos. The network-qos is applied on all VDC and allsows to change the MTU on all F-type modules at system level. It also allows to change the congestion drop algorithm to burst or Mesh optimized.
Note For more information on using service policies, see the Cisco Nexus 7000 Series NX-OS Quality of Service Configuration Guide, Release 5.1(1).
This command does not require a license.
Examples
This example shows how to display the default 4 Ethernet policy:
switch(config)# system qos
switch(config-sys-qos)# service-policy type network-qos default-nq-4e-policy
switch(config-sys-qos)#Related Commands
Command Descriptionshow policy-map system
Displays the configured system Qos template which is currently applied on all VDCs.
set cos (policy map type qos)
To assign a class of service (CoS) value for a class of traffic in a type 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
Defaults
None
Command Modes
Policy map type qos class configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
You can use the set cos (policy map type qos) command only on type qos policies that are attached to egress ports.
This command does not require a license.
Examples
This example shows how to remove an assignment of CoS for a class of traffic in a type qos policy map:
switch(
config)#
policy-map my_policy1switch(config-pmap-qos)# class traffic_class2switch(config-pmap-c-qos)# no set cos 3switch(config-pmap-c-qos)#Related Commands
set cos (policy map type queuing)
To assign a class of service (CoS) value for untrusted ports in a type queuing policy map, use the set cos command. To remove the assigned value from the class, use the no form of this command.
set cos cos-value-queuing
no set cos cos-value-queuing
Syntax Description
cos cos-value-queuing
Specifies the CoS value to assign for this class of traffic. Valid values are from 0 to 7.
Defaults
None
Command Modes
Policy map type queuing class configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
You can only use this form of the set cos (policy map type queuing) command for ingress default type queuing classes. For a table of system-defined queuing class maps, see Table 1.
Note The CoS values that you set by using the set cos command apply to all packets that ingress the specified interfaces (not just to the class-default packets that ingress the interfaces).
If you set the CoS value, the device modifies the value before ingress queuing and scheduling so that the CoS-modified packets are classified differently.
This command does not require a license.
Examples
This example shows how to assign a CoS value for a class of traffic in a queuing policy map:
switch(
config)#
policy-map type queuing match-first my_queuing_policy1switch(config-pmap-que)# class type queuing 2q4t-in-q-defaultswitch(config-pmap-c-que)# set cos 3switch(config-pmap-c-que)#This example shows how to remove a CoS assignment for a class of traffic in a queuing policy map:
switch(
config)#
policy-map type queuing match-first my_queuing_policy1switch(config-pmap-que)# class type queuing 2q4t-in-q-defaultswitch(config-pmap-c-que)# no set cos 3switch(config-pmap-c-que)#Related Commands
set discard-class
To assign a discard-class value for a class of traffic in a type qos policy map, use the set discard-class command. To leave the discard-class values unchanged, use the no form of this command.
set discard-class discard-value
no set discard-class discard-value
Syntax Description
discard-value
Discard-class value to assign for this class of traffic. Valid values are from 0 to 63.
Defaults
None
Command Modes
Policy map type qos class configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
You can set the discard-class value only in ingress policies.
Note If you configure this value, you cannot configure a value by using the set dscp or the set precedence command.
This command does not require a license.
Examples
This example shows how to assign the discard-class value for a class of traffic in a type qos policy map:
switch(
config)#
policy-map my_policy1switch(config-pmap-qos)# class traffic_class2switch(config-pmap-c-qos)# set discard-class 40switch(config-pmap-c-qos)#Related Commands
set dscp (QoS)
To assign a Differentiated Services Code Point (DSCP) value for a class of traffic in a type qos policy map, use the set dscp command. To remove a previously set DSCP value, use the no form of this command.
set dscp [tunnel] dscp-value
no set dscp [tunnel] dscp-value
Syntax Description
Defaults
None
Command Modes
Policy map type qos class configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
For a list of standard DSCP values, see Table 2.
Note If you configure this value, you cannot configure a value by the set discard-class or set precedence command.
This command does not require a license.
Examples
This example shows how to assign DSCP for a class of traffic in a type qos policy map:
switch(
config)#
policy-map my_policy1switch(config-pmap-qos)# class traffic_class2switch(config-pmap-c-qos)# set cos 3switch(config-pmap-c-qos)#Related Commands
set precedence (QoS)
To set precedence value in an IP header for a class of traffic in a type qos policy map, use the set precedence command. To leave the precedence value unchanged for the class, use the no form of this command.
set precedence [tunnel] precedence-value
no set precedence [tunnel] precedence-value
Syntax Description
Defaults
None
Command Modes
Policy map type qos class configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
For a list of the IP precedence values, see Table 3.
The device rewrites the last 3 bits of the Type of Service (ToS) field in the IP header to 0 for packets that match this class.
Note If you configure this value, you cannot configure a value by using the set discard-class or set dscp command.
This command does not require a license.
Examples
This example shows how to set the IP precedence value for a class of traffic in a type qos policy map:
switch(
config)#
policy-map policy1switch(config-pmap-qos)# class class2switch(config-pmap-c-qos)# set precedence 3switch(config-pmap-c-qos)#Related Commands
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. Valid values are from 0 to 126.
Defaults
None
Command Modes
Policy map type qos class configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
You can set the QoS group identifier value only in ingress policies.
This command does not require a license.
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_policy1switch(config-pmap-qos)# class traffic_class2switch(config-pmap-c-qos)# set qos-group 100switch(config-pmap-c-qos)#Related Commands
set table
To define a mapping between two fields for a class of traffic in a type qos policy map, use the set table command. To remove the assigned mapping from the class, use the no form of this command.
set header-parameter {same-header-parameter | output-header-parameter} table {table-map-name | mutation-map}
no set header-parameter {same-header-parameter | output-header-parameter} table {table-map-name | mutation-map}
Syntax Description
Defaults
None
Command Modes
Policy map type qos class configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
4.1(2)
You can set only similar values when you create a mutation map. For example, you can set cos-cos or dscp-dscp; you cannot set cos-dscp or dscp-precedence.
Usage Guidelines
The system-defined table maps used in the set table command are shown in Table 5.
Note You can set only similar values when you create a mutation map. For example, you can set cos-cos or dscp-dscp; you cannot set cos-dscp or dscp-precedence.
This command does not require a license.
Examples
This example shows how to perform mutation mapping for a class of traffic in a type qos policy map based on input DSCP, and output IP precedence using a system-defined table map:
switch(
config)#
policy-map my_policy1switch(config-pmap-qos)# class traffic_class2switch(config-pmap-c-qos)# set dscp precedence table dscp-precedence-mapswitch(config-pmap-c-qos)#This example shows how to perform mutation mapping for a class of traffic in a type qos policy map based on input DSCP and output IP precedence by using a user-defined table map:
switch(
config)#
policy-map my_policy1switch(config-pmap-qos)# class class_defaultswitch(config-pmap-c-qos)# set dscp dscp table my_tableswitch(config-pmap-c-qos)#Related Commands
shape
To configure shaping on an egress queue to impose a maximum rate on it, use the shape command. To remove a shaping configuration, use the no form of this command.
shape [average] {average-rate [bps | kbps | mbps | gbps] | percent percent-rate}
no shape [average] {average-rate [bps | kbps | mbps | gbps] | percent percent-rate}
Syntax Description
Defaults
bps is default data rate.
Command Modes
Global configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
You can use the system-defined egress queue class for the type of module to which you want to apply the policy map. For a list of the system-defined type queuing class maps, see Table 1.
The device forces the shape rate to the closest value in the following percentage intervals: 100, 50,33, 25, 12.5, 6.25, 3.13, or 1.07.
Note If you configure shaping, you cannot configure bandwidth or priority in the same policy map.
This command does not require a license.
Examples
This example shows how to apply shaping based on a percentage rate to a policy map type queuing class:
switch(
config)#
policy-map type queuing match-first my_queueswitch(config-pmap-que)# class type queuing 1p3q4t-out-pq1switch(config-pmap-c-que)# shape percent 25switch(config-pmap-c-que)#This example shows how to apply shaping based on an average rate to a policy map type queuing class:
switch(
config)#
policy-map type queuing match-first my_queueswitch(config-pmap-que)# class type queuing 1p3q4t-out-pq1switch(config-pmap-c-que)# shape 500 mbpsswitch(config-pmap-c-que)#This example shows how to remove a shaping configuration from a policy map type queuing class:
switch(
config)#
policy-map type queuing match-first my_queueswitch(config-pmap-que)# class type queuing 1p3q4t-out-pq1switch(config-pmap-c-que)# no shape percent 25switch(config-pmap-c-que)#Related Commands
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
Syntax Description
This command has no arguments or keywords.
Defaults
None
Command Modes
Any
Supported User Rolesnetwork-admin
network-operator
vdc-admin
vdc-operatorCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to display the type network-qos class maps:
switch# show class-map type network-qos
Type network-qos class-maps===========================class-map type network-qos match-any c-nq-8eDescription: 8E Drop CoS mapmatch cos 0-7class-map type network-qos match-any c-nq-4e-dropDescription: 4E Drop CoS mapmatch cos 0,5-7class-map type network-qos match-any c-nq-6e-dropDescription: 6E Drop CoS mapmatch cos 0-2,5-7class-map type network-qos match-any c-nq-7e-dropDescription: 7E Drop CoS mapmatch cos 0-2,4-7class-map type network-qos match-any c-nq-4e-ndropDescription: 4E No-Drop CoS mapmatch cos 1-2,4class-map type network-qos match-any c-nq-6e-ndropDescription: 6E No-Drop CoS mapmatch cos 4class-map type network-qos match-any c-nq-4e-ndrop-fcoeDescription: 4E No-Drop FCoE CoS mapmatch cos 3match protocol fcoeclass-map type network-qos match-any c-nq-6e-ndrop-fcoeDescription: 6E No-Drop FCoE CoS mapmatch cos 3match protocol fcoeclass-map type network-qos match-any c-nq-7e-ndrop-fcoeDescription: 7E No-Drop FCoE CoS mapmatch cos 3match protocol fcoeRelated Commands
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 | color-class-map-name]
Syntax Description
class-map-name
(Optional) Named class map. The name class-default is reserved.
color-class-map-name
(Optional) System-defined color class map.
Defaults
Displays all type qos class maps if no class map name is specified.
Command Modes
Any command mode
Supported User Rolesnetwork-admin
network-operator
vdc-admin
vdc-operatorCommand History
Usage Guidelines
Table 6 displays the list of system-defined class maps that display with this command.
When you enter the command show class-map with no arguments or keywords, the system also displays the Control Plane Policing (CoPP) configuration.
This command does not require a license.
Examples
This example shows how to display all type qos class maps:
switch(
config)#
show class-map type qosType qos class-maps====================class-map type qos match-all abcmatch dscp 0-3class-map type qos conform-color-inDescription: Conform color map in input directionclass-map type qos conform-color-outDescription: Conform color map in output directionclass-map type qos exceed-color-inDescription: Exceed color map in input directionclass-map type qos exceed-color-outDescription: exceed color map in output directionRelated Commands
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
Defaults
Displays all type queuing class maps if no class map name is specified.
Command Modes
Any command mode
Supported User Rolesnetwork-admin
network-operator
vdc-admin
vdc-operatorCommand History
Usage Guidelines
For a list of the system-defined type queuing class maps, see Table 1.
This command does not require a license.
Examples
This example shows how to display all type queuing class maps:
switch(
config)#
show class-map type queuingType queuing class-maps========================class-map type queuing match-any 2q4t-in-q1Description: Classifier for ingress queue 1 of type 2q4tmatch cos 5-7class-map type queuing match-any 2q4t-in-q-defaultDescription: Classifier for ingress default queue of type 2q4tmatch cos 0-4class-map type queuing match-any 8q2t-in-q1Description: Classifier for ingress queue 1 of type 8q2tmatch cos 5-7class-map type queuing match-any 8q2t-in-q2Description: Classifier for ingress queue 2 of type 8q2tclass-map type queuing match-any 8q2t-in-q3Description: Classifier for ingress queue 3 of type 8q2tclass-map type queuing match-any 8q2t-in-q4Description: Classifier for ingress queue 4 of type 8q2tclass-map type queuing match-any 8q2t-in-q5Description: Classifier for ingress queue 5 of type 8q2tclass-map type queuing match-any 8q2t-in-q6Description: Classifier for ingress queue 6 of type 8q2tclass-map type queuing match-any 8q2t-in-q7Description: Classifier for ingress queue 7 of type 8q2tclass-map type queuing match-any 8q2t-in-q-defaultDescription: Classifier for ingress default queue of type 8q2tmatch cos 0-4class-map type queuing match-any 1p3q4t-out-pq1Description: Classifier for egress priority queue of type 1p3q4tmatch cos 5-7class-map type queuing match-any 1p3q4t-out-q2Description: Classifier for egress queue 2 of type 1p3q4tclass-map type queuing match-any 1p3q4t-out-q3Description: Classifier for egress queue 3 of type 1p3q4tclass-map type queuing match-any 1p3q4t-out-q-defaultDescription: Classifier for egress default queue of type 1p3q4tmatch cos 0-4class-map type queuing match-any 1p7q4t-out-pq1Description: Classifier for egress priority queue of type 1p7q4tmatch cos 5-7class-map type queuing match-any 1p7q4t-out-q2Description: Classifier for egress queue 2 of type 1p7q4tclass-map type queuing match-any 1p7q4t-out-q3Description: Classifier for egress queue 3 of type 1p7q4tclass-map type queuing match-any 1p7q4t-out-q4Description: Classifier for egress queue 4 of type 1p7q4tclass-map type queuing match-any 1p7q4t-out-q5Description: Classifier for egress queue 5 of type 1p7q4tclass-map type queuing match-any 1p7q4t-out-q6Description: Classifier for egress queue 6 of type 1p7q4tclass-map type queuing match-any 1p7q4t-out-q7Description: Classifier for egress queue 7 of type 1p7q4tclass-map type queuing match-any 1p7q4t-out-q-defaultDescription: Classifier for egress default queue of type 1p7q4tmatch cos 0-4Related Commands
show interface priority-flow-control
To display the status of priority flow control (PFC) on all interfaces, use the show interface priority-flow-control command.
show interface priority-flow-control
Syntax Description
This command has no arguments or keywords.
Defaults
None
Command Modes
Any
Supported User Rolesnetwork-admin
network-operator
vdc-admin
vdc-operatorCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to display the status of PFC on all interfaces:
switch# show interface priority-flow-control=====================================Interface Admin Oper=====================================Ethernet5/1 Auto OffEthernet5/2 Auto OffEthernet5/3 Auto OffEthernet5/4 Auto OffEthernet5/5 On OnEthernet5/6 Auto OffEthernet5/7 Auto OffEthernet5/8 Auto OffEthernet5/9 Auto OffEthernet5/10 Auto OffEthernet5/11 Auto OffEthernet5/12 Auto OffEthernet5/13 Auto OffEthernet5/14 Auto OffEthernet5/15 Auto OffEthernet5/16 Auto OffEthernet5/17 Auto OffEthernet5/18 Auto OffEthernet5/19 Auto OffEthernet5/20 Auto OffEthernet5/21 Auto Off--More--Related Commands
show policy-map
To display policy maps and statistics, use the show policy-map command.
show policy-map [type {qos | queuing}] [policy-map-name | qos-dynamic]
Syntax Description
Defaults
None
Command Modes
Any command mode
Supported User Rolesnetwork-admin
network-operator
vdc-admin
vdc-operatorCommand History
Release Modification4.0
This command was introduced.
4.0(3)
The WRR for the type queuing default-in-policy was changed from 50/50 to 80/20.
4.2(1)
The qos-dynamic variable was added.
Usage Guidelines
When you enter the command show policy-map with no arguments or keywords, the system also displays the Control Plane Policing (CoPP) information.
This command does not require a license.
Examples
This example shows how to display a named policy map:
switch(
config)#
show policy-map abcType qos policy-maps====================policy-map type qos abcclass abcset dscp 3set qos-group 3set cos dscp table cos-dscp-mapclass class-defaultThis example shows how to display all type queuing policy maps:
switch(
config)#
show policy-map type queuingType queuing policy-maps========================policy-map type queuing q1class type queuing 8q2t-in-q-defaultset cos 4policy-map type queuing default-in-policyclass type queuing in-q1queue-limit percent 50bandwidth percent 80class type queuing in-q-defaultqueue-limit percent 50bandwidth percent 20policy-map type queuing default-out-policyclass type queuing out-pq1priority level 1queue-limit percent 16class type queuing out-q2queue-limit percent 1class type queuing out-q3queue-limit percent 1class type queuing out-q-defaultqueue-limit percent 82bandwidth remaining percent 25Related Commands
show policy-map interface
To display policy maps and statistics for 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
Defaults
None.
Command Modes
Any command mode
Supported User Rolesnetwork-admin
network-operator
vdc-admin
vdc-operatorCommand History
Usage Guidelines
By default, statistics are set to On.
This command does not require a license.
Examples
This example shows how to display policy maps that are assigned to a specified interface:
switch(
config)#
show policy-map interface ethernet 2/10Global statistics status : enabledEthernet2/10Service-policy (queuing) input: default-in-policypolicy statistics status: enabledClass-map (queuing): in-q1 (match-any)queue-limit percent 50bandwidth percent 50queue dropped pkts : 0Class-map (queuing): in-q-default (match-any)queue-limit percent 50bandwidth percent 80queue dropped pkts : 0Service-policy (queuing) output: default-out-policypolicy statistics status: enabledClass-map (queuing): out-pq1 (match-any)priority level 1queue-limit percent 16queue dropped pkts : 0Class-map (queuing): out-q2 (match-any)queue-limit percent 1queue dropped pkts : 0Class-map (queuing): out-q3 (match-any)queue-limit percent 1queue dropped pkts : 0Class-map (queuing): out-q-default (match-any)queue-limit percent 82bandwidth remaining percent 25queue dropped pkts : 0This example shows how to display policy maps that are assigned to a specified interface:
switch(
config)#
show policy-map interface ethernet 2/2 type qosGlobal statistics status : enabledEthernet2/2Service-policy (qos) input: pmap policy statistics status: enabledClass-map (qos): map (match-all) 1000000 packets Match: dscp 46 police cir percent 20 bc 200 ms conformed 78962304 bytes, 2725540 bps action: transmit violated 49037696 bytes, 1692633 bps action: dropClass-map (qos): class-default (match-any) 1000000 packets police cir percent 10 bc 200 ms conformed 39481856 bytes, 1362794 bps action: transmit violated 88518144 bytes, 3055378 bps action: dropRelated Commands
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
Supported User Rolesnetwork-admin
network-operator
vdc-admin
vdc-operatorCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to display assigned policy maps in a brief format:
switch(
config)#
show policy-map interface briefInterface/VLAN [Status]:INP QOS OUT QOS INP QUE OUT QUE================================================================================port-channel5 [Active]: default-in-po default-out-pport-channel20 [Active]: default-in-po default-out-pport-channel30 [Active]: default-in-po default-out-pport-channel37 [Active]: default-in-po default-out-pport-channel50 [Active]: default-in-po default-out-pEthernet2/2 [Active]: default-in-po default-out-pEthernet2/3 [Active]: default-in-po default-out-p==================================================================================Related Commands
show policy-map system type network-qos
To display the active type network-qos policy maps, use the show policy-map system type network-qos command.
show policy-map system type network-qos
Syntax Description
This command has no arguments or keywords.
Defaults
None
Command Modes
Any
Supported User Rolesnetwork-admin
network-operator
vdc-admin
vdc-operatorCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to display the active type network-qos policy maps:
switch# show policy-map system type network-qos
Type network-qos policy-maps============================policy-map type network-qos default-nq-4e-policyclass type network-qos c-nq-4e-dropmatch cos 0,5-7congestion-control tail-dropmtu 1500class type network-qos c-nq-4e-ndrop-fcoematch cos 3match protocol fcoepausemtu 2112class type network-qos c-nq-4e-ndropmatch cos 1-2,4pausemtu 1500Related Commands
Command Descriptionshow policy-map type network-qos
Displays the type network qos policy maps.
show policy-map
Displays policy maps and statistics.
show policy-map type network-qos
To display the type network-qos policy maps, use the show policy-map type network-qos command.
show policy-map type network-qos {default-nq-4e-policy | default-nq-6e-policy| default-nq-7e-policy| default-nq-8e-policy}
Syntax Description
Defaults
VDC only
Command Modes
Any
Supported User Rolesnetwork-admin
network-operator
vdc-admin
vdc-operatorCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to display the type network-qos policy maps:
switch# show policy-map type network-qos
Type network-qos policy-maps============================policy-map type network-qos default-nq-4e-policyclass type network-qos c-nq-4e-dropcongestion-control tail-dropmtu 1500class type network-qos c-nq-4e-ndrop-fcoepausemtu 2112class type network-qos c-nq-4e-ndroppausemtu 1500policy-map type network-qos default-nq-6e-policyclass type network-qos c-nq-6e-dropcongestion-control tail-dropmtu 1500class type network-qos c-nq-6e-ndrop-fcoepausemtu 2112class type network-qos c-nq-6e-ndroppausemtu 1500policy-map type network-qos default-nq-7e-policyclass type network-qos c-nq-7e-dropcongestion-control tail-dropmtu 1500class type network-qos c-nq-7e-ndrop-fcoepausemtu 2112policy-map type network-qos default-nq-8e-policyclass type network-qos c-nq-8econgestion-control tail-dropmtu 1500The following example shows how to display default 4 ethernet policy:
switch# show policy-map type network-qos default-nq-4e-policy
Type network-qos policy-maps============================policy-map type network-qos default-nq-4e-policyclass type network-qos c-nq-4e-dropcongestion-control tail-dropmtu 1500class type network-qos c-nq-4e-ndrop-fcoepausemtu 2112class type network-qos c-nq-4e-ndroppausemtu 2112switch#Related Commands
Command Descriptionshow policy-map
Displays policy maps and statistics.
show policy
Displays configured network policies.
show policy-map vlan
To display policy maps for the VLANs, use the show policy-map vlan command.
show policy-map vlan [vlan-id] [input | output] [type {qos | queuing}]
Syntax Description
Defaults
None
Command Modes
Any command mode
Supported User Rolesnetwork-admin
network-operator
vdc-admin
vdc-operatorCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to display policy maps that are assigned to all VLANs:
switch(
config)#
show policy-map vlanGlobal statistics status : enabledVlan 1Service-policy (qos) input: abcpolicy statistics status: enabledClass-map (qos): abc (match-all)Match: dscp 0-3set dscp 3set qos-group 3set cos dscp table cos-dscp-mapClass-map (qos): class-default (match-any)Service-policy (qos) output: defpolicy statistics status: enabledRelated Commands
show qos dcbxp
To display the Data Center Bridging Capability Exchange Protocol (DCBXP) information on all interfaces, use the show qos dcbxp command.
show qos dcbxp {incompatibility [interface {ethernet slot/port-number} | info}
Syntax Description
Command Default
None
Command Modes
Any
Supported User Rolesnetwork-admin
network-operator
vdc-admin
vdc-operatorCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to display the status of DCBXP on all interfaces:
switch# show qos dcbxp infoInterface PFC_rcvd/cmptble PG_rcvd/cmptble MTU_rcvd/cmptble FCOE_rcvd/cmptble----------------------------------------------------------------------Ethernet5/1 No/No No/No No/No No/NoEthernet5/2 No/No No/No No/No No/NoEthernet5/3 No/No No/No No/No No/NoEthernet5/4 No/No No/No No/No No/NoEthernet5/5 Yes/No No/No No/No No/NoEthernet5/6 No/No No/No No/No No/NoEthernet5/7 Yes/No No/No Yes/No No/NoEthernet5/8 No/No No/No No/No No/NoEthernet5/9 No/No No/No No/No No/NoEthernet5/10 No/No No/No No/No No/NoEthernet5/11 No/No No/No No/No No/NoEthernet5/12 No/No No/No No/No No/NoEthernet5/13 No/No No/No No/No No/NoEthernet5/14 No/No No/No No/No No/NoEthernet5/15 No/No No/No No/No No/NoEthernet5/16 No/No No/No No/No No/NoEthernet5/17 No/No No/No No/No No/NoEthernet5/18 No/No No/No No/No No/NoEthernet5/19 No/No No/No No/No No/NoEthernet5/20 No/No No/No No/No No/NoEthernet5/21 No/No No/No No/No No/NoEthernet5/22 No/No No/No No/No No/NoEthernet5/23 No/No No/No No/No No/NoEthernet5/24 No/No No/No No/No No/NoEthernet5/25 No/No No/No No/No No/NoEthernet5/26 No/No No/No No/No No/NoEthernet5/27 No/No No/No No/No No/NoEthernet5/28 No/No No/No No/No No/NoEthernet5/29 No/No No/No No/No No/NoEthernet5/30 No/No No/No No/No No/NoEthernet5/31 No/No No/No No/No No/NoEthernet5/32 No/No No/No No/No No/Noswitch#Related Commands
Command Descriptionshow interface priority-flow-control
Displays the status of priority flow control (PFC) on all interfaces.
show qos shared-policer
To display qos shared policers, use the show qos shared-policer command.
show qos shared policer [type qos] [policer-name]
Syntax Description
type qos
(Optional) Specifies the type qos policers.
policer-name
(Optional) Specified policer name.
Defaults
None
Command Modes
Any command mode
Supported User Rolesnetwork-admin
network-operator
vdc-admin
vdc-operatorCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to display all type qos policers:
switch(
config)#
show qos shared-policerswitch(
config)#
qos shared-policer foo cir 300 mbps bc 200 ms conform transmit violate dropRelated Commands
show queuing interface
To display queuing information on a specified interface, use the show queuing interface command.
show queuing interface {ethernet slot/port}summary
Syntax Description
ethernet
Specifies the Ethernet interface.
slot/port
Module number and the port number for which you want to display the queuing information.
summary
Specifies the summary.
Defaults
None
Command Modes
Any command mode
Supported User Rolesnetwork-admin
network-operator
vdc-admin
vdc-operatorCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to display the queuing information for a specified interface:
switch#
show queuing interface ethernet 2/9Interface Ethernet2/9 TX Queuing strategy: Weighted Round-RobinPort QoS is enabledQueuing Mode in TX direction: mode-cosTransmit queues [type = 1p3q4t]Queue Id Scheduling Num of thresholds_____________________________________________________________1p3q4t-out-q-default WRR 041p3q4t-out-q2 WRR 041p3q4t-out-q3 WRR 041p3q4t-out-pq1 Priority 04Configured WRRWRR bandwidth ratios: 25[1p3q4t-out-q-default] 38[1p3q4t-out-q2] 37[1p3q4t-out-q3]WRR configuration read from HWWRR bandwidth ratios: 24[1p3q4t-out-q-default] 37[1p3q4t-out-q2] 37[1p3q4t-out-q3]Configured queue-limit ratiosqueue-limit ratios: 82[1p3q4t-out-q-default] 1[1p3q4t-out-q2] 1[1p3q4t-out-q3] 16[1p3q4t-out-pq1]queue-limit ratios configuration read from HWqueue-limit ratios: 82[1p3q4t-out-q-default] 1[1p3q4t-out-q2] 1[1p3q4t-out-q3] 16[1p3q4t-out-pq1]Thresholds:COS Queue Threshold Type Min Max__________________________________________________________________0 1p3q4t-out-q-default DT 100 1001 1p3q4t-out-q-default DT 100 1002 1p3q4t-out-q-default DT 100 1003 1p3q4t-out-q-default DT 100 1004 1p3q4t-out-q-default DT 100 1005 1p3q4t-out-pq1 DT 100 1006 1p3q4t-out-pq1 DT 100 1007 1p3q4t-out-pq1 DT 100 100Interface Ethernet2/9 RX Queuing strategy: Weighted Round-RobinQueuing Mode in RX direction: mode-cosReceive queues [type = 2q4t]Port Cos not configuredQueue Id Scheduling Num of thresholds____________________________________________________________2q4t-in-q-default WRR 042q4t-in-q1 WRR 04Configured WRRWRR bandwidth ratios: 50[2q4t-in-q-default] 50[2q4t-in-q1]WRR configuration read from HWWRR bandwidth ratios: 50[2q4t-in-q-default] 50[2q4t-in-q1]Configured queue-limit ratiosqueue-limit ratios: 50[2q4t-in-q-default] 50[2q4t-in-q1]queue-limit ratios configuration read from HWqueue-limit ratios: 50[2q4t-in-q-default] 50[2q4t-in-q1]Thresholds:COS Queue Threshold Type Min Max__________________________________________________________________0 2q4t-in-q-default DT 100 1001 2q4t-in-q-default DT 100 1002 2q4t-in-q-default DT 100 1003 2q4t-in-q-default DT 100 1004 2q4t-in-q-default DT 100 1005 2q4t-in-q1 DT 100 1006 2q4t-in-q1 DT 100 1007 2q4t-in-q1 DT 100 100Related Commands
Command Descriptionshow class-map type queuing
Displays information about the class maps type queuing.
show policy-map type queuing
Displays information about the policy maps type queuing.
show running-config ipqos
To display information about the running-system configuration for quality of service (QoS), use the show running-config ipqos command.
show running-config ipqos [all]
Syntax Description
Defaults
None
Command Modes
Any command mode
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to display QoS information:
switch(
config)#
show running-config ipqosversion 4.0(3)qos statisticsclass-map type qos match-all abcmatch dscp 0-3class-map type qos match-all qqqclass-map type qos match-all class1class-map type qos match-all cmapdefclass-map type qos match-all my_testmatch cos 5class-map type qos match-all my_classmatch discard-class 56class-map type qos match-all class_aclclass-map type qos match-all class_protocolclass-map conform-color-inclass-map conform-color-outclass-map exceed-color-inclass-map exceed-color-outclass-map type queuing match-any 2q4t-in-q1match cos 5-7class-map type queuing match-any 2q4t-in-q-defaultmatch cos 0-4class-map type queuing match-any 8q2t-in-q1match cos 5-7class-map type queuing match-any 8q2t-in-q2class-map type queuing match-any 8q2t-in-q3class-map type queuing match-any 8q2t-in-q4class-map type queuing match-any 8q2t-in-q5class-map type queuing match-any 8q2t-in-q6class-map type queuing match-any 8q2t-in-q7class-map type queuing match-any 8q2t-in-q-defaultmatch cos 0-4class-map type queuing match-any 1p3q4t-out-pq1match cos 5-7class-map type queuing match-any 1p3q4t-out-q2class-map type queuing match-any 1p3q4t-out-q3class-map type queuing match-any 1p3q4t-out-q-defaultmatch cos 0-4class-map type queuing match-any 1p7q4t-out-pq1match cos 5-7class-map type queuing match-any 1p7q4t-out-q2class-map type queuing match-any 1p7q4t-out-q3class-map type queuing match-any 1p7q4t-out-q4class-map type queuing match-any 1p7q4t-out-q5class-map type queuing match-any 1p7q4t-out-q6class-map type queuing match-any 1p7q4t-out-q7class-map type queuing match-any 1p7q4t-out-q-defaultmatch cos 0-4table-map cir-markdown-mapdefault copyfrom 10,12 to 12from 18,20 to 20from 26,28 to 28from 34,36 to 36table-map pir-markdown-mapdefault copyfrom 10,12 to 14from 18,20 to 22from 26,28 to 30from 34,36 to 38table-map cos-dscp-mapdefault copyfrom 0 to 2table-map cos-precedence-mapdefault copytable-map cos-discard-class-mapdefault copytable-map dscp-cos-mapdefault copytable-map dscp-precedence-mapdefault copytable-map dscp-discard-class-mapdefault copytable-map precedence-cos-mapdefault copytable-map precedence-dscp-mapdefault copytable-map precedence-discard-class-mapdefault copytable-map discard-class-cos-mapdefault copytable-map discard-class-dscp-mapdefault copytable-map discard-class-precedence-mapdefault copytable-map t1default copytable-map abcdefault copytable-map my_table1default copytable-map steve_tm2default 3table-map steve_table_mapdefault ignorepolicy-map type queuing qpolicy-map type queuing pqclass type queuing 8q2t-in-q4queue-limit cos 3 1000 packetsqueue-limit cos 4 1000 packetsqueue-limit 10000 packetspolicy-map type queuing q1policy-map type queuing q2class type queuing 1p3q4t-out-pq1policy-map type queuing p_qclass type queuing 8q2t-in-q4class type queuing 8q2t-in-q-defaultset cos 4policy-map type queuing abcqclass type queuing 8q2t-in-q4policy-map type queuing p_q2class type queuing 1p7q4t-out-q2shape average percent 10policy-map type queuing steve_qclass type queuing 1p7q4t-out-pq1class type queuing 1p7q4t-out-q4class type queuing 1p7q4t-out-q2policy-map type queuing my_queueclass type queuing 1p3q4t-out-pq1policy-map type queuing steve_pq1class type queuing 1p3q4t-out-pq1policy-map type qos abcclass abcswitch# show running-config ipqosversion 4.0(3)class-map type qos match-all abcmatch dscp 0-3class-map type qos match-all qqqclass-map type qos match-all class1class-map type qos match-all cmapdefclass-map type qos match-all my_testmatch cos 5class-map type qos match-all my_classmatch discard-class 56class-map type qos match-all class_aclclass-map type qos match-all class_protocoltable-map cos-dscp-mapdefault copyfrom 0 to 2table-map t1default copytable-map abcdefault copytable-map my_table1default copytable-map steve_tm2default 3table-map steve_table_mapdefault ignorepolicy-map type queuing qpolicy-map type queuing pqclass type queuing 8q2t-in-q4queue-limit cos 3 1000 packetsqueue-limit cos 4 1000 packetsqueue-limit 10000 packetspolicy-map type queuing q1policy-map type queuing q2class type queuing 1p3q4t-out-pq1policy-map type queuing p_qclass type queuing 8q2t-in-q4class type queuing 8q2t-in-q-defaultset cos 4policy-map type queuing abcqclass type queuing 8q2t-in-q4policy-map type queuing p_q2class type queuing 1p7q4t-out-q2shape average percent 10policy-map type queuing steve_qclass type queuing 1p7q4t-out-pq1class type queuing 1p7q4t-out-q4class type queuing 1p7q4t-out-q2policy-map type queuing my_queueclass type queuing 1p3q4t-out-pq1policy-map type queuing steve_pq1class type queuing 1p3q4t-out-pq1policy-map type qos abcclass abcset dscp 3set qos-group 3set cos dscp table cos-dscp-mapclass class-defaultpolicy-map type qos defpolicy-map type qos policy1class class-defaultclass class1policy-map type qos polilcy1policy-map type qos my_policyclass class-defaultpolicy-map type qos my_policy1policy-map type queuing my_policy1class type queuing 1p7q4t-out-q2policy-map type queuing shape_queueclass type queuing 1p3q4t-out-pq1queue-limit 38984 packetsrandom-detect cos-basedpolicy-map type queuing shape_queuesclass type queuing 1p3q4t-out-pq1policy-map type queuing 1p3q4t-out-pq1policy-map type queuing untrusted_port_cosclass type queuing 2q4t-in-q-defaultinterface Ethernet2/4service-policy type qos input abcservice-policy type qos output defservice-policy type queuing output q1Related Commands
Command Descriptionshow class-map
Displays information about class maps.
show policy-map
Displays statistics and information about policy maps.
show table-map
To display table maps, use the show table-map command.
show table-map [table-map-name | default-table-map-name]
Syntax Description
table-map-name
(Optional) User-defined named table map.
default-table-map-name
(Optional) System-defined default table map.
Defaults
None
Command Modes
Global configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
For a list of the system-defined table maps, see Table 5.
In Cisco NX-OS Release 4.0.2 and later releases, the display shows only one of the following:
•The default copy if you have not configured any changes to the table map.
•The changes you configured to the table map.
This command does not require a license.
Examples
In the Cisco NX-OS Release 4.0.2 and later releases, the following example shows how to display a system-defined table map:
switch(config-pmap-c-qos)# show table-map cos-dscp-mapTable-map cos-dscp-mapdefault copyThis example shows how to display a system-defined table map:
switch(
config)#
show table-map cos-dscp-mapTable-map cos-dscp-mapfrom 0 to 0from 1 to 1from 2 to 2from 3 to 3from 4 to 4from 5 to 5from 6 to 6from 7 to 7Related Commands
table-map
To create or modify a table map and enter the table map configuration mode, use the table-map command. To remove a table map, use the no form of this command.
table-map {table-map-name | default-table-map-name}
no table-map {table-map-name | default-table-map-name}
Syntax Description
table-map-name
Name of an existing or new user-defined table map.
default-table-map-name
Name of a system-defined table map.
Defaults
None
Command Modes
Global configuration
Supported User Rolesnetwork-admin
vdc-adminCommand History
Usage Guidelines
Note You cannot modify the system-defined table maps. For a list of the system-defined table maps, see Table 5.
This command does not require a license.
Examples
This example shows how to create or modify a table map:
switch(
config)#
table-map my_table1switch(config-tmap)#This example shows how to remove a table map:
switch(
config)#
no table-map my_table1switch(config)#Related Commands