R3303-HP HSR6800 Routers Network Management and Monitoring Command Reference
157
Examples
# Create remote source group 1 and configure port GigabitEthernet 2/0/1 as its egress port in system
view.
<Sysname> system-view
[Sysname] mirroring-group 1 remote-source
[Sysname] mirroring-group 1 monitor-egress gigabitethernet 2/0/1
# Create remote source group 2 and configure port GigabitEthernet 2/0/2 as its egress port in interface
view.
<Sysname> system-view
[Sysname] mirroring-group 2 remote-source
[Sysname] interface gigabitethernet 2/0/2
[Sysname-GigabitEthernet2/0/2] mirroring-group 2 monitor-egress
Related commands
mirroring-group
mirroring-group monitor-port
Use mirroring-group monitor-port to configure a port for a local or remote destination group as the
monitor port.
Use undo mirroring-group monitor-port to remove the monitor port from the local or remote destination
group.
Syntax
mirroring-group group-id monitor-port monitor-port-id
undo mirroring-group group-id monitor-port monitor-port-id
Default
No monitor port is configured for a mirroring group.
Views
System view
Default command level
2: System level
Parameters
group-id: Specifies the number of a local or remote destination group, in the range of 1 to 4. The
mirroring group specified by group-id must already exist.
monitor-port-id: Specifies the port to be assigned to the specified mirroring group as the monitor port. The
argument 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 cannot configure a monitor port for a remote source group.
You cannot assign a source port in an existing mirroring group to another mirroring group as the monitor
port.
You can configure an aggregate interface as a monitor port.