Use the DiffServ show commands to display configuration and status information for classes, policies, and services. You can display DiffServ information in summary or detailed formats. The status information is only shown when the DiffServ administrative mode is enabled.
show class-map
This command displays all configuration information for the specified class. The <classname> is the name of an existing DiffServ class.
Format: show class-map <class-name>
Modes: Privileged EXEC User EXEC
The display parameters for above command are:
Class Name: The name of this class.
Class Type: A class type of ‘all’ means every match criterion defined for the class is evaluated simultaneously and must all be true to indicate a class match.
Class layer3 protocol: Layer3 protocol of type IPV4 or IPV6.
Match Criteria: The Match Criteria fields are only displayed if they have been configured. Not all platforms support all match criteria values. They are displayed in the order entered by the user. The fields are evaluated in accordance with the class type. The possible Match Criteria fields are: Destination IP Address, Destination Layer 4 Port, Destination MAC Address, Ethertype, Source MAC Address, VLAN, Class of Service, Every, IP DSCP, IP Precedence, IP TOS, Protocol Keyword, Reference Class, Source IP Address, and Source Layer 4 Port.
Values: The values of the Match Criteria.
If you do not specify the Class Name, this command displays a list of all defined DiffServ classes. The following fields are displayed:
Class Name: The name of this class. (Note that the order in which classes are displayed is not necessarily the same order in which they were created.)
Class Type: A class type of ‘all’ means every match criterion defined for the class is evaluated simultaneously and must all be true to indicate a class match.
Class layer3 protocol: Layer3 protocol of type IPV4 or IPV6.
Ref Class Name: The name of an existing DiffServ class whose match conditions are being referenced by the specified class definition.
show diffserv
This command displays the DiffServ General Status Group information, which includes the current administrative mode setting as well as the current and maximum number of rows in each of the main DiffServ private MIB tables. This command takes no options.
Format: show diffserv
Mode: Privileged EXEC
The display parameters for above command are:
DiffServ Admin mode: The current value of the DiffServ administrative mode.
Class Table Size: The current number of entries (rows) in the Class Table.
Class Table Max: The maximum allowed entries (rows) for the Class Table.
Class Rule Table Size: The current number of entries (rows) in the Class Rule Table.
Class Rule Table Max: The maximum allowed entries (rows) for the Class Rule Table.
Policy Table Size: The current number of entries (rows) in the Policy Table.
Policy Table Max: The maximum allowed entries (rows) for the Policy Table.
Policy Instance: Table Size Current number of entries (rows) in the Policy Instance Table.
Policy Instance Max: Table Max Maximum allowed entries (rows) for the Policy Instance Table.
Policy Attribute: Table Size Current number of entries (rows) in the Policy Attribute Table.
Policy Attribute Max: Table Max Maximum allowed entries (rows) for the Policy Attribute Table.
Service Table Size: The current number of entries (rows) in the Service Table.
Service Table Max: The maximum allowed entries (rows) for the Service Table.
show policy-map
This command displays all configuration information for the specified policy. The <policyname> is the name of an existing DiffServ policy.
Format: show policy-map [policyname]
Mode: Privileged EXEC
If the Policy Name is specified the following fields are displayed:
Policy Name: The name of this policy
Type: The policy type (Only inbound policy definitions are supported for this platform)
The following information is repeated for each class associated with this policy (only those policy attributes actually configured are displayed):
Assign Queue: Directs traffic stream to the specified QoS queue. This allows a traffic classifier to specify which one of the supported hardware queues are used for handling packets belonging to the class.
Class Name: The name of this class along with it’s defnition.
Committed Burst Size (KB): The committed burst size, used in simple policing.
Committed Rate (Kbps): The committed rate, used in simple policing,
Conform Action: The current setting for the action taken on a packet considered to conform to the policing parameters. This is not displayed if policing is not in use for the class under this policy.
Conform COS: The CoS mark value if the conform action is set-cos-transmit.
Conform DSCP Value: The DSCP mark value if the conform action is set-dscp-transmit.
Conform IP Precedence Value: The IP Precedence mark value if the conform action is setprec-transmit.
Drop: Drop a packet upon arrival. This is useful for emulating access control list operation using DiffServ, especially when DiffServ and ACL cannot co-exist on the same interface.
Mark CoS: The class of service value that is set in the 802.1p header of inbound packets. This is not displayed if the mark cos was not specified.
Mark IP DSCP: The mark/re-mark value used as the DSCP for traffic matching this class. This is not displayed if mark ip description is not specified.
Mark IP Precedence: The mark/re-mark value used as the IP Precedence for traffic matching this class. This is not displayed if mark ip precedence is not specified .
Mirror: Copies a classified traffic stream to a specified egress port (physical port or LAG). This can occur in addition to any marking or policing action. It may also be specified along with a QoS queue assignment.
Non-Conform Action: The current setting for the action taken on a packet considered to not conform to the policing parameters. This is not displayed if policing not in use for the class under this policy.
Non-Conform COS: The CoS mark value if the non-conform action is set-cos-transmit.
Non-Conform DSCP Value: The DSCP mark value if the non-conform action is set-dscptransmit.
Non-Conform IP Precedence Value: The IP Precedence mark value if the non-conform action is set-prec-transmit.
Policing Style: The style of policing, if any, used (simple).
Redirect: Forces a classified traffic stream to a specified egress port (physical port or LAG). This can occur in addition to any marking or policing action. It may also be specified along with a QoS queue assignment.
If the Policy Name is not specified this command displays a list of all defined DiffServ policies. The following fields are displayed:
Policy Name: The name of this policy. (The order in which the policies are displayed is not necessarily the same order in which they were created.)
Policy Type: The policy type (Only inbound is supported).
Class Members: List of all class names associated with this policy.
show diffserv service
This command displays policy service information for the specified interface and direction. The <unit/slot/port> parameter specifies a valid unit/slot/port number for the system.
Format: show diffserv service <unit/slot/port> in
Mode: Privileged EXEC
The display parameters for above command are:
DiffServ Admin Mode: The current setting of the DiffServ administrative mode. An attached policy is only in effect on an interface while DiffServ is in an enabled mode.
Interface: Valid slot and port number separated by a forward slash.
Direction: To which direction of traffic (in/out) this policy is applied.
Operational Status: The current operational status of this DiffServ service interface.
Policy Name: The name of the policy attached to the interface in the indicated direction.
Policy Details: Attached policy details, whose content is identical to that described for the show policy-map <policymapname> command (content not repeated here for brevity).
show diffserv service brief
This command displays all interfaces in the system to which a DiffServ policy has been attached. The inbound direction parameter is optional.
Format: show diffserv service brief [in]
Mode: Privileged EXEC
DiffServ Mode The current setting of the DiffServ administrative mode. An attached policy is only active on an interface while DiffServ is in an enabled mode.
The following information is repeated for interface and direction (only those interfaces configured with an attached policy are shown):
Interface: Valid slot and port number separated by a forward slash.
Direction: The traffic direction of this interface service.
OperStatus: The current operational status of this DiffServ service interface.
Policy Name: The name of the policy attached to the interface in the indicated direction.
show policy-map interface
This command displays policy-oriented statistics information for the specified interface and direction. The <unit/slot/port> parameter specifies a valid interface for the system.
NOTE: This command is only allowed while the DiffServ administrative mode is enabled.
Format: show policy-map interface <unit/slot/port> [in]
Mode: Privileged EXEC
The display parameters for above command are:
Interface: Valid slot and port number separated by a forward slash.
Direction: The traffic direction of this interface service.
Operational Status: The current operational status of this DiffServ service interface.
Policy Name: The name of the policy attached to the interface in the indicated direction.
The following information is repeated for each class instance within this policy:
Class Name: The name of this class instance.
In Discarded Packets: A count of the packets discarded for this class instance for any reason due to DiffServ treatment of the traffic class.
show service-policy
This command displays a summary of policy-oriented statistics information for all interfaces in the specified direction.
Format: show service-policy [in]
Mode: Privileged EXEC
The following information is repeated for each interface and direction (only those interfaces configured with an attached policy are shown):
Interface: Valid slot and port number separated by a forward slash.
Operational Status: The current operational status of this DiffServ service interface.
Policy Name: The name of the policy attached to the interface.