Brocade Fabric OS Command Reference Manual - Supporting Fabric OS v5.3.0 (53-1000436-01, June 2007)

Fabric OS Command Reference Manual 519
53-1000436-01
portRegTest
2
portRegTest
Reads and writes test of the ASIC SRAMs and registers.
Synopsis portregtest [--slot slotnumber][-ports itemlist][-skiptests mask][-verbose mode]
Description Use this command to verify that SRAM and register data bits in each ASIC can be independently
written and read.
The test method used is to write a walking 1 pattern to each bit location. This is done by writing a
pattern of 0x00000001 to register N. Read and ensure that the same pattern previously written is
read back. Shift the pattern to the left by 1 bit (to 0x00000002)and, repeat the write, read, and
compare cycle. Shift again and repeat until the last writable bit in register N is reached
(0x80000000 for a 32-bit register).
For example, a 6-bit register is effectively tested with the following patterns:
0x0001 0x0002 0x0004 0x0008
0x0010 0x0020 0x0040 0x0080
0x0100 0x0200 0x0400 0x0800
0x1000 0x2000 0x4000 0x8000
Repeat these steps until all ASIC SRAMs and registers are tested.
The command is supported only on Brocade 200E, 3250, 3850, 3900, 4100, 24000, and 48000
platforms; use turboRamTest instead.
The execution of this command is subject to Admin Domain restrictions that may be in place.
Operands This command has the following operands:
--slot slotnumber Specify the slot number on which the diagnostic operates. The ports specified
are relative to this slot number. The default is 0.
-ports itemlist Specify a list of blade ports to test. By default, all the blade ports in the
specified slot are used. Refer to itemList for further details.
-skiptests mask A bit mask that defines which of the register test subtests to skip. By default,
all subtests are performed. Valid mask values include one or more of the
following:
0x2 Skip retry register test.
0x4 Skip statistics register test.
0x8 Skip walk-1 test.
0x10 Skip credit counter test.
-verbose mode Specify a nonzero value to enable verbose mode. The default value is to
disable this mode.
Examples To run a bit write/read test of the ASIC SRAMs and registers:
switch:admin> portregtest -ports 1/0-1/15
Running Port Register Test ....
Test Complete: "portregtest" Pass 1 of 1
Duration 0 hr, 0 min & 33 sec (0:0:33:447).
passed.