Brocade Fabric OS Command Reference Manual v6.2.0 (53-1001186-01, April 2009)

624 Fabric OS Command Reference
53-1001186-01
portMirror
2
Use the portPerfShow command to display the total number of transmit and receive bytes for each
port. In the case of a mirror port, this command shows twice the amount of traffic, because the
mirror port transmits the frame and also receives the frame.
Notes The port mirroring feature is not supported on all platforms. Refer to the Fabric OS Administrator's
Guide for more information.
The port mirror feature is blocked in Virtual Fabric mode.
The mirror port location can impact the latency of mirrored frames.
The execution of this command is subject to Virtual Fabric or Admin Domain restrictions that may
be in place. Refer to chapter 1, “Using Fabric OS commands” and Appendix A, “Command
Availability” for details.
Operands This command has the following operands:
--show Displays all configured mirror connections.
--add Adds a mirror connection between a source port and a destination port. The
slotnumber/ portnumber is the mirrored traffic output port.
--delete Deletes a mirror connection between a source and a destination.
slotnumber For bladed systems only, specifies the slot number of the port on which the
mirror port is located, followed by a slash (/).
portnumber Specifies the number of the port on which the mirror port is located, relative
to its slot for bladed systems. Use switchShow for a listing of valid ports. This
port is the mirror port in which the mirror traffic is shown.
SourceID Specifies the 3-byte SID (source ID) of the originator device, in "0xDDAAPP"
format, where DD is Domain ID, AA is Area ID and PP is AL_PA ID. For
example, 0x050200 has a domain ID of 5, an area ID of 2, and AL_PA ID of 0.
SourceID and DestID cannot both be 0x000000.
DestID Specifies the 3-byte DID (destination ID) of the destination device, in
"0xDDAAPP" format, where DD is Domain ID, AA is Area ID and PP is AL_PA ID.
For example, 0x050200 has a domain ID of 5, an area ID of 2 and an AL_PA
ID of 0. SourceID and DestID cannot both be 0x000000.
Examples To configure a port as a mirror port:
switch:admin> portcfg portmirror 2/1 --enable
Please confirm enable of Mirror Port: 17 (Y,y,N,n): [n] y
To add a port mirror connection between two local switch ports:
switch:admin> portmirror --add 2/1 0x011400 0x012400
To add a port mirror connection between a local switch port and a remote switch port:
switch:admin> portmirror --add 2/1 0x011400 0x240400
To delete a port mirror connection between two local switch ports:
switch:admin> portmirror --delete 0x011400 0x012400