Predefined user roles
network-admin
mdc-admin
Parameters
group-id: Specifies the number of a mirroring group, in the range of 1 to 64.
local: Specifies a local mirroring group.
remote-destination: Specifies a remote destination group.
remote-source: Specifies a remote source group.
all: Specifies all mirroring groups.
sampler sampler name: Specifies a sampler to be referenced by its name. The sampler name argument
is a case-insensitive string of 1 to 31 characters.
Usage guidelines
A sampler selects a packet from among sequential packets. Port mirroring references a sampler to limit
the volume of traffic to be mirrored. It supports referencing a sampler that has not been created. If you
configure multiple samplers for port mirroring, the most recent configuration takes effect. For more
information about samplers, see Network Management and Monitoring Configuration Guide.
Examples
# Create local mirroring group 1, and reference the sampler samp.
<Sysname> system-view
[Sysname] mirroring-group 1 local sampler samp
mirroring-group mirroring-port (interface view)
Use mirroring-group mirroring-port to configure a source port for a mirroring port.
Use undo mirroring-group mirroring-port to remove a source port from the mirroring group.
Syntax
mirroring-group group-id mirroring-port { both | inbound | outbound }
undo mirroring-group group-id mirroring-port
Default
No source port is configured for any mirroring group.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
group-id: Specifies the number of a mirroring group, in the range of 1 to 64. The mirroring group
specified by the group-id argument must already exist.
both: Mirrors both received and sent packets on the specified port.
183