Brocade Fabric OS Command Reference Guide v6.1.0 (53-1000599-02, June 2008)

Table Of Contents
Fabric OS Command Reference 507
53-1000599-02
portMirror
2
portMirror
Adds, deletes, or shows mirror connections.
Synopsis portmirror --show
portmirror --add [slotnumber/]portnumber sourceID DestID
portmirror --delete sourceID DestID]
Description Use this command to add, delete, or show a mirror connection between two ports, a source and a
destination port.
The SourceID must be local to the switch. The DestID can be either on the local switch or on a
different switch. Any given SourceID can only participate in four mirror connections. The DestID is
limited by existing mirror connections. If the DestID for an existing connection is to a local switch
DestID, then all unused connections for this switch must go to local switch destination IDs. If the
DestID for an existing connection is to a domain X switch, then all unused mirror connections for
this switch must also go to the same domain X switch.
Each internal or external port can only be a member of four mirror connections. Internal ports are
used when the DestID is on another blade or another switch (i.e. another blade has an E_Port
leading to another switch).
A port mirroring connection on FL_Ports mirrors all traffic originating from or terminating at this
FL_Port. Port mirroring does not support ALPA granularity port mirroring.
A mirror connection can be rejected because of an invalid configuration, no resources, duplicate
entries, mirror port not configured, or an offline connection port.
When in-order deliver (IOD) is enabled, deleting a mirror connection can cause frame loss between
the SourceID and DestID. If IOD is disabled, deleting a mirror connection may introduce an "order of
delivery" error between the SourceID and DestID.
This command displays:
SID Source Port ID.
DID Destination Port ID.
Mirror_Port_Number The port number of the mirror port to mirror the traffic between SourceID and
DestID.
State The state of the mirror connection. The state can either be "Defined" or
"Enabled." In both cases, the port mirroring connection is persistently stored.
A connection that is "Defined" has not been hardware-configured due to at
least one port not being online. A connection that is "Enabled" has been
configured in the hardware.
A new connection cannot conflict with a "Defined" or "Enabled" port mirror connection.
To display all configured mirror ports on a switch, use the portCfgShow command.
Setting up multiple mirror connections on a core-edge platform between devices mirrors additional
traffic. Assuming two mirror connections, device A to device B and device C to device D, the mirror
port will see traffic between A to B and C to D. In addition, the mirror port will see traffic between A
to D and C to B.