HP StorageWorks Fabric OS 5.0.0 Command Reference Guide (AA-RW1MA-TE, May 2005)

Fabric OS 5.0.0 command reference guide 471
Operands
This command has the following operands:
Examples
To run a functional test of a connection:
--slot number Specify the slot number on which the diagnostic will operate. The
ports specified will be relative to this slot number. The default is set to
0 and designed to operate on fixed-port-count products.
-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, this test uses
internal loopback. Valid values are as follows:
1 Port Loopback (loopback plugs)
2 External (SERDES) loopback
5 Internal (parallel) loopback
-spd_mode mode Specify the speed mode for the test. This parameter is used only with
Bloom and Condor ASIC-based products, where it controls the speed
at which each port is operated. For 1 Gb/s-only products, it is
ignored. The exact operation of speed modes 5 through 8 depends
upon the loopback mode selected. When speed modes 5 through 8
are used with cables, they must be connected even to odd or the test
will fail.
0 Runs test at 1 Gb/s, 2 Gb/s, and 4 Gb/s.
1Runs test at 1 Gb/s.
2 Runs test at 2 Gb/s (Bloom default).
4 Runs test at 4 Gb/s (Condor default).
For lb_mode == 0,1 the following speed modes are available to test
the speed negotiation:
3 Set all even ports' speed for autonegotiate; set all odd ports'
speed for 1 Gb/s.
4 Set all even ports' speed for autonegotiate; set all odd ports'
speed for 2 Gb/s.
5 Set all odd ports' speed for autonegotiate; set all even ports'
speed for 1 Gb/s.
6 Set all odd ports' speed for autonegotiate; set all even ports'
speed for 2 Gb/s.
For lbMode == 2,3 the following speed modes are available to test
FIFO underrun.
3,5 Set all even ports' speed for 2 Gb/s; set all odd ports'
speed for 1 Gb/s.
4,6 Set all even ports' speed for 1 Gb/s; set all odd ports'
speed for 2 Gb/s.
-ports itemlist Specify a list of user ports to test. By default, all of the user ports in
the current switch are tested. This option can be used to restrict
testing to the specified ports.
switch:admin> portloopbacktest -ports 1/38-1/45 -nframes 1 -lb_mode 1
Running Port Loopback Test ....
passed.