Brocade Fabric OS Command Reference Manual - Supporting Fabric OS v5.3.0 (53-1000436-01, June 2007)

Fabric OS Command Reference Manual 107
53-1000436-01
crossPortTest
2
crossPortTest
This command is deprecated; use portloopback instead, however the test will be local to the port.
Tests functional operation of port external transmit and receive path.
Synopsis crossporttest [-nframes count][-lb_mode mode][-spd_mode mode][-norestore mode][-ports
itemlist]
Description This command verifies the intended functional operation of the switch by sending frames from port
M's transmitter and looping them back through an external fiber cable into port N's receiver, thus
exercising all the switch components, from the main board, to the media, to the fiber cable, to the
media, and back to the main board. With -lb_mode set to 1, it is also possible to test ports with
loopback plugs that connect each port back to itself.
The cables can be connected to any port combination with the one condition; the cables and media
connected must be of the same technology. This means a short wave-length media port must be
connected to another short wave-length media port, using a short wave-length cable, a long
wave-length port must be connected to a long wave-length port, and a copper port must be
connected to a copper port.
For best coverage, connected ports should be from different ASICs. For example, Ports 0 through 3
belong to ASIC 0, ports 4 through 7 belong to ASIC 1, and so forth. A connection from port 0 to port
15 exercises the transmit path between ASICs. A connection from port 0 to port 3 tests only the
internal transmit path in ASIC 0.
Only one frame is transmitted and received at any one time. The port LEDs flicker green while the
test is running.
The command is supported only on Brocade 200E,3250, 3850, 3900,4100, 24000, and 48000
platforms; use portLoopbackTest or miniCycle instead.
The test method is as follows:
Determine which ports are connected to each other.
Enable ports for cabled loopback mode.
Create a Frame F of maximum data size (2112 bytes).
Transmit Frame F through Port M.
Pick up the frame from its cross-connected Port N. An error is reported if any port other than N
actually received the frame.
Check if any of the eight statistic error counters are nonzero: ENC_in, CRC_err, TruncFrm,
FrmTooLong, BadEOF, Enc_out, BadOrdSet, or DiscC3.
Check if the transmit, receive, or Class 3 receiver counters are stuck at some value.
Check if the number of frames transmitted is not equal to the number of frames received.
Repeat steps 3 through 8 for all ports present until the number of frames requested is reached or
all ports are marked bad.
At each pass, a different data type is used to create the frame from a palette of seven types
meaning that if a pass of seven is requested, seven different frames are used in the test. If eight
passes, the first seven frames are unique, and the eighth is the same as the first. The data palette
of seven are: