$  Copyright(c) 2002 Sun Microsystems, Inc.
$  All rights reserved.

$  #ident  "@(#)bsctest.msg 1.6 02/10/29 SMI"

$ Message ID ranges:
$ VERBOSE  1 ~ 1999
$ INFO     2000 ~ 3999
$ WARNING  4000 ~ 5999
$ ERROR    6000 ~ 7999
$ FATAL    8000 ~ 9998
$ 9999 is reserved by test library for old style messages.
$ 0 is reserved and is an invalid message for all tests.

$ *********************************************
$ VERBOSE messages
$ *********************************************
$ TEST_RUN_VMSG 1
1	"Testing %s..."

$ DEV_OPEN_ATTEMPT 2
2 "Attempting to open %s device"

$ DEV_OPEN_SUCCESS 3
3 "%s device opened successfully"

$ REPORT_STATE 4
4 "%s is %s"

$ READ_ATTEMPT 5
5 "Attempting to read %s"

$ SWITCH_MSG 10
10 "Switching %s %s"

$ TESTING_MSG 20
20 "Testing %s"

$ SELFTEST_MSG 30
30 "Executing firmware self-test"

$ SELFTEST_RESULT 32
32 "Selftest no. %d returned 0x%02x"

$ TEXT_MESSAGE 100
100 "%s"

$ *****************************************************
$ INFO messages (including INFO, CONSOLE, and LOGFILE)
$ No double quotes (" ") is needed for INFO messages.
$ *****************************************************

$ TEST_USAGE_INFOMSG 2000
2000	%s specific command arguments:\n\
\tdev\tDevice Name:\tdev=bsc\n\
\ttest\tTest List:\ttest=BSCSelfTests+PSU+Fan+Temp+ToD+OBP+EEPROM+LED\n

$ TEST_ARGLIST_INFOMSG 2001
2001	""

$ OK_MESSAGE_0 3000
3000 "%s OK"

$ EVENT_FOUND  3100
3100 "Expected event was logged"

 
$ *********************************
$ WARNING messages
$ *********************************
$ WARNING_TEMP_EXCEEDED 4000
4000  "Warning temperature exceeded, %s"
Probable_Cause(s): <Fan failure> <Inadequate airflow> \
Recommended_Action(s): <Check fans> <Check and remove obstructions.>



$ ********************************
$ ERROR messages
$ ********************************
$ TEST_ARGUMENT_ERRMSG  6000	
6000	"Please enter an appropriate value, %s=?"
$ BAD_OPTIONS_ERRMSG 6001
6001	"Bad test option: %s"
$ SUBTEST_ERRMSG  6002 
6002	"Found error in subtest"

$ TEST_FINAL_ERRMSG 6004
6004	"Test Failed.  Found %d errors."

$ FAULT_MSG_0 6100
6100 "%s faulty" \
Probable_Causes(s): <Bad or missing power input><Power supply faulty>\
Recommended_Action(s): <Check Power connections><If the problem persists, call your authorized Sun service provider.>

$ OPEN_FAILED_ERROR 7000
7000 "Could not open device %s" \
Probable_Cause(s): <Device driver not installed> <%s hardware faulty>\
Recommended_Action(s): <Install device driver package> <If the problem persists, call your authorized Sun service provider.>

$ READ_FAILED_ERROR 7001
7001 "Failed to read %s: %s"\
Probable_Cause(s): <%s hardware faulty>\
Recommended_Action(s): <If the problem persists, call your authorized Sun service provider.>

$ MALLOC_FAIL_ERROR 7002
7002 "Failed to malloc %d bytes: %s" \
Probable_Cause(s): <System load too high>\ 
Recommended_Action(s):<Reduce system load>

$ SWITCH_FAILED_ERROR 7010
7010 "Failed to switch %s %s: %s" Probable_Cause(s): <bsc hardware faulty>\
Recommended_Action(s):<If the problem persists, call your authorized Sun service provider.> 

$ NO_STATE_CHANGE 7011
7011 "%s failed to change state" \
Probable_Cause(s): <bsc hardware faulty>\
Recommended_Action(s):<If the problem persists, call your authorized Sun service provider.> 

$ UNEXP_EVENT 7012
7012 "Expected event not logged: 0x%02x found (expected 0x%02x)" \
Probable_Cause(s): <bsc hardware faulty>\
Recommended_Action(s):<If the problem persists, call your authorized Sun service provider.> 

$ FAN_UNDERSPEED 7100
7100 "Fan%d under-speed: speed = %d, min speed = %d"\ 
Probable_Cause(s): <Fan faulty>\
Recommended_Action(s):<If the problem persists, call your authorized Sun service provider.> 

$ PICL_INIT_FAILED 7150
7150 "Failed to initialize picl library." \
Probable_Cause(s): <picl daemon is not running> \
<picl daemon is not responding> \
Recommended_Action(s):  <If the problem persists, call your authorized Sun service provider.> 

$ PICL_GET_ROOT_FAILED 7151
7151 "Failed to get picl root device." \
Probable_Cause(s): <picl daemon is not running> \
<picl daemon is not responding> \
Recommended_Action(s):  <If the problem persists, call your authorized Sun service provider.> 

$ PICL_QUERY_FAILED 7152
7152 "Unable to find expected device or property in picl tree." \
Probable_Cause(s): <picl daemon is not running> \
<picl daemon is not responding> \
Recommended_Action(s):  <If the problem persists, call your authorized Sun service provider.> 

$ CANT_SELFTEST 7200
7200 "Failed to execute bsc selftest: %s"\
Probable_Cause(s): <bsc firmware fault> <bsc hardware faulty>\
 <bsc device driver problem>\
Recommended_Action(s):  <If the problem persists, call your authorized Sun service provider.>

$ SELFTEST_FAILED 7210
7210 "bsc %s selftest failed: %s"\
Probable_Cause(s): <bsc firmware fault> <bsc hardware faulty> \
<i2c bus or environmental hardware faulty>\
Recommended_Action(s): <If the problem persists, call your authorized Sun service provider.>

$ TODTEST_FAILED 7260
7260 "bsc time of day test failed: time failed to move forward"\
Probable_Cause(s): <tod hardware faulty> \
<i2c bus hardware faulty>\
Recommended_Action(s): <If the problem persists, call your authorized Sun service provider.>

$ OVERTEMPERATURE 7300
7300 "%s overtemperature"\
Probable_Cause(s): <Fan failure> <Inadequate airflow> \
<Enviromental temperature too high> \
Recommended_Action(s): <Check fans> <Check and remove obstructions> \
<Reduce enviromental temperature to within system operating limits>

$ GETPROMPROPFAILED 7400
7400 "Failed to get \"%s\" openprom property"\
Probable_Cause(s): <OBP failure>\
Recommended_Action(s): <Check OBP firmware> <If the problem persists, call your authorized Sun service provider.>

$ WRONGPROMPROP 7410
7410 "openprom property \"%s\" incorrect, expected \"%s\""\
Probable_Cause(s): <OBP failure>\
Recommended_Action(s): <Check OBP firmware> <If the problem persists, call your authorized Sun service provider.>


$ ********************************
$ FATAL messages
$ ********************************
$

$ ER_BAD_OPTIONS         8000
8000 "Illegal option value passed to bsctest %s=%s." \
Probable_Cause(s): \
<User error.> \
Recommended_Action(s): \
< Check usage by typing bsctest -u>

$ ER_NULL_OPTION        8001
8001       "%s: %s option requires a value"

$ SHUTDOWN_TEMP_EXCEEDED 8100
8100 "Shutdown temperature exceeded, %s."
Probable_Cause(s): <Fan failure> <Inadequate airflow> \
<Enviromental temperature too high>\
Recommended_Action(s): <Check fans> <Check and remove obstructions.> \
<Reduce enviromental temperature to within system operating limits>

$ AUTOSHUTDOWN_FAILED 8110
8110 "Automatic shutdown has failed."
Probable_Cause(s): <Environmental monitoring failure> <bsc hardware failure>\
 <bsc firmware error>\
Recommended_Action(s): <Shut down system immediately. If the problem persists, call your authorized Sun service provider.>
