HP StorageWorks Fabric OS 6.x administrator guide (5697-7344, March 2008)

318 Troubleshooting
The following procedures are for checking switch-specific components.
To test 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. Enter the portloopbacktest -lb_mode 2 command.
To test 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. Enter the portloopbacktest -lb_mode 5 command where 5 is the operand that causes the test
to run on the internal switch components (this is a partial list—see the Fabric OS Command Reference
for additional command information):
[-nframes count]—Specify the number of frames to send.
[-lb_mode mode]—Select the loopback point for the test.
[-spd_mode mode]—Select the speed mode for the test.
[-ports itemlist]—Specify a list of user ports to test.
To test components to and from the HBA:
1. Connect to the switch and log in as admin.
2. Enter the fPortTest command as shown in this example (see the Fabric OS Command Reference for
information on the command options).
switchname:admin> fporttest 100,8,0xaa55,2, 512
Will use pattern: aa55 aa55 aa55 aa55 aa55 aa55 ...
Running fPortTest ........
port 8 test passed.
value = 0
This example executed the fPortTest command 100 times on port 8 with payload pattern 0xaa55,
pattern width 2 (meaning word width) and a default payload size of 512 bytes.
Table 70 Component test descriptions
Test name Operands Checks
fporttest [-nframes count] [-ports itemlist]
[-seed payload_pattern]
[-width pattern_width] [-size
pattern_size]
Tests point-to-point path from the
F_Port to the N_Port and back. Used
to test online F_Port devices, N_Port
devices, SFPs, and GBICs.
loopporttest [-nframes count]
[-ports itemlist][-seed
payload_pattern]
[-width pattern_width]
Only tests components attached to a
switch that are on an FC-AL.
spinfab [-nmegs
count] [-ports itemlist]
[-setfail mode]
Tests switch-to-switch ISL cabling and
trunk group operations.