H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Mirroring
H3C S7500 Series Ethernet Switches Chapter 1
Mirroring Commands
1-7
Parameters
groupId: Group ID of the port mirroring group, in the range of 1 to 20.
inbound: Monitors the received packets only.
outbound: Monitors the transmitted packets only.
mirroring-port-list: Ethernet port list. It means there can be multiple ports. This
argument is provided in the form of port-list = { interface-type interface-number [ to
interface-type interface-number ] }&<1-8>, where Interface-type interface-number
means an Ethernet port, and &<1-8> means you can specify eight Ethernet ports or
Ethernet port lists.
mirrored-to monitor-port: Specifies the destination port.
Description
Use the mirroring-group command to recover the port mirroring configuration.
This command is only used to recover configurations. For example, if you have
configured the port mirroring function on the earlier software release and saved the
configuration to the configuration file, after the software release is upgraded, you can
use this command to recover the former configuration to a form supported by the
upgraded software release.
Examples
# Recover the configuration of mirroring group 2, where ports Ethernet 2/0/1 through
Ethernet 2/0/3 are source ports, Ethernet 2/0/4 is the destination port, and only the
received packets are monitored.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] mirroring-group 2 inbound Ethernet 2/0/1 to Ethernet 2/0/3 mirrored-to
Ethernet 2/0/4
1.1.6 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
View
System view, Ethernet port view
Parameters
group-id: Group number of a port mirroring group, in the range of 1 to 20.