HP MSR2000/3000/4000 Router Series Network Management and Monitoring Command Reference
188
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 number of a mirroring group. The mirroring group specified by the group-id
argument must already exist.
The following matrix shows the value ranges for the group-id argument:
MSR2000 MSR3000 MSR4000
Always 1 1 to 6 1 to 6
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.
A port can belong to only one mirroring group.
Examples
# Create local mirroring group 1, configure Ethernet 1/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 ethernet 1/1
[Sysname-Ethernet1/1] mirroring-group 1 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