R21xx-HP FlexFabric 11900 Network Management and Monitoring Command Reference

185
Examples
# Create local mirroring group 1, configure the CPU of the card in slot 1 as a source CPU of the mirroring
group, and configure the mirroring group to monitor the bidirectional traffic of the CPU.
<Sysname> system-view
[Sysname] mirroring-group 1 local
[Sysname] mirroring-group 1 mirroring-cpu slot 1 both
# Create remote source group 2, configure the CPU of the card in slot 2 as a source CPU of the mirroring
group, and configure the mirroring group to monitor the bidirectional traffic of the CPU.
<Sysname> system-view
[Sysname] mirroring-group 2 remote-source
[Sysname] mirroring-group 2 mirroring-cpu slot 2 both
Related commands
mirroring-group
mirroring-group mirroring-port (interface view)
Use mirroring-group mirroring-port to configure a source port for a mirroring port.
Use undo mirroring-group mirroring-port to remove a source port from the mirroring group.
Syntax
mirroring-group group-id mirroring-port { both | inbound | outbound }
undo mirroring-group group-id mirroring-port
Default
No source port is configured for any mirroring group.
Views
Interface view
Predefined user roles
network-admin
Parameters
group-id: Specifies the mirroring group ID 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 a 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.
A Layer 2 aggregate interface cannot be configured as a source port of a mirroring group.