R3303-HP HSR6800 Routers Network Management and Monitoring Command Reference

159
Examples
# Create remote source group 1 and configure VLAN 10 as its remote probe VLAN.
<Sysname> system-view
[Sysname] mirroring-group 1 remote-source
[Sysname] mirroring-group 1 remote-probe vlan 10
# Create remote destination group 2 and configure VLAN 20 as its remote probe VLAN.
<Sysname> system-view
[Sysname] mirroring-group 2 remote-destination
[Sysname] mirroring-group 2 remote-probe vlan 20
Related commands
mirroring-group
mirroring-port
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.
Syntax
[ mirroring-group group-id ] mirroring-port { inbound | outbound | both }
undo [ mirroring-group group-id ] mirroring-port { inbound | outbound | both }
Default
A port does not serve as a source port for any mirroring group.
Views
Interface view
Default command level
2: System level
Parameters
mirroring-group group-id: Specifies a local or remote source group by its number. The mirroring group
specified by group-id must already exist. The value range for the group-id argument is 1 to 4, and the
default value is 1.
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.
Usage guidelines
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 2/0/1 as a source port of the mirroring
group, and specify that the mirroring group monitor the bidirectional traffic of the port.