$ Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
$ Use is subject to license terms.

$  #ident  "@(#)dpmtest.msg  1.11  02/02/22  SMI"


$ --------------------------------------------------
$ DEBUG:	0
$ --------------------------------------------------

$ --------------------------------------------------
$ VERBOSE:	1-1999
$ --------------------------------------------------

$ USAGE
1 \t[-o option=value]\n\n \
\tdev=<dummy path>\t\t(default = ses)\n \
\t\t (Note: This option has no effect in DPMTest, use 'dpmdev' option \n \
\t\t\t for specifying various DPM devices ) \n \
\tdpmdev=<device1+device2+....>\t\t(default = All SSC100s available in the system)\n \
\t\t (Note: Valid SSC100 Device names in a Daktari system\n \
\t\t\t ses0      - SSC100 on Base backplane's LoopA via fibre path \n \
\t\t\t ses1      - SSC100 on Base backplane's LoopB via fibre path \n \
\t\t\t ssc100@16 - SSC100 on Base backplane's LoopA via i2c path \n \
\t\t\t ssc100@1a - SSC100 on Base backplane's LoopB via i2c path \n \
\t\t\t ssc100@1c - SSC100 on Expansion backplane's LoopA via i2c path \n \
\t\t\t ssc100@1e - SSC100 on Expansion backplane's loopB via i2c path ) \n \
\tlb=<Enable|Disable>\t\t\t(default = Enable)\n \
\tfwtest=<Enable|Disable>\t\t\t(default = Enable)\n\n 

$ V_OPTIONS_LIST
2 "dpmtest:  called with options: %s"

$ DEV_MSG
3 "device to test is %s"

$ SELFTEST_DONE
4 "SSC100 Selftest initiated via %s path completed"

$ FLASHTEST_DONE
5 "FlashPROM CRC test initiated via %s path completed"

$ SEEPROMTEST_DONE
6 "SEEPROM CRC test initiated via %s path completed"

$ SSC050A_DONE
7 "SSC050A test initiated via %s path completed"

$ SSC050B_DONE
8 "SSC050B test initiated via %s path completed"

$ SELFTEST_START
9 "Starting SSC100 Selftest via %s path"

$ FLASHTEST_START
10 "Starting FlashPROM CRC test via %s path"

$ SEEPROMTEST_START
11 "Starting SEEPROM CRC test via %s path"

$ SSC050A_START
12 "Starting SSC050A test via %s path"

$ SSC050B_START
13 "Starting SSC050B test via %s path"

$ START_CONNECT
14 "Starting Connection tests"

$ START_FWTESTS
15 "Starting Firmware Based tests via %s path"

$ START_I2C_LPBACKS
16 "Starting loopback packets via I2C interface"

$ START_FIBRE_LPBACKS
17 "Starting loopback packets via Fibre interface"

$ STARTING_CFG_CHECKS
18 "Starting configuration checking"

$ STARTING_FUNC_TESTS
19 "Starting functional testing of Device: %s"

$ END_LPBACKS_SUCCESS
20 "Completed loopback tests successfully"

$ CONFIG_FOUND
21 "Found valid configuration: \"%s\" "

$ LIPTEST_START
22 "Starting LIP Test via %s path"

$ LIPTEST_DONE
23 "LIP test initiated via %s path completed"


$ --------------------------------------------------
$ INFO:		2000 - 3999
$ --------------------------------------------------


$ CONN_FULL_MSG
2000 Connected \n \tDevice: %s<WWN %s, WWPN %s, Product ID \"%s\", Vendor ID \"%s\", Firmware Revision %s, SSC100 hardware revision %s, %d disks installed, %d are spun down, Base Temp %d C (%d F) Status - %s, Expansion Temp %d C (%d F) Status - %s, Recent POST Status  0x%s>

$ CONN__BASE_MSG
2001 Connected \n \tDevice: %s<WWN %s, WWPN %s, Product ID \"%s\", Vendor ID \"%s\", Firmware Revision %s, SSC100 hardware revision %s, %d disks installed, %d are spun down, Base Temp %d C (%d F) Status - %s, Expansion Temp %s Status - %s, Recent POST Status  0x%s>


$ --------------------------------------------------
$ WARNING:	4000 - 5999
$ --------------------------------------------------

$ GETTIME_FAILED
4000 "call to gettimeofday failed; %s \
Probable_Cause(s): <System error> \
Recommended_Actions: <Contact your authorized Sun service providor>"

$ CLOSEDIR_FAILED
4001 "Call to closedir of %s failed; %s.  Test will continue. \
Probable_Cause(s): <Wrong permissions on the directory> \
<System Software> \
Recommended_Actions: <Check directory permissions> \
<Check device permissions> <Contact your authorized Sun service provider>"

$ --------------------------------------------------
$ ERROR/FATAL:	6000 - 7999
$ --------------------------------------------------

$ ER_BAD_OPTIONS
6000 "Bad option passed to test: %s \
Probable_Cause(s): <Wrong entry on command line> \
Recommended_Actions: <Check and retype command line>"

$ BAD_PATH_VARIABLE
6001 "Unrecognizable path : %s \
Probable_Cause(s): <Wrong entry on command line> \
Recommended_Actions: <Check and retype command line>"

$ BAD_ARGS
6002 "Error parsing command line options. \
Probable_Cause(s): <Wrong entry on command line> \
Recommended_Actions: <Check and retype command line>"

$ CONN_OPEN_FAILED
6003 "Device at %s failed to open: %s \
Probable_Cause(s): <Device does not exist> \
<Wrong device entry on command line> \
Recommended_Actions: <Check device tree for device> \
<Check device permissions> <Check and retype command line>"

$ GET_WWN_FAILED
6004 "Cannot get WWN from device %s \
Probable_Cause(s): <Device is not a DPM> \
<Wrong revision of firmware on the disk backplane> \
<Wrong device entry on command line> \
Recommended_Actions: <Check and retype command line> \
<Contact your authorized Sun service provider>"

$ GET_WWPN_FAILED
6005 "Cannot get WWPN from device %s \
Probable_Cause(s): <Device is not a DPM> \
<Wrong revision of firmware on the disk backplane> \
<Wrong device entry on command line> \
Recommended_Actions: <Check and retype command line> \
<Contact your authorized Sun service provider>"

$ OPENDIR_FAILED
6006 "Call to opendir of %s failed; %s \
Probable_Cause(s): <Wrong permissions on the directory> \
<System Software> \
Recommended_Actions: <Check directory permissions> \
<Check device permissions> <Contact your authorized Sun service provider>"

$ GET_VID_FAILED
6007 "Cannot get Vendor ID from device %s; %s \
Probable_Cause(s): <Device is not a DPM> \
<Wrong revision of firmware on the disk backplane> \
<Wrong device entry on command line> \
Recommended_Actions: <Check and retype command line> \
<Contact your authorized Sun service provider>"

$ GET_PID_FAILED
6008 "Cannot get Product ID from device %s; %s \
Probable_Cause(s): <Device is not a DPM> \
<Wrong revision of firmware on the disk backplane> \
<Wrong device entry on command line> \
Recommended_Actions: <Check and retype command line> \
<Contact your authorized Sun service provider>"

$ GET_FWREV_FAILED
6009 "Cannot get Firmware revision from device %s; %s \
Probable_Cause(s): <Device is not a DPM> \
<Wrong revision of firmware on the disk backplane> \
<Wrong device entry on command line> \
Recommended_Actions: <Check and retype command line> \
<Contact your authorized Sun service provider>"

$ GET_STAT_PG_FAIL
6010 "The SSC100 command to extract status page %d failed: %s \
Probable_Cause(s): <Device is not a DPM> \
<Wrong revision of firmware on the disk backplane> \
<Wrong device entry on command line> \
Recommended_Actions: <Check and retype command line> \
<Contact your authorized Sun service provider>"

$ CONN_GET_CFG_FAILED
6011 "The SES command to extract config page failed: %s \
Probable_Cause(s): <Device is not a DPM> \
<Wrong revision of firmware on the disk backplane> \
<Wrong device entry on command line> \
Recommended_Actions: <Check and retype command line> \
<Contact your authorized Sun service provider>"

$ CONN_GET_STAT_FAILED
6012 "The SES command to extract status page over fibre failed: %s \
Probable_Cause(s): <Device is not a DPM> \
<Wrong revision of firmware on the disk backplane> \
<Wrong device entry on command line> \
Recommended_Actions: <Check and retype command line> \
<Contact your authorized Sun service provider>"

$ I2C_LOOPBACK_TIMEOUT
6013 "A Loopback command with packet #%d issued to %s timed out \
Probable_Cause(s): <Cable issue> <External Fibre loop broken> \
<Wrong revision of firmware on the disk backplane> \
Recommended_Actions: <Check external and internal cabling> \
<Contact your authorized Sun service provider>"

$ FIBRE_LOOPBACK_TIMEOUT
6014 "A Loopback command with packet #%d issued to %s timed out \
Probable_Cause(s): <Cable issue> <External Fibre loop broken> \
<Wrong revision of firmware on the disk backplane> \
Recommended_Actions: <Check external and internal cabling> \
<Contact your authorized Sun service provider>"

$ M_BYTE_M_BIT_ERRORS
6015 "Loopback command issued to %s shows multiple data byte/bit errors, first byte at offset 0x%X, Exp: 0x%X, Obs: 0x%X \
Probable_Cause(s): <Bad disk backplane> <External Fibre loop broken> \
<Wrong revision of firmware on the disk backplane> \
Recommended_Actions: <Check external and internal cabling> \
<Contact your authorized Sun service provider>"

$ M_BYTE_S_BIT_ERRORS
6016 "Loopback command issued to %s shows multiple data byte, single bit errors, first byte at offset 0x%X, Exp: 0x%X, Obs: 0x%X \
Probable_Cause(s): <Bad disk backplane> <External Fibre loop broken> \
<Wrong revision of firmware on the disk backplane> \
Recommended_Actions: <Check external and internal cabling> \
<Contact your authorized Sun service provider>"

$ S_BYTE_M_BIT_ERRORS
6017 "Loopback command issued to %s showed multiple bit errors at offset 0x%X, Exp: 0x%X, Obs: 0x%X \
Probable_Cause(s): <Bad disk backplane> <External Fibre loop broken> \
<Wrong revision of firmware on the disk backplane> \
Recommended_Actions: <Check external and internal cabling> \
<Contact your authorized Sun service provider>"

$ S_BYTE_S_BIT_ERRORS
6018 "Loopback command issued to %s showed a single bit error at offset 0x%X, Exp: 0x%X, Obs: 0x%X \
Probable_Cause(s): <Bad disk backplane> <External Fibre loop broken> \
<Wrong revision of firmware on the disk backplane> \
Recommended_Actions: <Check external and internal cabling> \
<Contact your authorized Sun service provider>"

$ SCSI_SEND_DIAG_FAIL
6019 "Send diagnostic command failed; device %s busy. \
Probable_Cause(s): <Backplane reset> <Bad disk backplane> \
<Wrong revision of firmware on the disk backplane> \
<System Software> \
Recommended_Actions: <Check backplane firmware revision> \
<Contact your authorized Sun service provider>"


$ SCSI_REC_DIAG_FAIL
6020 "Receive diagnostic command failed to device %s: %s \
Probable_Cause(s): <Backplane reset> <Bad disk backplane> \
<Wrong revision of firmware on the disk backplane> \
<System Software> \
Recommended_Actions: <Check backplane firmware revision> \
<Contact your authorized Sun service provider>"

$ GET_CONFIG_FAILED   (was GET_CONFIG_I2C)
6021 "Get configuration diagnostic call failed to %s, status %d \
Probable_Cause(s):  <Bad disk backplane> \
<Wrong revision of firmware on the disk backplane> \
<System Software> \
Recommended_Actions: <Check backplane firmware revision> \
<Replace disk backplane> \
<Contact your authorized Sun service provider>"

$ WRONG_PACKET
6022 "Sent loopback packet 0x%X on %s but received packet 0x%X \
Probable_Cause(s):  <Bad disk backplane> \
<Wrong revision of firmware on the disk backplane> \
<System Software> \
Recommended_Actions: <Check backplane firmware revision> \
<Replace disk backplane> \
<Contact your authorized Sun service provider>"

$ WRONG_SEQUENCE
6023 "The sequence number of the %s packet returned doesn't match the sequence number sent \
Probable_Cause(s):  <System overloaded> \
<Wrong revision of firmware on the disk backplane> \
<System Software> \
Recommended_Actions: <Reduce the load on the system and try again> \
<Check backplane firmware revision> \
<Contact your authorized Sun service provider>"

$ UNK_TRANS_ERROR
6024 "AN unknown transaction error occured while talking to the I2C, code = %d" \
Probable_Cause(s):  <Wrong revision of firmware on the disk backplane> \
<System Software> \
Recommended_Actions: <Check backplane firmware revision> \
<Contact your authorized Sun service provider>"

$ TRANSACTION_ERROR
6025 "An I2C transaction error occured at step %d of the process" \
Probable_Cause(s):  <System overloaded> \
<Wrong revision of firmware on the disk backplane> \
<System Software> \
Recommended_Actions: <Reduce the load on the system and try again> \
<Check backplane firmware revision> \
<Contact your authorized Sun service provider>"

$ NOTHING_IN_B
6026 "The loop %s of %s Backplane reports no %s Loop B board is present\
Probable_Cause(s):  <Bad backplane> \
<DPM Failure> <Wrong revision of firmware on the disk backplane> \
<System Software> \
Recommended_Actions: <Check for presence of B card> \
<Replace B card> <Check backplane firmware revision> \
<Contact your authorized Sun service provider>"

$ NO_PRIMARY_PRESENT
6027 "The loop %s of %s backplane reports no primary backplane present \
Probable_Cause(s):  <System misconfigured> \
<DPM Failure> <Wrong revision of firmware on the disk backplane> \
<System Software> \
Recommended_Actions: <Check for presence of base backplane> \
<Replace base backplane> <Check backplane firmware revision> \
<Contact your authorized Sun service provider>"

$ NO_EXPANSION_PRESENT
6028 "The loop %s of %s backplane reports no expansion backplane present \
Probable_Cause(s):  <System misconfigured> \
<DPM Failure> <Wrong revision of firmware on the disk backplane> \
<System Software> \
Recommended_Actions: <Check for presence of expansion backplane> \
<Replace expansion backplane> <Check backplane firmware revision> \
<Contact your authorized Sun service provider>"


$ BP_CONFUSION
6029 "The status retrieved from the %s interface differs from the %s interface; %s 0x%X 0x%X, %s 0x%X 0x%X \
Probable_Cause(s):  <System misconfigured> \
<DPM Failure> <Wrong revision of firmware on the disk backplane> \
<System Software> \
Recommended_Actions: <Check cabling and connectors> \
<Check backplane firmware revision> <Replace affected backplane> \
<Contact your authorized Sun service provider>"


$ TEST_CALL_FAILED
6030 "The %s call failed when run from the %s path (%s), status = %d, errno = %s \
Probable_Cause(s):  <DPM failure> <System busy> \
<DPM Firmware> \
Recommended_Actions: <Check backplanes & replace as necessary> \
<Reduce system load and try again> <check for current DPM firmware>"


$ SSC100_ST_FAILED
6031 "The SSC100 selftest failed when run through the %s path %s \
Probable_Cause(s):  <DPM failure> <System busy> \
<DPM Firmware> \
Recommended_Actions: <Check backplanes & replace as necessary> \
<Reduce system load and try again> <check for current DPM firmware>"


$ FLASH_CRC_FAILED
6032 "The FlashPROM CRC test failed when run through the %s path (%s), Exp: %s, Obs: %s \
Probable_Cause(s):  <DPM failure> <System busy> \
<DPM Firmware> \
Recommended_Actions: <Check backplanes & replace as necessary> \
<Reduce system load and try again> <check for current DPM firmware>"

$ SEEPROM_CRC_FAILED
6033 "The SEEPROM CRC test failed when run through the %s path (%s), Exp: %s, Obs: %s \
Probable_Cause(s):  <DPM failure> <System busy> \
<DPM Firmware> \
Recommended_Actions: <Check backplanes & replace as necessary> \
<Reduce system load and try again> <check for current DPM firmware>"

$ LIP_TEST_FAILED
6034 "The LIP test failed when run through the %s path (%s) \
Probable_Cause(s):  <DPM failure> <System busy> \
<DPM Firmware> \
Recommended_Actions: <Check backplanes & replace as necessary> \
<Reduce system load and try again> <check for current DPM firmware>"

$ BAD_SEQUENCE
6035 "Could not get correct sequence number from the %s \"%s\" diagnostic command to device %s \
Probable_Cause(s):  <System busy> <DPM Firmware> \
Recommended_Actions: <Reduce system load and try again> \
<check for current DPM firmware>"

$ SEEPROM_INVALID
6036 "SEEPROM contents are invalid \
Probable_Cause(s):  <DPM Firmware> <Bad Disk backplane> \
Recommended_Actions: <Confirm correct DPM firmware revision> \
<Replace disk backplane> <Contact your authorized Sun service provider>"

$ SSC050A_TEST_FAILED
6037 "The SSC050A test failed when run through the %s path (%s) \
Probable_Cause(s):  <DPM failure> <System busy> \
<DPM Firmware> \
Recommended_Actions: <Check backplanes & replace as necessary> \
<Reduce system load and try again> <check for current DPM firmware>"

$ SSC050B_TEST_FAILED
6038 "The SSC050B test failed when run through the %s path (%s) \
Probable_Cause(s):  <DPM failure> <System busy> \
<DPM Firmware> \
Recommended_Actions: <Check backplanes & replace as necessary> \
<Reduce system load and try again> <check for current DPM firmware>"

$ I2C_COMMAND_TIMEOUT
6039 "The I2C command to execute the %s to %s never completed \
Probable_Cause(s):  <DPM failure> <System busy> \
<DPM Firmware> \
Recommended_Actions: <Check backplanes & replace as necessary> \
<Reduce system load and try again> <check for current DPM firmware>"

$ I2C_RWS_ERROR
6040 "Failed the I2C sequence to issue the %s command to %s, return=%d \
Probable_Cause(s):  <DPM failure> <System busy> \
<DPM Firmware> \
Recommended_Actions: <Check backplanes & replace as necessary> \
<Reduce system load and try again> <check for current DPM firmware>"

$ GET_HWREV_FAILED
6041 "Cannot get SSC100 hardware revision from device %s, %s \
Probable_Cause(s): <Device is not a DPM> \
<Wrong revision of firmware on the disk backplane> \
<Wrong device entry on command line> \
Recommended_Actions: <Check and retype command line> \
<Contact your authorized Sun service provider>"

$ FIBRE_RWS_ERROR
6042 "Failed the FIBRE sequence to issue the %s command to %s, return=%d \
Probable_Cause(s):  <DPM failure> <System busy> \
<DPM Firmware> \
Recommended_Actions: <Check backplanes & replace as necessary> \
<Reduce system load and try again> <check for current DPM firmware>"

$ INVALID_CONFIG
6043 "Invalid Configuration Detected:  %s \
Probable_Cause(s): <Hardware Not Detected>  <DPM failure> <System busy> \
<DPM Firmware> \
Recommended_Actions: <Check Cables> <Check backplanes & replace as necessary> \
<Reduce system load and try again> <check for current DPM firmware>"

$ GET_POST_STATUS_FAILED
6044 "Cannot get the recent POST STATUS from device %s; %s \
Probable_Cause(s): <Device is not a DPM> \
<Wrong revision of firmware on the disk backplane> \
<Wrong device entry on command line> \
Recommended_Actions: <Check and retype command line> \
<Contact your authorized Sun service provider>"

$ GET_INQUIRY_FAILED
6045 "The SES command to extract INQUIRY data failed; %s \
Probable_Cause(s): <Device is not a DPM> \
<Wrong revision of firmware on the disk backplane> \
<Wrong device entry on command line> \
Recommended_Actions: <Check and retype command line> \
<Contact your authorized Sun service provider>"

$ NON_DAK_PLATFORM
6046 "The DPMTest can not be run on non daktari platforms"

$ NO_DPMHW_FOUND
6047 "DPM hardware not detected in the system \
Probable_Cause(s):  <System misconfigured> \
<DPM Failure> <Couldn't able to access SSC100s on the backplanes> \
Recommended_Actions: <Check Cables> <Check backplanes & replace as necessary> \
<check the fibre/i2c connections to backplanes> <check for current DPM firmware> \
<Contact your authorized Sun service provider>"


$ --------------------------------------------------
$ FATAL:	8000 - 9998
$ --------------------------------------------------

$ BAD_DEVICE_NAME
8000 "Bad device name passed to test: %s \
Probable_Cause(s): <Wrong entry on command line> \
Recommended_Actions: <Check and retype command line>"

$ BAD_DEVICE_NAME1
8001 "Bad device path passed to test: %s \
Probable_Cause(s): <Wrong entry on command line> \
Recommended_Actions: <Check and retype command line>"

$ OPEN_TEST_DEVICE_FAIL
8002 "Cannot open %s; %s \
Probable_Cause(s): <Wrong entry on command line> \
<Failed cables, controller or backplane> \
Recommended_Actions: <Check and retype command line> \
<Contact your authorized Sun service provider>"

$ LOOP_ON_EXPANSION
8003 "Can not run loopback commands on an expansion backplane \
Probable_Cause(s): <Wrong entry on command line> \
Recommended_Actions: <Check and retype command line> \
<Contact your authorized Sun service provider>"

$ I2C_ALT_NOT_FOUND
8004 "The I2C path to this device could not be located \
Probable_Cause(s):  <Wrong command line options> \
<Backplane failure> <System Software> \
Recommended_Actions: <Check & Retype command line options> \
<Replace affected backplane or loopB card> \
<Contact your authorized Sun service provider>"

$ FIBRE_ALT_NOT_FOUND
8005 "The fibre path to this device could not be located \
Probable_Cause(s):  <Wrong command line options> \
<Backplane failure> <System Software> \
Recommended_Actions: <Check & Retype command line options> \
<Replace affected backplane or loopB card> \
<Contact your authorized Sun service provider>"

$ SSC100_HUNG
8006 "The SSC100 at %s appears to be permenantly busy. \
Probable_Cause(s):  <System too busy> \
<Backplane failure> <System Software> \
Recommended_Actions: <Reset system and try again with reduced system load> \
<Replace affected backplane or loopB card> \
<Contact your authorized Sun service provider>"

$ MEM_ALLOC_FAILURE
8007 " Memory allocation failure"

$ OPEN_DEVICE_FAIL
8008 " Can not open the device : %s; %s"

$ --------------------------------------------------
$ PROBE MESSAGES  10001 - ??????
$ --------------------------------------------------

$ PROBE_DUMP_STRING
10001 "*** %s"

$ PROBE_BUFFER_DUMP_HDR
10002 "*** The size of the the %s is %d."

$ PROBE_NO_FIBRE_A
10003 "There is no fibre connection to the base backplane(%s), A loop"

$ PROBE_NO_BASE_BP
10004 "A Base Backplane was not detected in this system"

$ PROBE_DEBUG_DUMP1
10005 "wwn[0] = %x %x %x %x %x %x %x %x\nwwn_valid =%d, valid=%d, base=%d."

$ PROBE_BP_ID_OK
10006 "Backplane ID field OK\n"

$ PROBE_BP_PN_OK
10007 "Backplane Partnumber field OK\n"

$ PROBE_BP_TYPE_OK
10008 "Backplane Type field OK\n"

$ PROBE_ER_PLATFORM
10009 "Sysinfo call failed, %s\n"

$ PROBE_BASE_NOTHING      
10010 "CONFIGURATION ERROR: DPM reports nothing plugged into loop B connector on the LOWER (base) internal FC-AL backplane\n"

$ PROBE_BASE_BOTH         
10011 "CONFIGURATION ERROR: DPM reports multiple cards in B connector on the LOWER (base) internal FC-AL backplane\n"

$ PROBE_EXP_NOTHING       
10012 "CONFIGURATION ERROR: DPM reports nothing plugged into loop B connector on UPPER (expansion) internal FC-AL backplane\n"

$ PROBE_EXP_BOTH          
10013 "CONFIGURATION ERROR: DPM reports multiple cards in B connector on the UPPER (expansion)internal FC-AL  backplane\n"

$ ER_OPENFAILED
10014 "Could not open the device: %s; %s"

$ ER_CFG_FAILED
10015 "Could not execute diagnostic configureation command on this device"

$ PROBE_DPMDEV_EMPTY
10016 "ERROR: At least one device has to be selected under 'Devices to test'\n"

$ PROBE_INVALID_FIBRE
10017 "WARNING: Found fibre path %s with WWPN %s not matching any of the present SCC100's WWPN"

$ PROBE_GETPAR_DRVINST_FAILED
10018 "Failure in getting parent driver instance number of %s\n"
