Monitor-Port - H3C S5120-SI Series Command Reference Manual

Hide thumbs Also See for S5120-SI Series:
Table of Contents

Advertisement

Description
Use the mirroring-port command to assign the current port to a local mirroring group as a mirroring
port.
Use the undo mirroring-port command to remove the current port from the mirroring group.
By default, a port does not serve as a mirroring port for any mirroring group.
When assigning a port to a mirroring group as a mirroring port, note that:
If no mirroring group is specified, the port is assigned to mirroring group 1.
When removing a mirroring 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.
Examples
# Configure GigabitEthernet 1/0/1 as a mirroring port in local mirroring group numbered 1.
<Sysname> system-view
[Sysname] mirroring-group 1 local
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mirroring-group 1 mirroring-port both
# Remove mirroring port GigabitEthernet 1/0/1 from mirroring group 1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] undo mirroring-group 1 mirroring-port gigabitethernet 1/0/1
both

monitor-port

Syntax
[ mirroring-group groupid ] monitor-port
undo [ mirroring-group groupid ] monitor-port
View
Interface view
Default Level
2: System level
Parameters
groupid: Number of a local mirroring group, which can only be 1.
Description
Use the monitor-port command to assign the current port to a local mirroring group as the monitor port.
Use the undo monitor-port command to remove the current port from the mirroring group.
When assigning a port to a mirroring group as the monitor port, note that:
If no mirroring group is specified, the port is assigned to mirroring group 1.
The port cannot belong to any other mirroring groups.
1-5

Advertisement

Table of Contents
loading

Table of Contents