$  Copyright(c) 2004 Sun Microsystems, Inc. All rights reserved.
$  Use is subject to license terms.

$  #ident  "@(#)env3test.msg  1.28  04/11/12  SMI"

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

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

$ USAGE
1 "env3test [-o option=value]\n \
 \tdev=<driver or device name> which is max1617 in Sun-Blade-150  and Sun-Blade-1000 \n \
 \t         or adm1031 in Sun-Blade-1500 and Sun-Blade-2500 \n \
 \t         or aux-fan1 in Sun-Blade-2500 with dimm-fan\n \
 \tfantest=<enable/disable> \n \
 \t         fantest supported on Sun-Blade-1500 and Sun-Blade-2500 only\n \
 \tfan=<cpu-fan/intake-fan/outtake-fan> or \n \
 \t    <cpu0-fan/cpu1-fan/intake-fan/outtake-fan> on 2cpus Sun-Blade-2500 or\n \
 \t    <cpu0-fan/cpu1-fan/intake-fan/outtake-fan/dimm-fan> on Sun-Blade-2500 with dimm-fan\n \
 \tlogging=<true/false> \t\t\n \n"
 
$ MSG_RCVD
2 Message received: type %d %s.

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

$ EXIT_TEST
4 Exiting Test: %s


$ PRINT_TEMPERATURE
1001 \n%s:\n \
%s%s\n \
%s%s\n \
%s%s\n \
%s%s\n \
%s\t%s\n \
%s\t%s\n \
%s%s\n \
%s%s\n \
%s\t\t%s\n 



$ PRINT_FAN
1002 \n%s:\n \
%s%s \n \
%s%s%s \n

$ PRINT_NAME
1003 \n%s \n

$ PRINT_NAME_AND_VAL
1004 \n%s \t%s \n


$PRINT_NODE
1005 \n%s \n

$ PRINT_TEMP_AMB
1006 \n%s:\n \
%s%s\n \
%s%s\n \
%s%s\n \
%s%s\n \
%s\t%s\n \
%s%s\n \
%s%s\n \
%s\t\t%s\n 

$ ADJUST_CPUSPEED_VB
1007 "Adjusting %s cpuspeed from level %d to level %d"

$ CPU_RELEASED_VB
1008 "Cpu %s released"

$ SET_FANSPEED_VB
1009 "Setting fan speed to %02d"

$ TARGE_FAN_VB
1010 "Target Fan is %s"

$ OBS_INIT_FANSPEED_VB
1011 "Observed inital speed= %d rpm"

$ OBS_FNIAL_FANSPEED_VB
1012 "Observed final speed= %d rpm"

$ FANTEST_PASSED_VB
1013 "Device %s passed fantest"

$ PIC_FANSPEED_VB
1014 "%s fan speed is %d rpm"

$ PIC_FF_DELAY_VB
1015 "Sleep DDF fan fault delay %02d seconds"

$ PIC_TOGGLE_ES_VB
1016 "Toggle Estar mode from 0x%x to 0x%x"

$ PIC_STATUS_VER_VB
1017 "Firmware Version 0x%01x (Status reg= 0x%02x)"

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

$ CONNMSG
2000 Found <%s>

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



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

$ WARN_CPU_TEMPERATURE
4000 "%s Temperature exceeds Warning Threshold: Thresh= %d, Temp= %d ºC"

$ WARN_FANSPEED_NOT_SET
4001  "Fanspeed not set ... %s"

$ WARN_CLEAN_UP
4002 "clean_up() cannot close log file... %s"

$ WARN
4003 "Cannot PM_DIRECT_PM on %s (%s)\n" \
Probable_Cause(s): \
<Device Busy> \
<Cpu put in DIRECT_PM mode due to fan fault, if applicable> \
Recommended_Action(s): \
<Check fan for flashing LED that indicate fan service required if applicable> \
<Kill all other processes accessing driver.>


$ --------------------------------------------------
$ ERROR:      	6000 - 7999
$ --------------------------------------------------

$ ER_PM_GET_CUR_PWR 
6000 "ioctl PM_GET_CURRENT_POWER failed on %s (%s)" \
Probable_Cause(s): \
<Device Busy> \
<System software error.> \
Recommended_Action(s): \
<Kill all other processes accessing driver.> \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_PM_SET_CUR_PWR 
6001 "ioctl PM_SET_CURRENT_POWER failed on %s (%s)" \
Probable_Cause(s): \
<Device Busy> \
<System software error.> \
Recommended_Action(s): \
<Kill all other processes accessing driver.> \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_PM_GET_PWR_LEVEL 
6002 "ioctl PM_GET_POWER_LEVELS failed on %s (%s)" \
Probable_Cause(s): \
<Device Busy> \
<System software error.> \
Recommended_Action(s): \
<Kill all other processes accessing driver.> \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_PM_GET_PWR_NAME 
6003 "#%d PM_GET_POWER_NAME failed on %s (%s)" \
Probable_Cause(s): \
<Device Busy> \
<System software error.> \
Recommended_Action(s): \
<Kill all other processes accessing driver.> \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_PM_OPEN
6004 "Fail to open %s... (%s)" \
Probable_Cause(s): \
<Device Busy> \
<System software error.> \
Recommended_Action(s): \
<Kill all other processes accessing driver.> \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_PM_DIRECT_PM
6005 "ioctl PM_DIRECT_PM failed on %s (%s)\n" \
Probable_Cause(s): \
<Device Busy> \
<System software error.> \
Recommended_Action(s): \
<Kill all other processes accessing driver.> \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_PM_REL_DIRECT_PM
6006 "ioctl PM_RELEASE_DIRECT_PM failed on %s (%s)" \
Probable_Cause(s): \
<Device Busy> \
<System software error.> \
Recommended_Action(s): \
<Kill all other processes accessing driver.> \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_PICL_GET_PROPINFO_FAIL
6007 "picl_get_propinfo() failed" \
Probable_Cause(s): \
<System software error.> \
Recommended_action(s): \
<Run /usr/sbin/devfsadm.>

$ ER_PICL_SET_PROPVAL_BY_NAME
6008 "picl_set_propval_by_name %s failed" \
Probable_Cause(s): \
<System software error.> \
Recommended_action(s): \
<Run /usr/sbin/devfsadm.>

$ ER_OPEN_FAN 
6009 "Failed to open %s for %s... %s" \
Probable_Cause(s): \
<Device Busy> \
<System software error.> \
Recommended_action(s): \
<Kill all other processes accessing driver.> \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_GET_FAN_CONFIG 
6010 "Read Fan Speed Config Reg failed... %s" \
Probable_Cause(s): \
<Device Busy> \
<System software error.> \
Recommended_action(s): \
<Kill all other processes accessing driver.> \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_CLOSE 
6011 "Fail to close %s... %s" \
Probable_Cause(s): \
<Device Busy> \
<System software error.> \
Recommended_action(s): \
<Kill all other processes accessing driver.> \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_READ_RAW_FANSPEED 
6012 "ioctl I2C_GET_FAN_SPEED failed on %s ... %s" \
Probable_Cause(s): \
<Device Busy> \
<System software error.> \
Recommended_action(s): \
<Kill all other processes accessing driver.> \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_GET_FAN_FEATURE
6013 "ioctl ADM1031_GET_FAN_FEATURE on %s failed... %s" \
Probable_Cause(s): \
<Device Busy> \
<System software error.> \
Recommended_action(s): \
<Kill all other processes accessing driver.> \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_GET_FAN_SPEED
6014 "ioctl I2C_GET_FAN_SPEED on %s failed: %s" \
Probable_Cause(s): \
<Device Busy> \
<System software error.> \
Recommended_action(s): \
<Kill all other processes accessing driver.> \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_SET_FAN_SPEED
6015 "ioctl I2C_SET_FAN_SPEED on %s failed: %s" \
Probable_Cause(s): \
<Device Busy> \
<System software error.> \
Recommended_action(s): \
<Kill all other processes accessing driver.> \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_FANTEST_ERR
6016 "Device %s failed fantest"
Probable_Cause(s): \
Recommended_action(s): \
<Kill all other processes accessing driver.> \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_ADD_FAN
6017 "Failed to add fan %s" \
Probable_Cause(s): \
<Test software error.> \
Recommended_action(s):

$ ER_PARSE_FAN
6018 "Failed to parsed fans; %02d fan name parsed" \
Probable_Cause(s): \
<User error > \
<Test software error.> \
Recommended_action(s): \
<Run with -u option to display usage > \
<Check command line arguments>

$ ER_SI_PLATFORM
6019 "sysinfo SI_PLATFORM failed... %s" \
Probable_Cause(s): \
<software error.> \
Recommended_action(s): \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_FAN_NOT_FOUND
6020 "Cannot find fan named %s; check argument" \
Probable_Cause(s): \
<User error.> \
Recommended_action(s): \
<Check command line argument for typo>

$ ER_FAN_NOT_SPECIFIED
6021 "No fans specified" \
Probable_Cause(s): \
<User error.> \
Recommended_action(s): \
<Run with -u option to display usage > \
<Check command line argument for typo>

$ ER_SIGEMPTYSET
6022 "sigemptyset failed... %s" \
Probable_Cause(s): \
<System software error.> \
Recommended_action(s): \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_SIGADDSET
6023 "sigaddset %s failed... %s" \
Probable_Cause(s): \
<System software error.> \
Recommended_action(s): \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_SIGPOCMASK
6024 "sigaddset %s failed... %s" \
Probable_Cause(s): \
<System software error.> \
Recommended_action(s): \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_SIGDELSET
6025 "sigdelset %s failed...  %s" \
Probable_Cause(s): \
<System software error.> \
Recommended_action(s): \
<Rerun test in single instance or command line mode to see if failure persists.> 


$ ER_INVALID_ARG
6026 "Invalild argument: %s is null" \
Probable_Cause(s): \
<Entry error> \
Recommended_action(s): \
<Run with -u option to display usage > \
<Check command line argument for typo>

$ ER_UNKNOWN_ARG
6027 "Unknown argument %s= %s" \
Probable_Cause(s): \
<Entry error> \
Recommended_action(s): \
<Run with -u option to display usage > \
<Check command line argument for typo>

$ ER_CPUPM_INIT
6028 "Initialization of cpupm description failed" \
Probable_Cause(s): \
<System software error> \
Recommended_action(s): \
<Run with -u option to display usage > \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_CPUPM_ALLOC
6029 "Cannot alloc cpupm structure" \
Probable_Cause(s): \
<System software error> \
Recommended_action(s): \
<Run with -u option to display usage > \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ --------------------------------------------------
$ FATAL:	8000 - 9998
$ --------------------------------------------------
 
$ ER_DRIVER_OPEN_TEMP
8000 "Unable to open temp driver %s : <%s>" \
Probable_Cause(s): \
<Device name is wrong or no longer valid.> \
<Device Busy> \
Recommended_Action(s): \
<Check device name or reboot -r.> \
<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 envtest3 %s." \
Probable_Cause(s): \
<User error.> \
Recommended_Action(s): \
< Check usage by typing envtest -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_DIE_TEMP
8014 "Die Temperature Alert! %d ºC" \
Probable_Cause(s): \
<cpu temperature is too high or too low> \
<OS is not synchronous with VTS>  \
Recommended_action(s): \
<Replace bad FRU> <Upgrade OS>


$ER_AMB_TEMP
8014 "Ambient Temperature Alert! %d ºC" \
Probable_Cause(s): \
<Die temperature is too high or too low> \
<OS is not synchronous with VTS>  \
Recommended_action(s): \
<Replace bad FRU> <Upgrade OS>


$ER_FAN_SPEED
8018 "Fan Speed Alert! %d " \
Probable_Cause(s): \
<Fan speed is too high or too low> \
Recommended_action(s): \
<Replace bad fan > <Upgrade OS>

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

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

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

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

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

$ER_PICL_MEM_ALLOCA
8026 "mem alloca() failure: <%s>" \
Probable_Cause(s): \
<System error.> \
Recommended_action(s): \
<>

$ER_PICL_GET_PROVAL
8027 "picl_get_proval() did not work: <%s>" \
Probable_Cause(s): \
<System error.> \
Recommended_action(s): \
<Replace bad FRU> <Upgrade OS>

$ER_PICL_PICL_TYPE
8028 "picl type error: <%s>" \
Probable_Cause(s): \
<System error.> \
Recommended_action(s): \
<Replace bad FRU> <Upgrade OS>

$ER_CPU_TEMP_SHUTDOWN
8029 "%s Temperature exceeds Shutdown Threshold: Thresh= %d, Temp= %d ºC" \
Probable_Cause(s): \
<cpu temperature is too high or too low> \
<OS is not synchronous with VTS>  \
Recommended_action(s): \
<Replace bad FRU> <Upgrade OS>

$ER_CPU_TEMP_POWEROFF
8030 "%s Temperature exceeds Poweroff Threshold: thresh= %d, Temp= %d ºC" \
Probable_Cause(s): \
<cpu temperature is too high or too low> \
<OS is not synchronous with VTS>  \
Recommended_action(s): \
<Replace bad FRU> <Upgrade OS>

$ER_PICL_TYPE
8031 "%s error get picl type: <%s>" \
Probable_Cause(s): \
<System error.> \
Recommended_action(s): \
<Replace bad FRU> <Upgrade OS>

$ ER_BAD_FAN_TYPE
8032 "Illegal argument fan_type %s" \
Probable_Cause(s): \
<Usage error> \
Recommended_action(s): \
<Check fan arguments for typo >

$ ER_NOT_SPINNING
8033 "Rotation not observed on %s...  raw speed 0x%02x." \
Probable_Cause(s): \
<Fan cable not connected > \
<Degrading fan > \
Recommended_action(s): \
<Check fan cable connectivity > \
<Check fan >

$ ER_SLOW_ROTATION
8034   "Fan %s rotating too slow." \
Probable_Cause(s): \
<Fan cable connectivity > \
<Degrading fan > \
Recommended_action(s): \
<Check fan cable connectivity > \
<Check fan >

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

$ER_UNSUPPORT_PLAT 
8036 "Fantest not supported on this platform" \
Probable_Cause(s): \
<Invalid command line argument> \
Recommended_action(s): \
<Disable fantest> \
<Run env3test -u for usage> \
<Run env3test from GUI>

$ER_TEMPFILE 
8037 "create_tempname failed " \
Probable_Cause(s): \
<test library error > \
Recommended_action(s): \
<Rerun env3test to see if error persist.> \
<Rerun env3test in single instance to see if error persist.>

$ER_CREATE_TEMPFILE
8038 "create_tempfile failed " \
Probable_Cause(s): \
<test library error > \
Recommended_action(s): \
<Re-run env3test to see if error persist.> \
<Re-run env3test in single instance to see if error persist.>

$ER_READ_TEMPFILE
8039 "read file %s failed... %s " \
Probable_Cause(s): \
<Insufficient resources> \
<test library error > \
Recommended_action(s): \
<Rerun test with reduced load.> \
<Rerun env3test in single instance to see if error persist.>

$ER_CPUMASK
8040 "Cannot read cpu mask... %s" \
Probable_Cause(s): \
<Software error> \
<Test library error > \
Recommended_action(s): \
<Rerun env3test in single instance to see if error persist.>

ER_CONFFILE_PARSE       8041
8041 "Error in env3test.conf file... %s" \
Probable_Cause(s): \
<Corrupted env3test.config file> \
Recommended_action(s): \
<Inspect env3test.conf file.> \
<Reinstall sunvts packages.>

$ ER_CONFFILE 8042
8042 "Failed to open ENV3ONFFILE." \
Probable_Cause(s): \
<env3test.config file corrupted or deleted> \
Recommended_action(s): \
<Check env3test.conf file exist in current or lib/conf directory.> \
<Reinstall sunvts packages.>

$ ER_PIC_IOCTL 8043
8043 "ioctl %s on %s failed: %s" \
Probable_Cause(s): \
<Device Busy> \
<System load too high> \
<System software error> \
Recommended_action(s): \
<Kill all other processes accessing driver.> \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_uC_FANSPEED
8044 "uC_get_fanspeed %s failed" \
Probable_Cause(s): \
<Device Busy> \
<System load too high> \
<System software error> \
Recommended_action(s): \
<Kill all other processes accessing driver.> \
<Rerun test in single instance or command line mode to see if failure persists.> 

$ ER_uC_FAN_STUCK
8045 "%s (%s) is not rotating 0x%02x" \
Probable_Cause(s): \
<Fan cable not connected > \
<Obstruction preventing fan from rotating> \
<Degrading fan > \
Recommended_action(s): \
<Check fan cable connectivity > \
<Check fan >

$ ER_uC_FAN_SLOW_ROTATION
8046   "Observed slow rotation on %s (%s); Obs speed 0x%04x / Slow threshold 0x%04x" \
Probable_Cause(s): \
<Fan cable connectivity > \
<Degrading fan > \
Recommended_action(s): \
<Check fan cable connectivity > \
<Check fan >

$ ER_uC_FANFAULT
8047   "FanFault assertion detected (status=0x%0x)" \
Probable_Cause(s): \
<Fan malfunction > \
<Fan fault not cleared > \
<Degrading fan > \
Recommended_action(s): \
<Follow fan fault clearing procedure to clear fan fault > \
<Check fan cable connectivity > \
<Check fan >

$ ER_uC_ES_MISCOMPARE
8048   "%s E* mode miscompared obs/exp = 0x%02x/0x%02x"\
Probable_Cause(s): \
<Degrading fan > \
Recommended_action(s): \
<Check fan cable connectivity > \
<Check fan >

$ ER_uC_FANFAULT_ES
8049   "FanFault detected from E* mode %02x to E* 0x%02x (status=0x%0x)" \
Probable_Cause(s): \
<Degrading fan > \
Recommended_action(s): \
<Check fan cable connectivity > \
<Check fan >

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

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

$ ER_PROBE_BUF
10001 "testprobe_env3: buffer error %d (%s)"

$ ER_PROBE_BUF_INSUFF
10002 "testprobe_env3: insufficient buffer (%d)"
