show policy-map interface

To display the service policy maps configured on 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

ethernet
(Optional) Displays policy maps assigned to Ethernet interfaces.
slot/port
Ethernet interface slot number and port number. The slot number is from 1 to 255, and the port number is from 1 to 128.
port-channel
(Optional) Displays policy maps assigned to EtherChannels.
channel-number
EtherChannel number. The number is from 1 to 4096.
input
(Optional) Displays policy maps assigned to input traffic only.
output
(Optional) Displays policy maps assigned to output traffic only.
type
(Optional) Specifies the component type to display.
qos
Displays policy maps of type qos only.
queuing
Displays policy maps of type queuing only.

Command Default

None

Command Modes

Any command mode

Command History

Release
Modification
4.0(0)N1(1a)
This command was introduced.
5.0(3)N1(1)
Support for Layer 3 subinterfaces was added.

Usage Guidelines

Statistics are on by default.

Examples

This example shows how to display policy maps assigned to a specified interface:

switch(config)# show policy-map interface ethernet 2/10
 

This example shows how to display QoS policy maps assigned to a specified interface:

switch# show policy-map interface ethernet 3/1 type qos
 
 
Global statistics status : disabled
 
Ethernet3/1
 
Service-policy (qos) input: s
policy statistics status: disabled
 
Class-map (qos): s1 (match-any)
Match: cos 0
set qos-group 2
 
Class-map (qos): class-1-2 (match-any)
Match: cos 1-2
set qos-group 3
 
Class-map (qos): class-4-5 (match-any)
Match: cos 4-5
set qos-group 4
 
Class-map (qos): class-6 (match-any)
Match: cos 6
set qos-group 5
 
Class-map (qos): class-fcoe (match-any)
Match: cos 3
set qos-group 1
 
Class-map (qos): class-default (match-any)
Match: any
set qos-group 0
 
switch#
 

This example shows how to display the policy maps assigned to the output traffic of a specified interface:

switch# show policy-map interface ethernet 3/1 output
 
 
Global statistics status : disabled
 
Ethernet3/1
 
Service-policy (queuing) output: pqe1
policy statistics status: disabled
 
Class-map (queuing): cqe1 (match-any)
Match: qos-group 2
bandwidth percent 20
 
Class-map (queuing): cqe2 (match-any)
Match: qos-group 3
priority
 
Class-map (queuing): cqe3 (match-any)
Match: qos-group 4
bandwidth percent 20
 
Class-map (queuing): cqe4 (match-any)
Match: qos-group 5
bandwidth percent 40
 
Class-map (queuing): class-fcoe (match-any)
Match: qos-group 1
bandwidth percent 10
 
Class-map (queuing): class-default (match-any)
Match: qos-group 0
bandwidth percent 5
 
switch#
 

This example shows how to display the policy maps assigned to the input traffic of a virtual Ethernet interface:

switch# show policy-map interface vethernet 10 input type queuing
 
 
Global statistics status : disabled
 
Vethernet10
 
Service-policy (queuing) input: p2
policy statistics status: disabled
 
Class-map (queuing): class-default (match-any)
Match: qos-group 0
bandwidth percent 50
shape 30 kbps
 
switch#
 

Related Commands

Command
Description
policy-map
Creates or modifies a policy map.
service-policy (virtual Ethernet interface)
Attaches a policy map to a virtual Ethernet interface.