R211x-HP Flexfabric 11900 Network Management and Monitoring Command Reference

233
Syntax
mirroring-group group-id monitor-port
undo mirroring-group group-id monitor-port
Default
No monitor port is configured for a mirroring group.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
group-id: Specifies the number of a mirroring group, in the range of 1 to 4. The mirroring group specified
by group-id must already exist.
Usage guidelines
You can configure the monitor port only for a local mirroring group or remote destination group but not
for a remote source group.
Use a monitor port only for port mirroring to make sure the data monitoring device receives and analyzes
only the mirrored traffic rather than a mix of mirrored traffic and correctly forwarded traffic.
Do not configure a port of an existing mirroring group as a monitor port.
# Create local mirroring group 1 and configure port Ten-GigabitEthernet 1/0/1 as its monitor port.
<Sysname> system-view
[Sysname] mirroring-group 1 local
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] mirroring-group 1 monitor-port
# Create remote destination group 2 and configure port Ten-GigabitEthernet 1/0/2 as its monitor port.
<Sysname> system-view
[Sysname] mirroring-group 2 remote-destination
[Sysname] interface ten-gigabitethernet 1/0/2
[Sysname-Ten-GigabitEthernet1/0/2] mirroring-group 2 monitor-port
Related commands
mirroring-group
mirroring-group monitor-port (system view)
Use mirroring-group monitor-port to configure a port as the monitor port for a mirroring group.
Use undo mirroring-group monitor-port to remove the monitor port from a mirroring group.
Syntax
mirroring-group group-id monitor-port interface-type interface-number
undo mirroring-group group-id monitor-port interface-type interface-number