C Commands
This chapter describes the Cisco NX-OS quality of service (QoS) commands that begin with C.
class (control plane policy map)
To specify a control plane class map for a control plane policy map, use the class command. To delete a control plane class map from a control plane policy map, use the no form of this command.
class { class-map-name [ insert-before class-map-name2 ]}
Syntax Description
Command Default
Command Modes
Control plane policy map configuration
Command History
|
|
Usage Guidelines
You must create the control plane class maps before you reference them in this command.
Examples
This example shows how to configure a class map for a control plane policy map:
Related Commands
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
Syntax Description
Command Default
Command Modes
Policy map type qos configuration
Command History
|
|
Usage Guidelines
Policy actions in the first class that matches the traffic type are performed.
By default, the class-default class of type qos is created under every policy map of type qos in the system and it is mapped to the QoS group 0. You cannot change this mapping.
You cannot remove the class-default of type qos. If you attempt to delete the class-default class, the switch returns an error message.
Examples
This example shows how to add a reference to a qos class map at the end of a policy map:
switch(
config)#
policy-map my_policy1
This example shows how to remove a class map reference in a policy map:
switch(
config)#
policy-map my_policy1
Related Commands
|
|
---|---|
class class-default
To add a reference to the system default class that does not match any traffic class, use the class class-default command. To remove the system default class from the policy map, use the no form of this command.
Syntax Description
Command Default
Command Modes
QoS policy map configuration mode
Control-plane policy map configuration mode
QoS policy map in switch profile configuration mode
Command History
|
|
---|---|
Usage Guidelines
Traffic that fails to match any class is assigned to a default class of traffic called class-default. You cannot delete this class.
Examples
This example shows how to add a reference to the system default class at the end of a policy map in a switch profile:
Related Commands
|
|
---|---|
Displays information about the switch profile and the configuration revision. |
|
class type network-qos
To add a reference to an existing network QoS class map in a policy map and enter the class mode, use the class type network-qos command. To remove a class from the policy map, use the no form of this command.
class type network-qos class-map-name
no class type network-qos class-map-name
Syntax Description
Reference to a network QoS class map. The class map name can be a maximum of 40 characters. The name is case sensitive and can only contain alphabetic characters, numbers, hyphens, and underscores. |
Command Default
Command Modes
Policy map type network-qos configuration
Command History
|
|
---|---|
Usage Guidelines
Policy actions in the first class that matches the traffic type are performed.
Examples
This example shows how to add a reference to a class map in a type network-qos policy map:
This example shows how to remove a class map reference in a type network-qos policy map:
Related Commands
|
|
---|---|
class type queuing
To add a reference to an existing queuing class map in a policy map and enter the class mode, use the class type queuing command. To remove a class from the policy map, use the no form of this command.
class type queuing class-map-name
no class type queuing class-map-name
Syntax Description
Reference to a queuing class map. The class map name can be a maximum of 40 characters. The name is case sensitive and can only contain alphabetic characters, numbers, hyphens, and underscores. |
Command Default
Command Modes
Policy map type queuing configuration
Command History
|
|
Usage Guidelines
Policy actions in the first class that matches the traffic type are performed.
Examples
This example shows how to add a reference to a class map in a type queuing policy map:
switch(
config)#
policy-map type queuing my_policy1
This example shows how to remove a class map reference in a type queuing policy map:
switch(
config)#
policy-map type queuing my_policy1
Related Commands
|
|
---|---|
class-map
To create or modify a class map and enter the class-map configuration mode, use the class-map command. To remove a class map, use the no form of this command.
class-map [ type qos ] [ match-all | match-any ] class-map-name
no class-map [ type qos ] [ match-all | match-any ] class-map-name
Syntax Description
Command Default
Command Modes
Command History
|
|
Usage Guidelines
You can define a class map for each class of traffic to be used in QoS policies.
If the packet matches any of the criteria configured for this class map with the match command, then this class map is applied to the packet. If no execution strategy is specified (match-any or match-all), then the default value of match-any is applied to the traffic class.
Examples
This example shows how to create or modify a qos class map:
switch(
config)#
class-map my_class1
This example shows how to create a qos class map to match all traffic packets:
switch(
config)#
class-map type qos match-all my_class2
This example shows how to remove a qos class map:
switch(
config)#
no class-map my_class1
This example shows the error message that appears when you attempt to remove a class-fcoe class map:
Related Commands
|
|
---|---|
class-map type control-plane
To create or specify a control plane class map and enter class map configuration mode, use the class-map type control-plane command.
class-map type control-plane [ match-any ] class-map-name
Syntax Description
(Optional) Specifies to match any match conditions in the class map. |
|
Name of the class map. The name is alphanumeric and case-sensitive. The maximum length is 64 characters. |
Command Default
Command Modes
Command History
|
|
Usage Guidelines
You cannot use match-any or class-default as names for control plane class maps.
You can delete only dynamic class-maps of type control-plane. You cannot delete static class-maps of type control-plane.
Examples
This example shows how to specify a control plane class map and enter class map configuration mode:
Related Commands
|
|
---|---|
Matches traffic with a specified access control list (ACL) group. |
|
Displays control plane policy map configuration information. |
class-map type network-qos
To create or modify a class map that defines a network QoS class of traffic and enter the class-map configuration mode, use the class-map type network-qos command. To remove a class map, use the no form of this command.
class-map type network-qos class_map_name
no class-map type network-qos class_map_name
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Class maps of type network qos support only the match qos-group command. If a traffic packet matches any of the criteria configured for this class map with the match command, then this class map is applied to the packet. By default, traffic is filtered using the implicit match-any option.
Examples
This example shows how to create or modify a network qos class map named my_class1:
switch(
config)#
class-map type network-qos my_class1
This example shows how to remove a network qos class map:
switch(
config)#
no class-map my_class1
Related Commands
|
|
---|---|
class-map type queuing
To create or modify a class map that defines a queuing class of traffic and enter the class-map configuration mode, use the class-map type queuing command. To remove the queuing class map, use the no form of this command.
class-map type queuing class_map_name
no class-map type queuing class_map_name
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
If you modify the queuing type class maps, the configuration for all ports of the specified port type also changes.
You cannot delete the system-defined queuing class map names.
Class maps of type queuing support only the match qos-group command. If a traffic packet matches any of the criteria configured for this class map with the match command, then this class map is applied to the packet. By default, traffic is filtered using the implicit match-any option.
Examples
This example shows how to create or modify a queuing class map:
switch(
config)#
class-map type queuing my_class1
This example shows how to modify a system-defined queuing class map named class-default:
switch(
config)#
class-map type queuing match-any class-default
This example shows how to remove a queuing class map:
switch(
config)#
no class-map type queuing my_class1
Related Commands
|
|
---|---|
Configures a traffic class that matches the QoS group values. |
|
clear copp statistics
To clear Control Plane Policing (CoPP) statistics, use the clear copp statistics command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Usage Guidelines
Examples
This example shows how to clear the CoPP statistics:
Related Commands
|
|
---|---|
control-plane
To enter control-plane configuration mode, which allows users to associate attributes that are associated with the control plane of the device, use the control-plane command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
After you use the control-plane command, you can associate a service policy to police all traffic that is destined to the control plane.
Examples
This example shows how to enter the control plane configuration mode:
Related Commands
|
|
---|---|
Attaches a policy map to a control plane for aggregate control plane services. |
|
Displays the configuration of a class or all classes for the policy map of a control plane. |