HP StorageWorks Fabric OS 5.X Administrator Guide (AA-RVHWB-TE, September 2005)

156 Troubleshooting
The following procedures are for checking switch-specific components.
Testing a port’s external transmit and receive path
1. Connect to the switch and log in as admin.
2. Connect the port you want to test to any other switch port with the cable you want to test.
3. Issue the crossPortTest command with the following operands.)
This is a partial list. See the HP StorageWorks Fabric OS 5.x command reference guide for additional
command information:
•[-nframes count], which specifies the number of frames to send
•[-lb_mode mode], which selects the loopback point for the test
•[-spd_mode mode], which selects the speed mode for the test
•[-ports itemlist], which specifies a list of user ports to test
For example:
Testing a switch’s internal components
1. Connect to the switch and log in as admin.
2. Connect the port you want to test to any other switch port with the cable you want to test.
3. Issue the crossporttest -lb_mode 5 command where 5 is the operand that causes the test to be
run on the internal switch components.
The following is partial list of operands—see the HP StorageWorks Fabric OS 5.x command reference
guide for additional command information:
•[-nframes count], specifies the number of frames to send
•[-lb_mode mode], selects the loopback point for the test
•[-spd_mode mode], selects the speed mode for the test
•[-ports itemlist], specifies a list of user ports to test
Table 26 Component test descriptions
Test name Operands Checks
crossporttest [-nframes count]
[-lb_mode mode][-spd_mode mode]
[-gbic_mode mode] [-norestore mode]
[-ports itemlist]
Functional test of port external transmit
and receive path.
The crossport is set to loopback using
an external cable by default. However,
this command can be used to check
internal components by setting the lb
operand to 5.
fporttest [-nframes count] [-ports itemlist]
[-seed payload_pattern]
[-width pattern_width] [-size
pattern_size]
Tests component to and from an HBA.
Used to test online F_Port devices, N_Port
devices, SFPs, and GBICs.
loopporttest [-nframes count]
[-ports itemlist][-seed
payload_pattern]
[-width pattern_width]
Tests only components attached to
switches that are on an FC-AL.
spinfab [nMillionFrames [, ePortBeg
[, ePortEnd
[, setFail]]]]
Tests components between switches, such
as ISLs, SFPs, and GBICs to and from a
neighbor switch.
switch:admin> crossporttest
Running Cross Port Test .... passed.