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

$  #ident  "@(#)env2test.msg  1.8  05/03/11  SMI"


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

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

$ USAGE
1 "env2test [-o option=value]\n\n \
\tdev=<device name> \t\t (default=/dev/envctrltwo0)\n \
\ttemp=Enable|Disable \t\t (default=Enable)\n \
\tfans=Enable|Disable \t\t (default=Disable)\n \
\tdiskleds=Enable|Disable \t\t (default=Disable)\n \
\tfpanel=Enable|Disable \t\t (default=Disable)\n \
\tpsupply=Enable|Disable \t\t (default=Enable)\n"
 
$ MSG_RCVD
2 Message received: type %d %s.

$ MONITOR_HEADER
3 \n\t    TEMPERATURE\t\t\t  FANS\t       FRONT PANEL    POWER FAIL\n\n \
CPU0  CPU1  MB0   MB1   PDB   SCSI | Speed  State | D P T G A  KEY  | PS0 PS1\n \
-----------------------------------|--------------|-----------------|----------\n

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

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

$ EXIT_TEST
6 Exiting Test: %s\n

$ FANS_FOUND
1000 "%d fanbanks found."
 
$ FANS_STAT2
1001 "Fanbank: slot %d state %d speed %d."

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

$ PS_STAT
1003 "Power Supply In Slot %d  State %d"

$ AMB_TEMP_STAT
1004 "The ambient temperature is %d"

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

$ TEMP_STAT
1006 "%s temperature is %d    Warning level: %d  Shutdown level: %d"

$ DISKS_FOUND
1007 "%d disks found"

$ DISK_STAT
1008 "Slot: %d   State: %d"


$ --------------------------------------------------
$ 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\n

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

$ --------------------------------------------------
$ ERROR/FATAL:	6000 - 7999
$ --------------------------------------------------
 
$ MODE_STAT
6000 "Current MODE is %s."

$ --------------------------------------------------
$ FATAL:	8000 - 9998
$ --------------------------------------------------
 
$ ER_DRIVER_OPEN
8000 "Unable to open 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_KSTAT_OPEN
8001 "kstat_open failed." \
Probable_Cause(s): \
<No kernel resource available.> \
<System software error.> \
Recommended_Action(s): \
<Consult /var/adm/messages file for more information.>

$ ER_KSTAT_LOOKUP
8002 "kstat_lookup failed for %s in %s." \n \
Probable_Cause(s): \
<env2test module not found.> \
<No Kernel resource available.> \
<System software error.> \
Recommended_Action(s): \
<Check revision / reload envctrltwo driver.> \
<Consult /var/adm/messages file for more information.>

$ ER_KSTAT_READ
8003 "kstat_read failed %s in %s." \
Probable_Cause(s): \
<env2test module not found.> \
<No Kernel resource available.> \
System software error.> \
Recommended_Action(s): \
<Check revision / reload envctrltwo driver.> \
<Consult /var/adm/messages file for more information.>

$ ER_KSTAT_CLOSE
8004 "Unable to close kstat." \
Probable_Cause(s): \
<No Kernel resource available.> \
<System software error.> \
Recommended_Action(s): \
<Consult /var/adm/messages file for more information.>

$ ER_SET_DIAG_MODE
8005 "Unable to set mode to DIAG using ioctl : <%s>" \
Probable_Cause(s): \
<System software error.> \
Recommended_Action(s): \
<Consult /var/adm/messages file for more information.>
 
$ ER_SET_DSK_LEDS
8006 "Unable to set disk leds using ioctl(): <%s>" \
Probable_Cause(s): \
<System software error.> \
Recommended_Action(s): \
<Consult /var/adm/messages file for more information.>
 
$ ER_GET_DSK_LEDS
8007 "Unable to get disk leds using ioctl(): <%s>" \
Probable_Cause(s): \
<System software error.> \
Recommended_Action(s): \
<Consult /var/adm/messages file for more information.>
 
$ ER_SET_FS2
8008 "Unable to set fan speed to %d : <%s>" \
Probable_Cause(s): \
<Fan hardware failure.> \
<System software error.> \
Recommended_Action(s): \
<Manually check fan speed / replace fan.> \
<Consult /var/adm/messages file for more information.>

$ ER_GET_FS2
8009 "Unable to get fan speed : <%s>" \
Probable_Cause(s): \
<System software error.> \
Recommended_Action(s): \
<Consult /var/adm/messages file for more information.>

$ ER_INV_FS
8010 "Fan speed %d: out of range: MIN %d  MAX %d" \
Probable_Cause(s): \
<System is running under excessive load or stress mode.> \
<Fan hardware failure.> \
<System software error.> \
Recommended_Action(s): \
<Do not run this test under excessive loads or in stress mode.> \
<Manually check fan speed / replace fan.> \
<Consult /var/adm/messages file for more information.>

$ ER_NO_FAN_FAULT
8011 "Forced fan fault did not occur for %s fanbank." \
Probable_Cause(s): \
<Hardware failure.> \
<System software error.> \
Recommended_Action(s): \
<Replace hardware.> \
<Consult /var/adm/messages file for more information.>

$ ER_FAN_FAULT
8012 "Forced fan fault did not clear for %s fanbank." \
Probable_Cause(s): \
<Hardware failure.> \
<System over temperature.> \
<System software error.> \
Recommended_Action(s): \
<Replace hardware.> \
<Consult /var/adm/messages file for more information.>

$ ER_SET_WDT
8013 "Unable to set watchdog timer." \
Probable_Cause(s): \
<Hardware failure.> \
<System software error.> \
Recommended_Action(s): \
<Replace hardware.> \
<Consult /var/adm/messages file for more information.>

$ ER_SET_TEMP
8014 "Unable to set temperature to %d." \
Probable_Cause(s): \
<System software error.> \
Recommended_Action(s): \
<Consult /var/adm/messages file for more information.>

$ ER_PS
8015 "Power Supply %d has failed: State %d"\n \
Probable_Cause(s): \
<Power supply hardware failure.> \
Recommended_Action(s): \
<Replace power supply.>

$ ER_MALLOC
8016 "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_SET_NORM_MODE
8017 "Unable to set mode to NORMAL using ioctl : <%s>" \
Probable_Cause(s): \
<System software error.> \
Recommended_Action(s): \
<Consult /var/adm/messages file for more information.>

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

$ ER_SET_FSP_LEDS
8019 "Unable to set front panel leds using ioctl : <%s>" \
Probable_Cause(s): \
<System software error.> \
Recommended_Action(s): \
<Consult /var/adm/messages file for more information.>

$ ER_RESET_FSP_LEDS
8020 "Unable to reset front panel leds to original state." \
Probable_Cause(s): \
<System software error.> \
Recommended_Action(s):\
<Consult /var/adm/messages file for more information.>

$ ER_GET_FSP_LEDS
8021 "Unable to get front panel leds using ioctl : <%s>." \
Probable_Cause(s): \
<System software error.> \
Recommended_Action(s): \
<Consult /var/adm/messages file for more information.>

$ ER_AMB_TEMP
8022 "Ambient temperature %d celsius out of range." \
Probable_Cause(s): \
<envctrltwo hardware error.> \
Recommended_Action(s):<>

$ ER_CPU_TEMP
8023 "CPU %d temperature %d celsius out of range." \
Probable_Cause(s): \
<envctrltwo hardware error.> \
Recommended_Action(s):<>

$ ER_DSK_LEDS_MSCMP
8024 "Data Miscompare on diskled mask:  set mask  = %d   get mask = %d." \
Probable_Cause(s): \
<envctrltwo hardware error.> \
<System software error.> \
Recommended_Action(s): \
<Consult /var/adm/messages file for more information.>

$ ER_BAD_OPTIONS
8025 "Illegal options passed to env2test %s." \
Probable_Cause(s): \
<User error.> \
Recommended_Action(s): \
< Check usage by typing env2test -u>

$ ER_NO_PS
8026 "Unable to retrieve power supply information. Zero supplies found." \
Probable_Cause(s): \
<I2C hardware failure.> \
Recommended_Action(s): \
<Swap power supplies.> \
<Check for other I2C devices in system that my corrupt the entire I2C bus.>

$ ER_PS_TEMP
8027 "Power Supply Over Temperature. PS Slot %d  PS Temperature %d" \
Probable_Cause(s): \
<Bad Power Supply.> \
Recommended_Action(s): \
<Replace Power Supply.>

$ ER_OPEN_PROM
8028 "Unable to open PROM. : <%s>" \
Probable_Cause(s): \
<Hardware error.> \
<Corrupted PROM.> \
Recommended_Action(s): 

$ ER_OPROMGETPROP
8029 "Unable to access PROM property %s using ioctl. : <%s>" \
Probable_Cause(s): \
<System software error.> \
<Corrupted PROM.> \
Recommended_Action(s): \
<Check PROM using prtconf.> \
<Update PROM.>

$ ER_OPROMNXTPROP
8030 "Unable to access the next PROM property using ioctl. : <%s>" \
Probable_Cause(s): \
<System software error.> \
Recommended_Action(s): \

$ ER_OPROMNEXT
8031 "Unable to get next PROM property after %s using ioctl. : <%s>" \
Probable_Cause(s): \
<System software error.> \
Recommended_Action(s): \

$ ER_OPROMCHILD
8032 "Unable to look for child node of node %d in PROM using ioctl. : <%s>" \
Probable_Cause(s): \
<System software error.> \
Recommended_Action(s): 

$ ER_TEMP
8033 "%s temperature %d celsius out of range." \
Probable_Cause(s): \
<envctrltwo hardware error.> \
Recommended_Action(s):

$ ER_FANS_FAIL
8034 "Unexpected Fan Fault has been detected." \
Probable_Cause(s): \
<envctrltwo hardware error.> \
Recommended_Action(s):

$ ER_GET_MODE
8035 "Unable to get MODE from Driver. : <%s>" \
Probable_Cause(s): \
<System software error.> \
Recommended_Action(s):

$ ER_FP_LEDS_MSCMP
8036 "Data Miscompare on front panel leds:   set mask = %d   get mask = %d." \
Probable_Cause(s): \
<envctrltwo hardware error.> \
<System software error.> \
Recommended_Action(s): \
<Consult /var/adm/messages file for more information.>

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

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