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

2-106 Fabric OS Command Reference Manual
Publication Number: 53-1000240-01
crossPortTest
2
Note: Enter commands in lowercase only; mixed case is for readability.
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:
CSPAT: 0x7e, 0x7e, 0x7e, 0x7e, ...
BYTE_LFSR: 0x69, 0x01, 0x02, 0x05, ...
CHALF_SQ: 0x4a, 0x4a, 0x4a, 0x4a, ...
QUAD_NOT: 0x00, 0xff, 0x00, 0xff, ...
CQTR_SQ: 0x78, 0x78, 0x78, 0x78, ...
CRPAT: 0xbc, 0xbc, 0x23, 0x47, ...
RANDOM: 0x25, 0x7f, 0x6e, 0x9a, ...
The crossPortTest command behavior depends on the modes activated.
SwitchEnable or SwitchDisable Mode
In online mode (in which the switch is enabled prior to executing the crossPortTest command), only
ports that are cable loopbacked to ports in the same switch are tested. Ports connected outside of the
switch are ignored.
To run the crossPortTest command successfully the test must find at least one port (-lb_mode = 1, this
is the default) or two ports (-lb_mode = 0) cable loopbacked to each other. If this criteria is not met, one
of the following message is displayed:
Need at least 1 port(s) connected to run this test.
Need at least 2 port(s) cross-connected to run this test.
In offline mode (when the switch is disabled prior to executing the crossPortTest command) all ports
are assumed to be cable loopbacked to different ports in the same switch. If one or more ports are not
connected, the test aborts.
N
ote
All ports must be connected using loopback plugs or loopback cables for this test to run correctly in
offline mode.
The test determines which port is connected to which port transmitting frames. If any ports are not
properly connected (improperly seated SFPs or cables, bad SFPs or cables, or improper connection or
improper connection of SWL to LWL), the following message is displayed:
One or more ports is not active, please double check
fibre channel connections on all ports.
Since this test includes the media and the fiber cable in its test path, its results combined with the results
of portLoopbackTest and spinSilk can be used to determine which components of the switch are faulty.
It is also possible to use loopback modes 3 and 5 to further isolate failures; refer to -lb_mode, below.
Operands This command has the following operands:
-nframes count Specify the number of frames to send. The test will progress until the specified
number of frames has been transmitted on each port. The default value is 10.
-lb_mode mode Specify the loopback mode for the test. By default, crossPortTest uses mode 1
port loopback. Valid values are:
0 Cable loopback
1 Port loopback (loopback plugs)
2 External (SERDES) loopback