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

$  #pragma ident  "@(#)env4test.msg  1.0  99/05/06  SMI"


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

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

$ USAGE
1 "env4test [-o option=value]\n \

 
$ MSG_RCVD
2 Message received: type %d %s.

$ START_TEST
3 Starting Test: %s\t\t

$ EXIT_TEST
4 Exiting Test: %s

$ PRINT_TEMPS
1000 \n%s:\n \
\tdie:\t%d\tamb:\t%d\n \
\tconv. rate:\t\t%d\n \
hard thresholds:\n \
\thigh:\t%d\tlow:\t%d\n \
oper. thresholds:\n \
\thigh:\t%d\tlow:\t%d\n

---------------------------------------------------------

$ USAGE
1 "env4test [-o option=value]\n\n \
 	FpgaIDTest        = <text> ENABLE|DISABLE \n\
 	MidPlaneIDTest    = <text> ENABLE|DISABLE \n\
 	ContinuityTest    = <text> ENABLE|DISABLE \n\
 	SlotLedsTest      = <text> ENABLE|DISABLE \n\
 	DiskLedsTest      = <text> ENABLE|DISABLE \n\
 	PsupplyLedsTest   = <text>  ENABLE|DISABLE \n\
 	FanLedsTest  	  =  <text>  ENABLE|DISABLE \n\
 	ScbLedsTest  	  =  <text> ENABLE|DISABLE \n\
 	FtmLedsTest  	  = <text> ENABLE|DISABLE \n\
 	GreenLedsBlinkTest  =  <text>  ENABLE|DISABLE \n\
 	RegTest  	  =  <text>  NONE|MARCH3N|MARCH5N|MARCHXTALK \n\
 	FruPresenceTest   =  <text>  ENABLE|DISABLE \n\
 	HealthTest  	  =  <text>  ENABLE|DISABLE \n\
 	PowerSupplyTest   =  <text>  ENABLE|DISABLE \n\
 	TempTest 	  =  <text>  ENABLE|DISABLE \n\
 	FanTest  	  =  <text>  ENABLE|DISABLE \n\
 	InterruptTest  	  =  <text>  ENABLE|DISABLE \n\
 	TempStatus  	  =  <text>  ENABLE|DISABLE \n\
 	PsupplyStatus  	  =  <text>  ENABLE|DISABLE \n\
 	FanStatus  	  =  <text>  ENABLE|DISABLE \n\
 	AllTests          =  <text>  ENABLE|DISABLE \n\
 	AutoStartEnvmond  =  <text>  ENABLE|DISABLE \n "

 
$ MSG_RCVD
2 Message received: type %d %s.

$ MONITOR_HEADER
3 \t\tTEMPERATURE\t\t  FANSPEED\tFRONT PANEL\tPOWER FAIL\n\n \
AMB  CPU0 CPU1 CPU2 CPU3 PS0  PS1  PS2 | CPU  PS AFB | D P T G A KEY  | PS0 PS1 PS2\n \
---------------------------------------|-------------|----------------|------------\n

$ MONITOR_DATA
4  %2d   %2d   %2d   %2d   %2d   %2d   %2d   %2d  | %3d %3d %3d | %d %d %d %d %d %4s |  %d   %d   %d\n

$ START_TEST
5 Starting Test: %s\t\t

$ EXIT_TEST
6 Exiting Test: %s\n

$ FANS_FOUND
1000 "%d fanbanks found."
 
$ FANS_STAT
1001 "%s fanbank: state %d speed %d."

$ KEY_STAT
1002 "The keyswitch is set to %s."

$ PS_STAT
1003 "PS Type %d  PS Slot %d  PS State %d PS Temperature %d"

$ AMB_TEMP_STAT
1004 "The ambient temperature is %d"

$ CPU_TEMP_STAT
1005 "CPU %d temperature is %d"

$ VB_SCB_STATE
1022 "scsb mode: 0x%x\n"

$ VB_SCB_STATE_UP
1023 "	SCSB_UP\n"

$ VB_SCB_STATE_OPEN
1024 "	SCSB_OPEN\n" 

$ VB_SCB_STATE_EXCL
1025 "	SCSB_EXCL\n"

$ VB_SCB_STATE_LOCKED
1026 "	SCSB_LOCKED\n"

$ VB_SCB_STATE_RUNNING
1027 "	SCSB_RUNNING\n" 

$ VB_SCB_STATE_FROZEN
1026 "	SCSB_FROZEN\n"

$ VB_SCB_STATE_DEBUG
1027 "	SCSB_DEBUG_MODE\n"

$ VB_SCB_STATE_KLUGE
1028 " SCSB_DIAGS_MODE\n"

$ VB_SCB_STATE_KLUGE
1029 " SCSB_P06_NOINT_KLUGE\n"
	
$ VB_SCB
1030 " scsb debug level is 0x%x\n"

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

$ CONNMSG
2000 %s: <Temperature:CPU0=%3s,CPU1=%3s,MB0=%d,MB1=%d,PDB=%d,SCSI=%d,Fans:Speed=%d,State=%d,\
Front_Panel:Disk_Fault=%d,Power_Fault=%d,Temperature=%d,General_Fault=%d,Activity=%d,Keyswitch=%s,Power_Fault:PS0=%c,PS1=%c>

$ REVISION_MSG
2001 \t%s\t\t%s\t%s

$ PSUPPLY_STATUS_MSG
2002 \nPower Supply seated : [%d]\nPower Supply operational : [%d]\nPower Supply operating temp : \
 [%d]\nPower Supply fan : [%d]\nPower Supply on/off : [%d]\nPower Supply version type  : [%d]

$ FAN_STATUS_MSG
2003 \nFan seated : [%d]\nFan operational : [%d]\nFan speed : \
 [%d]\nFan version type : [%d]

$ INFO ROUTINE_MSG
2004 env4test specific arguments:\n\
	FpgaIDTest        = <text> ENABLE|DISABLE \n\
        MidPlaneIDTest    = <text> ENABLE|DISABLE \n\
        ContinuityTest    = <text> ENABLE|DISABLE \n\
        SlotLedsTest      = <text> ENABLE|DISABLE \n\
        DiskLedsTest      = <text> ENABLE|DISABLE \n\
        PsupplyLedsTest   = <text>  ENABLE|DISABLE \n\
        FanLedsTest       =  <text>  ENABLE|DISABLE \n\
        ScbLedsTest       =  <text> ENABLE|DISABLE \n\
        FtmLedsTest       = <text> ENABLE|DISABLE \n\
        GreenLedsBlinkTest  =  <text>  ENABLE|DISABLE \n\
        RegTest           =  <text>  NONE|MARCH3N|MARCH5N|MARCHXTALK \n\
        FruPresenceTest   =  <text>  ENABLE|DISABLE \n\
        HealthTest        =  <text>  ENABLE|DISABLE \n\
        PowerSupplyTest   =  <text>  ENABLE|DISABLE \n\
        TempTest          =  <text>  ENABLE|DISABLE \n\
        FanTest           =  <text>  ENABLE|DISABLE \n\
        InterruptTest     =  <text>  ENABLE|DISABLE \n\
        TempStatus        =  <text>  ENABLE|DISABLE \n\
        PsupplyStatus     =  <text>  ENABLE|DISABLE \n\
        FanStatus         =  <text>  ENABLE|DISABLE \n\
        AllTests          =  <text>  ENABLE|DISABLE \n\
        AutoStartEnvmond  =  <text>  ENABLE|DISABLE \n 

 

$ --------------------------------------------------
$ WARNING:	4000 - 5999
$ --------------------------------------------------
$ ER_DRIVER_OPEN_TEMP
4000 "Unable to open temp driver %s : <%s>" \
Probable_Cause(s): \
<Device name is wrong or driver is not loaded.> \
<Device Busy> \
Recommended_Action(s): \
<Check device name if entered or load driver.> \
<Kill all other processes accessing driver.>


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

$ --------------------------------------------------
$ FATAL:	8000 - 9998
$ --------------------------------------------------
 
$ ER_DRIVER_OPEN_TEMP
8000 "Unable to open temp driver %s : <%s>" \
Probable_Cause(s): \
<Device name is wrong or driver is not loaded.> \
<Device Busy> \
Recommended_Action(s): \
<Check device name if entered or load driver.> \
<Kill all other processes accessing driver.>

$ ER_GET_TEMP
8001 "Unable to get temperature : <%s>" \
Probable_Cause(s): \
<System software error.> \
<Hardware failure.> \
Recommended_Action(s): \
<Replace hardware.> \
<Consult /var/adm/messages file for more information.>

$ ER_MALLOC
8002 "Unable to allocate memory using malloc : <%s>" \
Probable_Cause(s): \
<System software error.> \
Recommended_Action(s): \
<Consult /var/adm/messages file for more information.>

$ ER_FUNC_CALL
8003 "Error encountered during call to %s." \
Probable_Cause(s):<> \
Recommended_Action(s):<>

$ ER_BAD_OPTIONS
8004 "Illegal options passed to env4test : <%s>" \
Recommended_Action(s): \
< Check usage by typing env4test -u>

$ ER_GET_CONV_RATE
8005 "Could not get temp sensor conversion rate : <%s>" \
Probable_Cause(s): \
<System software error.> \
<Hardware failure.> \
Recommended_Action(s):
<Replace hardware.> \
<Consult /var/adm/messages file for more information.>

$ ER_GET_TEMP_HIGH_LIMIT
8006 "Unable to get high temperature limit, ret == %d; <%s>" \
Probable_Cause(s): \
<System software error.> \
<Hardware failure.> \
Recommended_Action(s): \
<Replace hardware.> \
<Consult /var/adm/messages file for more information.>

$ ER_GET_TEMP_LOW_LIMIT
8007 "Unable to get low temperature limit : <%s>" \
Probable_Cause(s): \
<System software error.> \
<Hardware failure.> \
Recommended_Action(s): \
<Replace hardware.> \
<Consult /var/adm/messages file for more information.>

$ER_DI_INIT
8008 ""di_init() did not work: <%s>" \
Probable_Cause(s): \
<System software error.> \
Recommended_action(s): \
<Run /usr/sbin/devfsadm.>

$ ER_DI_DRV_FIRST_NODE
8009 "di_drv_first_node() did not work: <%s>" \
Probable_Cause(s): \
<System software error.> \
Recommended_action(s): \
<Run /usr/sbin/devfsadm.>

$ ER_DI_DEVFS_PATH
8010 "di_devfs_path() did not work: <%s>" \
Probable_Cause(s): \
<System software error.> \
Recommended_action(s): \
<Run /usr/sbin/devfsadm.>

$ER_DI_INIT2
8011 ""di_init() did not work second time: <%s>" \
Probable_Cause(s): \
<System software error.> \
Recommended_action(s): \
<Run /usr/sbin/devfsadm.>

$ER_KSTAT_LOOKUP
8012 ""kstat_lookup() did not work: <%s>" \
Probable_Cause(s): \
<System software error or invalid function designator> \
Recommended_action(s): \
<Run /usr/sbin/devfsadm.>

$ER_KSTAT_READ
8013 ""kstat_read() did not work: <%s>" \
Probable_Cause(s): \
<System software error or invalid pointer> \
Recommended_action(s): \
<Run /usr/sbin/devfsadm.>

$ER_PSUPPLY_OFF_FAIL
8014 "" Power supply fail to switch off remotely: <%d> "\
Probable_Cause(s): \
<Kstat update failure> \
<Break in PS_OFF trace on PCB> \
<Other remote source asserting ON> \
Reccomended_actions(s): \
<Check for opens.>


$ER_PSUPPLY_ON_FAIL
8015 "" Power supply fail to switch on remotely: <%d> "\
Probable_Cause(s): \
<Kstat update failure> \
<Break in PS_ON trace on PCB> \
<Other remote source asserting OFF> \
Reccomended_actions(s): \
<Check for opens.>


$ER_PSUPPLY_INTENABLE_FAIL
8016 "" Power supply failed to enable interrups: <%d> "\
Probable_Cause(s): \
<Driver read/write logic> \
<Hardware read/write logic>  \
Reccomended_actions(s): \
<Verify interrupt mask.>


$ER_PSUPPLY_INTDISABLE_FAIL
8017 "" Power supply failed to disable interrups: <%d> "\
Probable_Cause(s): \
<Driver read/write logic> \
<Hardware read/write logic>  \
Reccomended_actions(s): \
<Verify interrupt mask.>


$ER_FAN_LOW_FAIL
8018 "" Fan failed to switch to low speed: <%d> "\
Probable_Cause(s): \
<Driver read/write logic> \
<Hardware read/write logic>  \
<Break in trace on connector> \
<Other remote source asserting OFF> \
Reccomended_actions(s): \
<Verify fan connector.>

$ER_FAN_HIGH_FAIL
8019 "" Fan failed to switch to high speed: <%d> "\
Probable_Cause(s): \
<Driver read/write logic> \
<Hardware read/write logic>  \
<Break in trace on connector> \
<Other remote source asserting OFF> \
Reccomended_actions(s): \
<Verify fan connector.>


$ER_FAN_INTENABLE_FAIL
8020 "" Fan failed to enable interrups: <%d> "\
Probable_Cause(s): \
<Driver read/write logic> \
<Hardware read/write logic>  \
Reccomended_actions(s): \
<Verify interrupt mask.>


$ER_FAN_INTDISABLE_FAIL
8021 "" Fan failed to disable interrups: <%d> "\
Probable_Cause(s): \
<Driver read/write logic> \
<Hardware read/write logic>  \
Reccomended_actions(s): \
<Verify interrupt mask.>

$ER_SCBFPGA_ID 
8022 ""Invalid SCB FPGA Prom ID: <%x> "\
Probable_Causes(s): |
<I2C read failure > \
<FPGA miss programmed > \
Reccomended_actions(s): \
<Execute FRU presence subtest.> \
<Reprogram FPGA.>

$ER_MIDPLANE_ID
8023 ""Invalid MidPlane ID: <%x> "\
Probable_Causes(s): |
<I2C read failure > \
<ID jumpers incorrectly set > \
Reccomended_actions(s): \
<Execute FRU presence subtest.> \
<Verify jumpers.> 

$ER_REG_PATTERN_FAIL
8024 "" Register Pattern Test Fail: expect<%x> actual<%x> "
Probable_Causes(s): |
<Stuck bit in register> \
Recommenendation_actions(s): \
<Reset SCB FPGA> \
<Replace SCB.>

$ER_SCSBIOC_RESET_UNIT
8025 "" Slot Reset:  Slot number <%d> FRU number<%d> "
Probable_Causes(s): |
<Problem in SCSB Driver> \
<Problem in hotswap Driver> \
Recommenendation_actions(s): \
<Disable Reset Test.> 

$ER_MIN_TEMP
8026 ""Minimum Temp: <%d C> above CPU Temp:<%d C> "
Probable_Causes(s): |
<Incorrect OBP settings> \
<Calibration Error> \
<Old version of pcf8591 driver> \
Recommenendation_actions(s): \
<Perform printenv in OBP> \
<Check OBP Revision> \
<Change hardware> \


$ER_SHUTDOWN_TEMP
8027 ""CPU Temp: <%d C> above Shutdown Temp:<%d C> "
Probable_Causes(s): |
<Incorrect OBP settings> \
<Calibration Error> \
<Old version of pcf8591 driver> \
Recommenendation_actions(s): \
<Perform printenv in OBP> \
<Check OBP Revision> \
<Change hardware> \

$ER_WARNING_MIN_TEMP
8028 ""Minimum Temp: <%d C> above Warning Temp:<%d C> "
Probable_Causes(s): |
<Incorrect OBP settings> \
<Calibration Error> \
<Old version of pcf8591 driver> \
Recommenendation_actions(s): \
<Perform printenv in OBP> \
<Check OBP Revision> \
<Change hardware> 


$ER_CPU_HEALTH
8029 "Health signal not detected for CPU slot."
Probable_Causes(s): |
<Problem cPCI slot connector pins> \
<Problem in SCSB Driver> \
<Problem in hotswap Driver> \
Recommenendation_actions(s): \
<Reseat CPU.> 
<Check cPCI slot connector for bent pins.>

$ER_NO_FANS
8030 "System must have 1 fan present"
Probable_Causes(s): |
<Problem I2C connector pins> \
<Problem in 8574 Driver> \
<Problem I2C bus> \
<Problem in SCB presence register>
Recommenendation_actions(s): \
<Check /var/adm/messages for I2C errors> 
<Check I2C connector for bent pins.>

$ER_NO_POWER_SUPPLIES
8031 "System must have 1 power supply present"
Probable_Causes(s): |
<Problem I2C connector pins> \
<Problem in 8574 Driver> \
<Problem I2C bus> \
<Problem SCB presence register> \
Recommenendation_actions(s): \
<Check /var/adm/messages for I2C errors> 
<Check I2C connector for bent pins.>


$ER_NO_SCB
8032 "System must have 1 system controller board present"
Probable_Causes(s): |
<Problem I2C connector pins> \
<Problem in SCB Driver> \
<Problem I2C bus> \
<Problem SCB presence register> \
Recommenendation_actions(s): \
<Check /var/adm/messages for I2C errors> 
<Check I2C connector for bent pins.>


$ER_NO_CPU
8033 "System must have 1 CPU present"
Probable_Causes(s): |
<Problem cPCI slot connector pins> \
<Problem I2C bus> \
<Problem SCB presence register> \
Recommenendation_actions(s): \
<Check /var/adm/messages for I2C errors> 
<Check cPCI slot connector for bent pins.>



$ --------------------------------------------------
$ PROBE:        10000
$ --------------------------------------------------

$ ER_PLATFORM
10000 "Unable To Determine Platform Name In Probe: <%s>"
