Brocade Fabric OS Command Reference Manual (53-1000240-01, November 2006)

2-504 Fabric OS Command Reference Manual
Publication Number: 53-1000240-01
portMirror
2
Note: Enter commands in lowercase only; mixed case is for readability.
The mirror port location can impact the latency of mirrored frames.
Setting up multiple mirror connections on a core-edge platform between devices will mirror additional
traffic. If user has 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.
The portPerfShow command outputs the total number of transmit and receive bytes for each port. In the
case of a mirror port, the portperfshow will show double the amount of traffic because the mirror port
transmits the frame and also receives the frame.
N
ote
The execution of this command is subject to Admin Domain restrictions that may be in place.
Operands This command has the following operands:
slotnumber For bladed systems only, specify 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 list of valid ports. This port
number will be 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:
To add a port mirror connection between two local switch ports:
To add a port mirror connection between a local switch port and a remote switch port:
To delete a port mirror connection between two local switch ports:
To delete a port mirror connection between a local switch port and a remote switch port:
switch:admin> portcfg portmirror 2/1 --enable
Please confirm enable of Mirror Port: 17 (Y,y,N,n): [n] y
switch:admin> portmirror --add 2/1 0x011400 0x012400
switch:admin> portmirror --add 2/1 0x011400 0x240400
switch:admin> portmirror --delete 0x011400 0x012400
switch:admin> portmirror --delete 0x011400 0x240400