R211x-HP Flexfabric 11900 Network Management and Monitoring Command Reference

230
Parameters
group-id: Specifies the number of a mirroring group, in the range of 1 to 4. The mirroring group specified
by the group-id argument must already exist.
both: Mirrors both received and sent packets on the specified port.
inbound: Mirrors only received packets on the specified port.
outbound: Mirrors only sent packets on the specified port.
Usage guidelines
You can configure source ports only for a local mirroring group or remote source group but not for a
remote destination group.
Do not assign a source port to the remote probe VLAN.
A port can serve as a source port for multiple mirroring groups, but cannot be a reflector port, egress port,
or monitor port at the same time.
Examples
# Create local mirroring group 1, configure Ten-GigabitEthernet 1/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] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] mirroring-group 1 mirroring-port both
# Create remote source group 2, configure Ten-GigabitEthernet 1/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] interface ten-gigabitethernet 1/0/2
[Sysname-Ten-GigabitEthernet1/0/2] mirroring-group 2 mirroring-port both
Related commands
mirroring-group
mirroring-group mirroring-port (system view)
Use mirroring-group mirroring-port to configure source ports for a mirroring group.
Use undo mirroring-group mirroring-port to remove source ports from a mirroring group.
Syntax
mirroring-group group-id mirroring-port interface-list { both | inbound | outbound }
undo mirroring-group group-id mirroring-port interface-list
Default
No source port is configured for a mirroring group.
Views
System view
Predefined user roles
network-admin