R0106-HP MSR Router Series Network Management and Monitoring Command Reference(V7)

303
Default
No source port is configured for any mirroring groups.
Views
Interface view
Predefined user roles
network-admin
Parameters
group-id: Specifies a mirroring group by its ID in the range of 1 to 6. The specified mirroring group must
already exist.
both: Mirrors both received and sent packets on the port.
inbound: Mirrors only received packets on the port.
outbound: Mirrors only sent packets on the port.
Usage guidelines
A port can belong to only one mirroring group.
Examples
# Create local mirroring group 1 to monitor the bidirectional traffic of the port GigabitEthernet 2/1/1.
<Sysname> system-view
[Sysname] mirroring-group 1 local
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/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
Default
No source port is configured for a mirroring group.
Views
System view
Predefined user roles
network-admin
Parameters
group-id: Specifies a mirroring group by its ID in the range of 1 to 6. The specified mirroring group must
already exist.