-----------------------------------------------------------
Selected On-Board Diagnostic Tests page E-1 test device alias, test device pathname page E-2 test-all page E-2 watch-clock page E-2 watch-net, watch-aui, watch-tpe, watch-net-all page E-3 probe-scsi, probe-scsi-all page E-5 test-memory page E-6 power-off page E-7 -----------------------------------------------------------
Caution -
To run diagnostics at the ok prompt, you must shut down the system in an orderly manner. When the operating system or any other stand- alone program is booted, do not use the Stop(L1)-a keys to halt the system. Abruptly aborting the operating system may cause damage to data files.The test command, combined with a device alias or device pathname, executes that device selftest program. If a device has no selftest program, this message is displayed: No selftest method for device name.
To run the selftest program for a device, type the test command followed by the device alias or device pathname.
For example:
-----------------------------------------------------------------
ok test floppy Testing floppy disk system. A formatted disk should be in the drive. Test succeeded. -----------------------------------------------------------------
The test-all command tests all devices in the system which have a selftest program. Disks, tapes, and CDROMs are not tested by test-all. Tests are executed in order using the device tree (viewed with the show-devs command) as reference.
--------------
ok test-all --------------
Displays seconds from the NVRAM/TOD (Non-Volatile RAM/Time of Day). The counter counts from 0 to 59 repeatedly. For example:
--------------------------------------------------------------
ok watch-clock Watching the 'seconds' register of the real time clock chip. It should be 'ticking' once a second. Type any key to stop 41 --------------------------------------------------------------
To interrupt the test, press any key on the keyboard.
These tests monitor broadcast Ethernet packets on the Ethernet cable(s) connected to the system. Good packets received by the system are displayed on the screen by a period (.). Errors are indicated with an X and the error description. For example:
-----------------------------------------------------------------
ok watch-net Internal loopback test -- succeeded. External loopback test -- Auto-selecting Ethernet cable I/F Trying AUI Received packet on AUI Select cable - AUI succeeded. Looking for Ethernet packets. '.' is a good packet. "X" is a bad packet. Type any key to stop. ............................................................... ............................................................... ...................Framing error CRC error X................... -----------------------------------------------------------------
The SPARCstation 10 system has two types of on-board Ethernet interfaces, 10BaseT (also called twisted-pair Ethernet or TPE) and 10Base5 (also called thick Ethernet or AUI). Only one on-board interface may be connected at a time. The system can automatically select which interface is connected and active.
The AUI port is first tested by transmitting packets and checking for No Carrier or response packets. If the AUI test fails, the TPE port is then tested.
Typing watch-net causes this automatic selection to take place. You may see these messages:
--------------------------------------------------------------
ok watch-net Internal loopback test -- succeeded. External loopback test -- Auto-selecting Ethernet cable I/F Trying AUI AUI Carrier Loss Trying TPE Received packet on TPE Select cable - TPE succeeded --------------------------------------------------------------
You can also control the selection of Ethernet interfaces to monitor by using specific commands. Use watch-tpe to monitor the 10BaseT (TPE) connection or watch-aui to monitor the 10Base5 (thicknet) connection. For example:
-----------------------------------------------------------------
ok watch-tpe Internal loopback test -- succeeded. External loopback test -- succeeded. Looking for Ethernet packets. '.' is a good packet. 'X' is a bad packet. Type any key to stop. ............................................................... -----------------------------------------------------------------
The watch-net-all command monitors Ethernet packets on all Ethernet interfaces installed in the system, one at a time. For example, if you have an SBus Ethernet card installed in one of the system SBus slots, watch-net-all will start by monitoring Ethernet transmissions detected by that card.
When you interrupt the test on that interface by pressing any key,
watch-net-all then goes on to test the next Ethernet interface it finds in the
system.
For example:
-----------------------------------------------------------------
ok watch-net-all /iommu@f,e0000000/sbus@f,e0001000/lebuffer@1,40000/le@1,60000 Internal loopback test -- succeeded. External loopback test -- succeeded. Looking for Ethernet packets. '.' is a good packet. 'X' is a bad packet. Type any key to stop. ............................................................... ....................(keyboard key pressed here) /iommu@f,e0000000/sbus@f,e0001000/ledma@f,400010/le@f,c00000 Internal loopback test -- succeeded. External loopback test -- succeeded. Looking for Ethernet packets. '.' is a good packet. 'X' is a bad packet. Type any key to stop. ............................................................... ............................................................... -----------------------------------------------------------------
The probe-scsi test sends an inquiry command to internal and external SCSI devices connected to the SPARCstation 10 on-board SCSI interface. If a SCSI device is connected and powered up, the target address, unit number, device type, and manufacturer name should be displayed. For example:
--------------------------------------------------------------
ok probe-scsi Target 3 Unit 0 Disk SEAGATE ST1480 SUN04245828 Copyright (c) 1991 Seagate All rights reserved. --------------------------------------------------------------
The probe-scsi-all test sends an inquiry command to all SCSI devices connected to the built-in SCSI port and to all the SCSI host adapters installed in the system. The probe-scsi-all command returns:
For example:
---------------------------------------------------------------------
ok probe-scsi-all /iommu@f,e0000000/sbus@f,e0001000/dma@1,81000/esp@1,80000 Target 2 Unit 0 Disk SEAGATE ST41600N SUN1.3G00286965 Copyright (c)1991 Seagate All rights reserved. /iommu@f,e0000000/sbus@f,e0001000/espdma@f,400000/esp@f,800000 Target 3 Unit 0 Disk SEAGATE ST1480 SUN04245828 Copyright (c)1991 Seagate All rights reserved. ---------------------------------------------------------------------
Tests all of the system main memory if the system diag-switch? parameter is true. If the diag-switch is set to false, it tests the memory according to the number specified in selftest-#megs. When the test-memory diagnostic is running, the number of Mbytes being tested is displayed and counted down to zero during the test.
If the diag-switch? parameter is false, this test uses the
selftest-#megs parameter in NVRAM to determine how much memory to
test. The default for the selftest-#megs parameter is 1, so only 1 Mbyte of
memory is tested.
To change the amount of memory tested using the selftest-#megs parameter to 16 Mbytes, type this command:
------------------------------
ok setenv selftest-#megs 16 ------------------------------
This sets the desired memory size to 16 Mbytes. Use any whole number as long as it does not exceed the actual size of memory (in Mbtyes) installed in the system. When the test-memory diagnostic is running, the number of megabytes being tested is displayed and counted down to zero during the test.
This command turns the power off. You must have a Type 5 keyboard attached in order to use this command. Press the power on key on the Type 5 keyboard to turn the system on again.