HP MSR2000/3000/4000 Router Series Network Management and Monitoring Command Reference

189
Default
No source port is configured for a mirroring group.
Views
System view
Predefined user roles
network-admin
Parameters
group-id: Specifies the number of a mirroring group. The mirroring group specified by the group-id
argument must already exist.
The following matrix shows the value ranges for the group-id argument:
MSR2000 MSR3000 MSR4000
Always 1 1 to 6 1 to 6
interface-list: Source port list, containing one or more ports, in the format of interface-list =
{ interface-type interface-number [ to interface-type interface-number ] }&<1-8>. The interface-type
interface-number argument specifies an interface by its type and number. &<1-8> indicates that you can
specify up to eight interface-type interface-number [ to interface-type interface-number ] parameters.
When you use to to specify an interface range, the start and end interfaces must be of the same type on
the same card, and the end interface number must be equal to or greater than the start port number.
both: Mirrors both received and sent packets on the specified ports.
inbound: Mirrors only received packets on the specified ports.
outbound: Mirrors only sent packets on the specified ports.
Usage guidelines
You can configure source ports only for local mirroring groups.
A port can belong to only one mirroring group.
Examples
# Create local mirroring group 1, configure Ethernet 1/1 as a source port of the mirroring group, and
configure the mirroring group to monitor the bidirectional traffic of the port.
<Sysname> system-view
[Sysname] mirroring-group 1 local
[Sysname] mirroring-group 1 mirroring-port ethernet 1/1 both
Related commands
mirroring-group
mirroring-group monitor-port (interface view)
Use mirroring-group monitor-port to configure the port as the monitor port for a mirroring group.
Use undo mirroring-group monitor-port to remove the monitor port of a mirroring group.
Syntax
mirroring-group group-id monitor-port