190
To do… Use the command… Remarks
6. Specify the destination
interface for traffic
mirroring.
mirror-to interface interface-type
interface-number
Required.
By default, traffic mirroring is
not configured in a traffic
behavior.
Execute this command multiple
times to configure multiple
traffic mirroring destination
ports in a traffic behavior. On
an HP 5800 switch, you can
configure up to four traffic
mirroring destination ports in a
traffic behavior. On an HP
5820X switch, you can
configure up to two traffic
mirroring destination ports in a
traffic behavior.
7. Exit behavior view.
quit —
8. Create a policy and enter
policy view.
qos policy policy-name
Required.
By default, no policy exists.
9. Associate the class with
the traffic behavior in the
QoS policy.
classifier tcl-name behavior behavior-
name
Required.
By default, no traffic behavior
is associated with a class.
10. Exit policy view.
quit —
11. Apply the QoS policy.
See “Applying a QoS policy” Requi
red.
Mirroring traffic to the CPU
To do… Use the command… Remarks
1. Enter system view.
system-view —
2. Create a class and enter
class view.
traffic classifier tcl-name [ operator { and
| or } ]
Required.
By default, no traffic class
exists.
3. Configure the match
criteria.
if-match match-criteria
Required.
By default, no match criterion
is configured in a traffic class.
4. Exit class view.
quit —
5. Create a behavior and
enter behavior view.
traffic behavior behavior-name
Required.
By default, no traffic behavior
exists.
6. Mirror traffic to the CPU.
mirror-to cpu
Required.
By default, traffic mirroring is
not configured in a traffic
behavior.
7. Exit behavior view.
quit —