R3303-HP HSR6800 Routers Network Management and Monitoring Command Reference

156
Examples
# Create local mirroring group 1, configure GigabitEthernet 2/0/1 as a source port of the mirroring
group, and configure the mirroring group to monitor the bidirectional traffic of the port.
<Sysname> system-view
[Sysname] mirroring-group 1 local
[Sysname] mirroring-group 1 mirroring-port gigabitethernet 2/0/1 both
# Create remote source group 2, configure GigabitEthernet 2/0/2 as a source port of the mirroring
group, and configure the mirroring group to monitor the bidirectional traffic of the port.
<Sysname> system-view
[Sysname] mirroring-group 2 remote-source
[Sysname] mirroring-group 2 mirroring-port gigabitethernet 2/0/2 both
Related commands
mirroring-group
mirroring-group monitor-egress
Use mirroring-group monitor-egress to configure an egress port for a remote source group.
Use undo mirroring-group monitor-egress to remove the egress port of the mirroring group.
Syntax
In system view:
mirroring-group group-id monitor-egress monitor-egress-port
undo mirroring-group group-id monitor-egress monitor-egress-port
In interface view:
mirroring-group group-id monitor-egress
undo mirroring-group group-id monitor-egress
Default
No egress port is configured for a mirroring group.
Views
System view, interface view
Default command level
2: System level
Parameters
group-id: Specifies the number of a remote source group, in the range of 1 to 4. The mirroring group
specified by group-id must already exist.
monitor-egress-port: Specifies the port to be configured as the egress port. It takes the form of
interface-type interface-number, where interface-type specifies the port type and interface-number
specifies the port number.
Usage guidelines
You can configure an egress port for a remote source group only, not for other types of mirroring groups.