Command Manual – Port Mirroring
H3C S7500E Series Ethernet Switches Chapter 1 Port Mirroring Configuration Commands
1-3
You need to specify the type of the port mirroring group to be created when creating it.
z Use the keyword local to create a local port mirroring group.
z Use the keyword remote-destination to create a remote destination port
mirroring group.
z Use the keyword remote-source to create a remote source port mirroring group.
You need to specify the port mirroring group type or the mirroring group number when
removing a port mirroring group:
z Use the group-id argument to specify the port mirroring group to be removed.
z Use the all keyword to remove all the port mirroring groups.
z Use the local keyword to remove all the local port mirroring groups.
z Use the remote-destination keyword to remove all the remote destination port
mirroring groups.
z Use the remote-source keyword to remove all the remote source mirroring
groups.
Examples
# Create a local port mirroring group numbered 1.
<Sysname> system-view
[Sysname] mirroring-group 1 local
# Create remote destination mirroring group numbered 2.
<Sysname> system-view
[Sysname] mirroring-group 2 remote-destination
1.1.3 mirroring-group mirroring-port
Syntax
mirroring-group group-id mirroring-port mirroring-port-list { both | inbound |
outbound }
undo mirroring-group group-id mirroring-port mirroring-port-list { both | inbound |
outbound }
View
System view
Parameters
group-id: Port mirroring group number, in the range of 1 to 4.
mirroring-port-list: List of ports to be added to the port mirroring group. You can specify
multiple ports by providing this argument in the form of { interface-type
interface-number [ to interface-type interface-number ] }&<1-8>, where the
interface-type argument is port type, the interface-number argument is the port number,