Command Line Test Examples

To run a single Sun StorEdge diagnostic test from the command line rather than through the Storage Automated Diagnostic Environment interface, you must log into the appropriate Host or Slave for testing the components. The following two tests, the qlctest(1M) and the switchtest(1M) are provided as examples.

qlctest(1M)

The qlctest(1M) comprises several subtests that test the functions of the Sun StorEdge PCI dual Fibre Channel (FC) host adapter board. This board is an HBA that has diagnostic support. This diagnostic test is not scalable.

CODE EXAMPLE 2-1 qlctest(1M)

#/opt/SUNWstade/Diags/bin/qlctest -v -o "dev=

/devices/pci@6,4000/SUNW,qlc@3/fp@0,0:devctlrun_connect =Yesmbox=Disableilb=Disableilb_10=Disableelb=Enable"

"qlctest: called with options: dev=/devices/pci@6,4000/SUNW,qlc@3/ fp@0,0:devctlrun_connect=Yesmbox=Disableilb=Disableilb_10=Disableel b=Enable"

"qlctest: Started." "Program Version is 4.0.1"

"Testing qlc0 device at /devices/pci@6,4000/SUNW,qlc@3/fp@0,0:devctl." "QLC Adapter Chip Revision = 1, Risc Revision = 3,

Frame Buffer Revision = 1029, Riscrom Revision = 4, Driver Revision = 5.a-2-1.15 "

"Running ECHO command test with pattern 0x7e7e7e7e" "Running ECHO command test with pattern 0x1e1e1e1e" "Running ECHO command test with pattern 0xf1f1f1f1"

<snip>

"Running ECHO command test with pattern 0x4a4a4a4a" "Running ECHO command test with pattern 0x78787878" "Running ECHO command test with pattern 0x25252525"

"FCODE revision is ISP2200 FC-AL Host Adapter Driver: 1.12 01/01/16" "Firmware revision is 2.1.7f"

"Running CHECKSUM check" "Running diag selftest" "qlctest: Stopped successfully."

Chapter 2 General Troubleshooting Procedures 19

For Internal Use Only

Page 35
Image 35
Sun Microsystems 3900 Series, 6900 Series manual Command Line Test Examples, Qlctest1M