Mirroring-Port - HP 6125G Command Reference Manual

Network management and monitoring
Hide thumbs Also See for 6125G:
Table of Contents

Advertisement

[Sysname] mirroring-group 2 remote-probe vlan 20

mirroring-port

Syntax
[ mirroring-group group-id ] mirroring-port { inbound | outbound | both }
undo [ mirroring-group group-id ] mirroring-port { inbound | outbound | both }
View
Interface view
Default level
2: System level
Parameters
mirroring-group group-id: Specifies a local or remote source group by its number, which ranges from 1
to 4 and defaults to 1. The mirroring group specified by group-id must already exist.
both: Mirrors both inbound and outbound packets on the current port.
inbound: Mirrors only inbound packets on the current port.
outbound: Mirrors only outbound packets on the current port.
Description
Use mirroring-port to assign the current port to a local or remote source group as a source port.
Use undo mirroring-port to remove the current port from the mirroring group.
By default, a port does not serve as a source port for any mirroring group.
You cannot configure source ports for a remote destination group.
When removing a source port from a mirroring group, make sure the traffic direction you specified in the
undo mirroring-group command matches the actual monitored direction of the port specified earlier in
the mirroring-port command.
Examples
# Create local mirroring group 1, configure GigabitEthernet 1/0/1 as a source port of the mirroring
group, and specify that the mirroring group monitor the bidirectional traffic of the port.
<Sysname> system-view
[Sysname] mirroring-group 1 local
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mirroring-group 1 mirroring-port both
# Create remote source group 2, configure GigabitEthernet 1/0/2 as a source port of the mirroring
group, and specify that the mirroring group monitor the bidirectional traffic of the port.
<Sysname> system-view
[Sysname] mirroring-group 2 remote-source
[Sysname] interface GigabitEthernet 1/0/2
[Sysname-GigabitEthernet1/0/2] mirroring-group 2 mirroring-port both
109

Advertisement

Table of Contents
loading

This manual is also suitable for:

6125 blade switch series

Table of Contents