HP (Hewlett-Packard) 6600 Switch User Manual


 
Monitoring and Analyzing Switch Operation
Traffic Mirroring
VLAN Interface with Traffic Direction as the Selection
Criteria
Use the following command to select all traffic on a VLAN interface for
mirroring according to traffic direction (inbound and/or outbound):
Syntax: vlan < vid-# > monitor all < in | out | both > mirror < 1 - 4 | name-str >
[< 1 - 4 | name-str > < 1 - 4 | name-str > < 1 - 4 | name-str >]
This command assigns a monitored VLAN source to a previously
configured mirroring session on a source switch by specifying
the VLAN ID, the direction of traffic to mirror, and the session.
Assigning a VLAN to a mirroring session precludes assigning
any other mirroring sources to the same session. If a VLAN is
already assigned to a given mirroring session, using this
command to assign another VLAN to the same mirroring session
results in the second assignment replacing the first. Also, if there
are other (port, trunk, or mesh) mirroring sources already
assigned to a session, the switch displays a message similar to:
Mirror source port exists on session N. Can not
add mirror source VLAN.
The no form of the command removes a mirroring source
assigned to the session, but does not remove the session itself.
This allows you to repurpose a session by removing an unwanted
mirroring source and adding another in its place.
vlan < vid-# >: Identifies the VLAN on which to mirror traffic.
monitor all < in | out | both >: Uses the direction of traffic on the
specified vid-# to select traffic to mirror. Refer to the syntax
description on page B-57. (If you enter the monitor all
command without selection criteria or a session identifier,
the command applies by default to session 1; see “Monitor
Command” on page B-96.)
mirror < 1 - 4 | < name-str >: Assigns the VLAN traffic defined
by the VlAN ID and traffic direction to a session number or
name. (The session must have been previously configured
as described in “3. Configure a Mirroring Session on the
Source Switch” on page B-52.) Depending on how many
sessions are already configured on the switch, you can use
the same command to assign the specified VLAN source to
up to four sessions; for example, interface a1 monitor all in
mirror 1 2 4. For limits on configuring mirroring sources in
a session, refer to “Mirroring-Source Restrictions” on page
B-56.
B-61