Management and Configuration Guide K/KA/KB.15.15

Applying a mirroring policy on a port or VLAN interface
Enter one of the following service-policy commands from the global configuration context.
Context: Global configuration
Syntax
interface <port-list> service-policy policy-name in
Configures the specified ports with a mirroring policy that is applied to inbound
traffic on each interface.
Separate individual port numbers in a series with a comma, for example, a1,b4,d3.
Enter a range of ports by using a dash, for example, a1-a5.
The mirroring policy name you enter must be the same as the policy name you
configured with the policy mirror command.
Syntax
vlan vlan-id service-policy policy-name in
Configures a mirroring policy on the specified VLAN that is applied to inbound
traffic on the VLAN interface.
Valid VLAN ID numbers range from 1 to 4094.
The mirroring policy name you enter must be the same as the policy name you
configured with the policy mirror command in the syntax (page 319).
Viewing a classifier-based mirroring configuration
To display information about a classifier-based mirroring configuration or statistics on one or more
mirroring policies, enter one of the following commands:
Syntax
show class [ ipv4 class-name | ipv6 class-name | config
]
Syntax
show policy [ policy-name | config ]
Syntax
show policy resources
Syntax
show statistics policy [policy-name] [ interface port-num |
vlan vid in ]
Viewing all mirroring sessions configured on the switch
Syntax
show monitor
Viewing a classifier-based mirroring configuration 331