User Manual

Fabric OS 5.0.0 procedures user guide 195
Example:
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. Issue the crossporttest -lb_mode 5 command.
Where 5 is the operand that causes the test to be run on the internal switch components (this is a
partial list—refer to the Fabric OS Command Reference Manual 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.
To test components to and from the HBA:
1. Connect to the switch and log in as admin.
2. Issue the fPortTest command (refer to the HP StorageWorks Fabric OS 4.x command reference
guide for information on the command options).
Example:
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.
See Table 33 for a list of additional tests that can be used to determine the switch components that are not
functioning properly. Refer to the HP StorageWorks Fabric OS 4.x command reference guide for
additional command information.
switch:admin> crossporttest
Running Cross Port Test .... passed.
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
Table 33 Switch component tests
Test Function
portloopbacktest Functional test of port N to N path.
portregtest A read and write test of the ASIC SRAMs and registers.
spinsilk Functional test of internal and external transmit and receive paths at full
speed.
sramretentiontest Verifies that the data written into the miscellaneous SRAMs in the ASIC
are retained after a 10-second wait.
crossporttest Verifies the functional components of the switch.