Monitor-Port - H3C SR6600 Command Reference Manual

Network management and monitoring command reference
Hide thumbs Also See for SR6600:
Table of Contents

Advertisement

Usage guidelines
You cannot configure source ports for a remote destination group.
When removing a source port from a mirroring group, make sure the traffic direction you specified in the
undo mirroring-group command matches the actual monitored direction of the port specified earlier in
the mirroring-port command.
Examples
# Create local mirroring group 1, configure GigabitEthernet 2/0/1 as a source port of the mirroring
group, and specify that the mirroring group monitor the bidirectional traffic of the port.
<Sysname> system-view
[Sysname] mirroring-group 1 local
[Sysname] interface gigabitethernet 2/0/1
[Sysname-GigabitEthernet2/0/1] mirroring-group 1 mirroring-port both
# Create remote source group 2, configure GigabitEthernet 2/0/2 as a source port of the mirroring
group, and specify that the mirroring group monitor the bidirectional traffic of the port.
<Sysname> system-view
[Sysname] mirroring-group 2 remote-source
[Sysname] interface gigabitethernet 2/0/2
[Sysname-GigabitEthernet2/0/2] mirroring-group 2 mirroring-port both

monitor-port

Use monitor-port to assign the current port to a local or remote destination group as the monitor port.
Use undo monitor-port to remove the current port from the mirroring group.
Syntax
[ mirroring-group group-id ] monitor-port
undo [ mirroring-group group-id ] monitor-port
Default
A port does not serve any mirroring group as the monitor port.
Views
Interface view
Default command level
2: System level
Parameters
mirroring-group group-id: Specifies a local or remote destination group by its number. The mirroring
group specified by group-id must already exist. The value range for the group-id argument is 1 to 4, and
the default value is 1.
Usage guidelines
You cannot configure a monitor port for a remote source group.
You cannot configure a source port of an existing mirroring group as a monitor port.
Examples
# Create local mirroring group 1, and configure GigabitEthernet 2/0/1 as its monitor port.
160

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sr6600-x

Table of Contents