Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)
Attaching the System Service Policy
You can use the service-policy command to associate the system class policy map as the service policy for
the system.
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Enters system class configuration mode.switch(config)# system qos
Step 2
Specifies the policy map to use as the service policy for the system.
There are three policy-map configuration modes:
switch(config-sys-qos)#
service-policy type
Step 3
{network-qos | qos | queuing}
[input | output] policy-name
• network-qos—Network-wide (system qos) mode.
• qos—Classification mode (system qos input or interface input
only).
• queuing—Queuing mode (input and output at system qos
and interface).
There is no default policy-map configuration mode; you
must specify the type. The input keyword specifies that
this policy map should be applied to traffic received on
an interface. The output keyword specifies that this
policy-map should be applied to traffic transmitted from
an interface. You can only apply input to a qos policy;
you can apply both input and output to a queuing policy.
Note
This example shows how to set a no-drop Ethernet policy map as the system class:
switch(config)# class-map type network-qos ethCoS4
switch(config-cmap-nq)# match cos 4
switch(config-cmap-nq)# exit
switch(config)# policy-map type network-qos ethNoDrop
switch(config-pmap-nq)# class type network-qos ethCoS4
switch(config-pmap-c-nq)# pause no-drop
switch(config-pmap-c-nq)# exit
switch(config-pmap-nq)# exit
switch(config)# system qos
switch(config-sys-qos)# service-policy type network-qos ethNoDrop
Restoring the Default System Service Policies
If you have created and attached new policies to the system qos configuration, you must reapply the default
policies to restore the system.
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
442 OL-16597-01
Configuring System Classes
Attaching the System Service Policy