Show commands

Use these M4500 CLI commands to display DiffServ class maps, policy maps, service policies, and DiffServ status for interfaces.

The 'show' command set is used in DiffServ to display configuration and status information for:

  • Classes
  • Policies
  • Services

This information can be displayed in either summary or detailed formats. The status information is only shown when the DiffServ administrative mode is enabled; it is suppressed otherwise. There is also a 'show' command for general DiffServ information that is available at any time.

show class-map

This command displays all configuration information for the specified class.

Default None
Format show class-map [<classname>]
Mode Privileged Exec
Parameter Description
<classname> The name of an existing DiffServ class.

Display Message

Fields Definition
Class Name The name of this class.
Class Type The class type (all, any, or acl) indicating how the match criteria are evaluated for this class. A class type of all means every match criterion defined for the class is evaluated simultaneously they must all be true to indicate a class match. For a type of any each match criterion is evaluated sequentially and only one need be true to indicate a class match. Class type acl rules are evaluated in a hybrid manner, with those derived from each ACL Rule grouped and evaluated simultaneously, while each such grouping is evaluated sequentially.
L3 Protocol The Layer 3 protocol for this class. Possible values are IPv4 and IPv6.
Match Criteria The Match Criteria fields will only be displayed if they have been configured. They will be displayed in the order entered by the user. These are evaluated in accordance with the class type. The possible Match Criteria fields are: Class of Service, Destination IP Address, Destination Layer 4 Port, Destination MAC Address, Every, IP DSCP, IP Precedence, IP TOS, Protocol Keyword, Reference Class, Source IP Address, Source Layer 4 Port, Source MAC Address, and VLAN.
Values This field displays the values of the Match Criteria.
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 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.
Reference 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.

Default None
Format show diffserv
Mode Privileged Exec

Display Message

Fields Definition
DiffServ Admin mode The current value of the DiffServ administrative mode.
Class Table Size Current/Max The current or maximum number of entries (rows) in the Class Table.
Class Rule Table Size Current/Max The current or maximum number of entries (rows) in the Class Rule Table.
Policy Table Size Current/Max The Layer 3 protocol for this class. Possible values are IPv4 and IPv6.
Policy Instance Table Size Current/Max The current or maximum number of entries (rows) in the Policy Instance Table.
Policy Attribute Table Size Current/Max The current or maximum number of entries (rows) in the Policy Attribute Table.
Service Table Size Current/Max The current or maximum number of entries (rows) in the Service Table.

show diffserv service

This command displays policy service information for the specified interface and direction.

Default None
Format show diffserv service <slot/port> {in | out}
Mode Privileged Exec
Parameter Description
<slot/port> Specifies a valid slot number and port number for the system. The direction parameter indicates the interface direction of interest.

Display Message

Fields Definition
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 The slot number and port number of the interface (slot/port).
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.

show diffserv service brief

This command displays all interfaces in the system to which a DiffServ policy has been attached. The direction parameter is optional; if specified, only services in the indicated direction are shown.

Default None
Format show diffserv service brief [in | out]
Mode Privileged Exec

Display Message

Fields Definition
DiffServ Admin 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):

Fields Definition
Interface The slot number and port number of the interface (slot/port).
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

This command displays all configuration information for the specified policy.

Default None
Format show policy-map [<policy-map-name>]
Mode Privileged Exec
Parameter Description
< policy-map-name > The name of an existing DiffServ policy.

Display Message

Fields Definition
Policy Name The name of this policy.
Policy Type The policy type, namely whether it is an inbound or outbound policy definition.

The following information is repeated for each class associated with this policy

(only those policy attributes actually configured are displayed):

Fields Definition
Class Name The name of this class.
Mark CoS Denotes the class of service value that is set in the 802.1p header of outbound packets. This is not displayed if the mark cos was not specified.
Mark IP DSCP Denotes 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 using the police-two-rate command, or if policing is in use for the class under this policy.
Mark IP Precedence Denotes the mark/re-mark value used as the IP Precedence for traffic matching this class. This is not displayed if either mark DSCP or policing is in use for the class under this policy.
Policing Style This field denotes the style of policing, if any, used simple.
Committed Rate (Kbps) This field displays the committed rate, used in simple policing, single-rate policing, and two-rate policing.
Committed Burst Size (KB) This field displays the committed burst size, 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 Value This field shows the priority mark value if the conform action is markcos.
Conform DSCP Value This field shows the DSCP mark value if the conform action is markdscp.
Conform IP Precedence Value This field shows the IP Precedence mark value if the conform action is markprec.
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 DSCP Value This field displays the DSCP mark value if this action is markdscp.
Non-Conform IP Precedence Value This field displays the IP Precedence mark value if this action is markprec.
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.
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.
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.
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.
Policy Name The name of this policy. (Note that the order in which the policies are displayed is not necessarily the same order in which they were created.)
Policy Type The policy type, namely whether it is an inbound or outbound policy definition.
Class Members List of all class names associated with this policy.

show policy-map interface

This command displays policy-oriented statistics information for the specified interface and direction.

Default None
Format show policy-map interface {<slot/port> | port-channel <1-64 >} {in | out}
Mode Privileged Exec
Parameter Description
<slot/port> Specifies a valid slot number and port number for the system. The direction parameter indicates the interface direction of interest.
<1-64 > Specifies the port-channel interface. The range of port-channel ID is 1 to 64.

Display Message

Fields Definition
Interface The slot number and port number of the interface (slot/port)
Direction The traffic direction of this interface service, either in or out.
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:

Fields Definition
Class Name The name of this class instance.
In Offered Packets Count of the packets offered to this class instance before the defined DiffServ treatment is applied. Only displayed for the 'in' direction.
In Discarded Packets Count of the packets discarded for this class instance for any reason due to DiffServ treatment of the traffic class. Only displayed for the 'in' direction.
Note: None of the counters listed here are guaranteed to be supported on all platforms. Only supported counters are shown in the display output.

show service-policy

This command displays a summary of policy-oriented statistics information for all interfaces in the specified direction. The direction parameter indicates the interface direction of interest. This command enables or disables the route reflector client. A route reflector client relies on a route reflector to re-advertise its routes to the entire AS. The possible values for this field are enable and disable.

Default None
Format show service-policy {in | out}
Mode Privileged Exec

Display Message

The following information is repeated for each interface and direction (only those interfaces configured with an attached policy are shown):

Fields Definition
Interface The slot number and port number of the interface (slot/port).
Operational Status The current operational status of this DiffServ service interface.
Policy Name The name of the policy attached to the interface.
Note: None of the counters listed here are guaranteed to be supported on all platforms. Only supported counters are shown in the display output.