$#pragma ident "@(#)socaltest.msg	1.14  01/05/16 SMI"

$ socaltest messages
$ VERBOSE          1 - 1999
$ INFO          2000 - 3999 (also used for LOGFILE and CONSOLE messages)
$ WARNING       4000 - 5999
$ ERROR         6000 - 7999
$ FATAL         8000 - 9999

$ ----------------------------------------------
$ VERBOSE messages
$ ----------------------------------------------

$ SOCAL_USAGE
999 "socaltest [-o option=value]\n\n \
\tdev=<device name> \t\t\n \
\tilb=<enable|disable>\t\tOnly if loop offline\n \
\telb=<enable|disable>\t\tOnly if loop offline\n \
\tlbf=<enable|disable>\t\tOnly if loop online\n \
\trun_all=<User|Critical|All>\tRun patterns\n \
\tptn=<0xpattern>\t\t\tPattern to run\n \
\titer_count=<count>\t\tIteration count\n \
\ttrans_count=<transfer count>\tTransfer count\n \





 



$ SOCALT_GEN_TESTSTART
1000	"Begin socaltest on %s"

$ SOCALT_PASS_INTLOOP
1001	"SOC+ host adapter internal loopback test successful"

$ SOCALT_PASS_HOSTLOOP
1002	"{SOC+ host adapter}--{host} loopback test successful"

$ SOCALT_PASS_EXTLOOP
1003	"External loopback test successful"

$ SOCALT_GEN_TESTDONE
1004	"socaltest on %s done"
 
$ SOCALT_FAIL_ILB
1005	"SOC+ host adapter internal loopback test failed"

$ SOCALT_PASS_HCB
1006	"Host control buffer test passes"

$ SOCALT_START_LBF
1007	"Starting Loop Back Frame test. Pattern: 0x%.8x"

$ SOCALT_PASS_LBF
1008	"Loop Back Frame Test passed.  Pattern: 0x%.8x"

$ SOCALT_LBF_PATTERN
1009	"Performing Loop Back Frame Test. Pattern: 0x%.8x"

$ SOCALT_QUICK_LBF
1010	"Performing Quick Loop Back Frame Test on known bad pattern: 0x%.8x"

$ ----------------------------------------------
$ INFO messages
$ ----------------------------------------------

2000 "Successfully opened and closed SOCAL"


$ ----------------------------------------------
$ ERROR messages
$ ----------------------------------------------

$ SOCALTEST_BAD_PATTERN
6000 "ERROR: Invalid pattern: %s, pattern must be in the form of 0xhex_num"


$ ----------------------------------------------
$ FATAL messages
$ ----------------------------------------------

$ SOCALT_ERR_OPEN
8000	"Couldn't open %s. Probable_Cause(s): <%s> <SOC+ card not installed>\
Recommended_Action(s): <Verify that target SOC+ card is installed properly>

$ SOCALT_ERR_HOSTLOOP
8002	"{SOC+ host adapter}--{host memory} loopback test failed!\
Probable_Cause(s): <Fault in DMA between host and SOC+ host adapter>\
Recommended_Action(s): <Contact your authorized service provider>

$ SOCALT_ERR_EXTLOOP
8006	"SOC+ host adapter external loopback test failed! Probable_Cause(s): \
<Loopback cable not connected> <OEC module faulty or not installed properly>\
Recommended_Action(s): <Connect loopback cable> <Replace OEC module and retry>\
<Call your authorized service representative>

$ SOCALT_ERR_INTLOOP (ilbtest failed)
8009	"SOC+ host adapter internal loopback test failed! Probable_Cause(s): \
<SOC+ host adapter faulty or not properly installed>\
Recommended_Action(s): <Verify that SOC+ host adapter is installed properly>\
<Replace host adapter and retry> <Call your authorized service representative>

$ SOCALT_ERR_FAILIOCTL
8010	"Failed ioctl %s" \
Probable_Cause(s):  <%s><bad cable><bad GBIC><bad HBA><Bad storage device if socal port is connected to storage> \
Recommended_Action(s): <Replace cable><replace GBIC><replace HBA><check test parameters>\
<Try running socal test with loopback cable if connected to storage><Run StorEdge expert on connected storage>


$ SOCALT_ERR_HCBFAIL
8011	"Host control buffer test failed" Probable_Cause(s): <SOC+ host \
adapter faulty> Recommended_Action(s): <Replace host adapter and retry> \
<Call your authorized service representative>

$ SOCALT_ERR_DIAGFAIL
8012	"SOC+ selftest fails" Probable_Cause(s): <SOC+ host \
adapter faulty> Recommended_Action(s): <Replace host adapter and retry> \
<Call your authorized service representative>

$ SOCALT_ERR_XRAMFAIL
8013	"XRAM test fails" Probable_Cause(s): <SOC+ host \
adapter faulty> Recommended_Action(s): <Replace host adapter and retry> \
<Call your authorized service representative>

$ SOCALTEST_ERR_STATFAIL
8014	"Failed to stat %s" Probable_Cause(s): <Incorrect device name>

$ SOCALT_ERR_LBFMISCOMPARE
8015	"Loop Back Frame test failed.  Mismatch in looped back frame.\
Expected: %x; Observed: %x"


$ ER_SYS_COMP
8016 "\nAttempting to run 32 bit binary of this test while in 64 bit mode.\n\
Please run this test from the SUNWvtsst/bin/sparcv9 directory."




$ PROBE Messages

$ ERR_LINK_EXISTS
10000	"Link %s exists!Please remove this link and retry\n"

$ ERR_LINK_STATFAIL
10001	""Could not get info on %s; will not proceed further. \
 Please retry later\n"

$ ERR_OPEN_FAIL
10002	"Failed to open %s(%s)\n"

$ ERR_DEVICE_OPEN_FAIL
10003	"Couldn't open %s.  Probable_Cause: Stale device node\n"

$ ERR_WRITE_FAIL
10004	"couldn't write to %s!(%s)\n"	

$ ERR_TMPFILE
10005	"ERROR:Required temp file %s missing!  Please Reprobe and retry"

$ ERR_STATE_INCOMP
10006	"ERROR: Incomplete or incorrect state data detected.  Please Reprobe and retry"

$ ERR_TEST_NOTALLOW
10007	"ERROR:Testing on this port not allowed. Reason:Connected to an online loop"

$ ERR_LOOPBACK_RUN
10008	"ERROR: Loopback Frame Test cannot be run. Reason:Loop not online" 

$ ERR_LOOPBACK_ONLY
10009	"ERROR: Only Loopback Frame Test allowed. Reason:Connected to an online loop"

$ ERR_NO_EXTERNAL_PATH
10010  "ERROR: Didn't detect an external loopback cable, please check cable"

$ ERR_ELB_ILB_SELECTED
10011  "ERROR: Don't select external and internal loopback tests at the same time"

$ ERR_INVALID_PAT
10012 "ERROR: Invalid pattern. Pattern must in form of 0xhex_number."

$ ERR_INVALID_RUN_ALL
10013 "ERROR: Null string after run_all option."

$ ERR_RUN_ALL_SELECT
10014 "ERROR: Loopback All Patterns should only be selected when Loopback Frame Test is selected."

$ERR_INVALID_DEV
10015   "ERROR: Invalid dev passed in: %d"

$ERR_DEVS_SELECTED
10016   "ERROR: Cannot run socal test while ses tests are selected."
