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

$  #ident  "@(#)alarmtest.msg  1.5  01/01/11  SMI"


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

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

$ USAGE1
1 alarmtest [-o option=value]\n\n \
alarmtest Ethernet test options:\n\n \
     enet=[Enable|Disable]               (Enables or Disables RSC \n \
                                          ethernet testing.)\n \
     epattype=[Seq+Rand]                 (Pattern used for enet test.)\n \
     esize=<packet size>                 (The data size for each packet in\n \
                                          the enet test.)\n \
     epkts=<number of packets>           (The number of packets to send\n \
                                          for enet test.)\n \
     target=[IP Address]                 (IP Address of target system for\n \
                                          enet ping test, REQUIRED.)\n \
     etest=[Internal+External+Ping+pHy]  (Test modes for RSC enet\n \
                                          test.)\n\n 

$ USAGE2
2 alarmtest Serial test options:\n\n \
     serial=[Enable|Disable]             (Enables or Disables RSC \n \
                                          serial testing.)\n \
     sdatsize=<data size>                (The data size for the alarm \n \
                                          serial tests.)\n \
     slb=[Internal+External]             (Loopback type. External N/A on \n \
                                          ports c&d)\n \
     spattype=[Seq+Rand]                 (Pattern used for alarm serial test.)\n \
     stest=[u+v+c+d]                     (Defines port and configuration \n \
                                          to use for alarm serial tests.) \n\n 

$ USAGE101
101 alarmtest PC-Card (PCMCIA) test options:\n\n \
     pccard=[Enable|Disable]             (Enables or Disables RSC \n \
                                          PCMCIA testing.)\n \
     pccardtype=[Modem|Serial]          (The card type for the pc-card. \n \
                                          Default is Modem)\n\n\
 alarmtest Flash test options:\n\n \
     flash=[Enable|Disable]              (Enables or Disables RSC\n \
                                          flash checksum test.)\n\n\
 alarmtest seeprom test options:\n\n \
     seeprom=[Enable|Disable]            (Enables or Disables RSC \n \
                                          seeprom checksum test.)\n\n\
 alarmtest tod test options:\n\n \
     tod=[Enable|Disable]                (Enables or Disables RSC TOD \n \
                                          checksum test.)\n\n
$ USAGE102
102 alarmtest alarmport test options:\n\n \
     aport=[Enable|Disable]		(Enables or Disables RSC alarmport \n \                                          test.)\n\n \
     aum=[0+1+2+3]			(Defines port and configuration \n \
                                         to use for alarmport tests.) \n\n \
     a0on=[On|Off|Toggle]		(On, Off, or Toggle RSC \n \
                                        alarmport 0, default is off.)\n \
     a1on=[On|Off|Toggle]		(On, Off, or Toggle RSC \n \
                                        alarmport 1, default is off.)\n \
     a2on=[On|Off|Toggle]		(On, Off, or Toggle RSC \n \
                                        alarmport 2, default is off.)\n \
     a3on=[On|Off|Toggle]		(On, Off, or Toggle RSC \n \
                                        alarmport 3, default is off.)\n\n


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

$ RSC_STATUS
4 %s: <Revisions:Main_REV=%d.%d,Bootmon_REV=%d.%d,Status:Last_POST_run=%x,Num_Logins=%d>

$ START_TEST
5 Starting Test: %s\n

$ EXIT_TEST
6 Exiting Test: %s\n

$ RSC_SERIAL_DATA
7 %s:\n%s\n

$ INFO_MSG
8 %s\n

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

$ CONNMSG
2000 %s: <Revisions:Main_REV=%d.%d,Bootmon_REV=%d.%d,Status:Last_POST_run=%x,Num_Logins=%d>

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

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

$ WN_RSC_IO
4001 "Communication to RSC failed."

$ WN_RSC_RECV_STATUS
4002 "Error encountered during call to alarm_recv() in %s. Error Code: %d."

$ WN_RSC_SEND
4003 "Error encountered during call to alarm_send(). Error Code: %s." \
Probable_Cause(s): \
<The RSC is not accepting input and may be hung.> \
Recommended_Action(s): \
<Check the RSC using rscadm and reset the RSC if required.>

$ WN_RSC_RECV
4004 "Error encountered during call to alarm_recv(). Error Code: %s."

$ WN_RSC_RECV_TYPE
4005 "Invalid message type received from alarm_recv(). Msg_type:  %d. " \
Probable_Cause(s): \
<RSC is interrupted by rsc shell cmd.> \
<The RSC is confused. It has returned a different message type then was expected.> \
Recommended_Action(s): \
<Check the RSC using rscadm and reset the RSC if required.>


$ WN_RSC_UPTIME
4006 "Unable to determine RSC uptime." \
Probable_Cause(s): \
<RSC is resetting.> \
<RSC is not responding.> \
<RSC is interrupted by rsc shell cmd.> \
Recommended_Action(s): \
<Check the RSC using rscadm.>

$ WN_RSC_RESET
4007 "RSC reset detected; start %d %d, stop %d %d." \
Probable_Cause(s): \
<System software error to get out of hang.> \
Recommended_Action(s): \
<Check the RSC using rscadm.>

$ WN_ENVMOND_RUNNING
4008 "Turning off  the "envmond".  Please enable envmond manually after \
testing by typing "/etc/init.d/envmon start".

$ WN_RSC_RECV_DET
4009 "Error encountered during call to alarm_recv(). Error Code: %s, Type %d, timeout 0x%x."

$ WN_RSC_SEND_DET
4010 "Error encountered during call to alarm_send(). Error Code: %s, Type %d, timeout 0x%x".

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

$ ER_ALARM_TOD_FAIL
6001 "Time of Day has an offset of %i seconds"

$ ER_ENVMOND_RUNNING
6002 "The system under test has envmond running. "alarmtest" will not \
display correct results with envmond runnin. Please kill envmond and \
run alarmtest again"

$ ER_NOT_NETRA_SYSTEM
6003 "The system under test is not a netra system. This test is designed \
to run on netra systems only"

$ --------------------------------------------------
$ 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_MALLOC
8001 "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_BAD_OPTIONS
8002 "Illegal options passed to alarmtest %s%s." \
Probable_Cause(s): \
< User error.> \
Recommended_Action(s): \
< Check usage by typing alarmtest -u>

$ ER_FUNC_CALL
8003 "Error encountered during call to %s."

$ ER_RSC_SEND
8004 "Error encountered during call to alarm_send(). Error Code: %s." \
Probable_Cause(s): \
<The RSC is not accepting input and may be hung.> \
Recommended_Action(s): \
<Check the RSC using rscadm and reset the RSC if required.>

$ ER_RSC_RECV
8005 "Error encountered during call to alarm_recv(). Error Code: %s."

$ ER_RSC_RECV_STATUS
8006 "Failing status received in %s. Status: %d."

$ ER_RSC_RECV_TYPE
8007 "Invalid message type received from alarm_recv(). Msg_type:  %d. " \
Probable_Cause(s): \
<The RSC is confused. It has returned a different message type then was expected.> \
Recommended_Action(s): \
<Check the RSC using rscadm and reset the RSC if required.>

$ ER_RSC_START
8008 "Error encountered during call to alarm_start(). Error Code: %s." \
Probable_Cause(s): \
<The RSC is not accepting input and may be hung.> \
Recommended_Action(s): \
<Check the RSC using rscadm and reset the RSC if required.>

$ ER_RSC_ENET
8009 "RSC's %s enettest failed for pattern type= %s." \
Probable_Cause(s): \
<The RSC's ip_mode and the ip_addr are not set correctly.> \
<Something other then a 10MB enet cable is plugged into the RSC enet port.> \
<Excessive network traffic on the RSC's enet.> \
Recommended_Action(s): \
<Set the ip_mode to "config" and give the ip_addr a valid ip.> \
<Verify that only a 10MB enet cable is plugged into RSC's enet port.> \
<If External test failed, verify that the 10MB hub that is attached to the RSC is functional.> \
<Reduce network traffic.>

$ ER_RSC_ENET_PING
8010 "RSC's PING test failed. Pattern type = %s  Target host= %s."\
Probable_Cause(s): \
<Target host is not responding.> \
<Something other then a 10MB enet cable is plugged into the RSC enet port.> \
Recommended_Action(s): \
<Verify the host responds to some other machine on the same net as the RSC.> \
<Verify that only a 10MB enet cable is plugged into RSC's enet port.>

$ ER_RSC_FLASH_STAT
8011 "RSC's flash checksum test failed. Status: %d." \
Probable_Cause(s): \
<RSC has a bad or corrupted firmware image.> \
Recommended_Action(s): \
<Reflash the RSC.>
 
$ ER_RSC_TTYU_INT
8012 "RSC's %s serial port test on %s failed. Status: %d."
 
$ ER_TERMIO
8013  "%s failed for TERMIO. : <%s>."

$ ER_RSC_LB_READ
8014  "Read failed. : <%s>."

$ ER_RSC_LB_READ_CONTENTS
8015  "Data read does not match data  sent." \
Probable_Cause(s): \
<Bad serial hardware on RSC.> \
Recommended_Action(s): \
<Check hardware and replace if required.>

$ ER_RSC_LB_READ_EXTRA
8016  "Data read exceeds data sent." \
Probable_Cause(s): \
<Bad serial hardware on RSC.> \
Recommended_Action(s): \
<Check hardware and replace if required.>

$ ER_RSC_LB_READ_TO
8017  "Select timedout for read. : <%s>."

$ ER_RSC_LB_WRITE
8018  "Write failed for %d bytes of data. : <%s>."

$ ER_RSC_LB_WRITE_TO
8019  "Select timedout for write. : <%s>."

$ ER_RSC_SERIAL
8020  "RSC Serial test failed. \nTest Name= %s\nLoopback= %s\n \
Pattern_Type= %s\nBaud= %d.\n"

$ ER_RSC_OPEN
8021  "OPEN of %s failed. : <%s>."

$ ER_RSC_POST
8022  "RSC Status shows that the last run of POST failed." \
Probable_Cause(s): \
<Bad hardware.> \
Recommended_Action(s): \
<Check RSC documentation of meaning of POST status word.>

$ ER_RSC_DLOPEN
8023  "Unable to access lib %s. : <%s>." \
Probable_Cause(s): \
<RSC host software is not properly installed.> \
Recommended_Action(s): \
<Re-install the RSC packages on the unit under test.>

$ ER_RSC_DLCLOSE
8024  "Unable to close lib. : <%s>."

$ ER_RSC_INIT
8025  "Call to alarm_init() failed. Error Code: %s." \
Probable_Cause(s): \
<The RSC is not accepting input and may be hung.> \
Recommended_Action(s): \
<Check the RSC using rscadm and reset the RSC if required.>

$ ER_RSC_DLSYM
8026  "Unable to access function %s in lib. : <%s>." \
Probable_Cause(s): \
<Out of date or unsupported version of the librsc.so.1 is installed.> \
Recommended_Action(s): \
<Re-install the RSC packages on the unit under test.>

$ ER_RSC_SEEPROM_STAT
8027 "RSC's seeprom checksum test failed. Status: %d." \
Probable_Cause(s): \
<Bad or corrupted firmware image.> \
<Problems on the I2C bus which is preventing access to the RSC's SEEPROM.> \
Recommended_Action(s): \
<Try resetting the RSC.>

$ ER_RSC_SELECT
8028 "Select failed for %s.  Return Value: %d. : <%s>"

$ ER_RSC_SERIAL_OFF
8029  "Sending OFF to Serial test failed. \nTest Name= %s\nLoopback= %s\n \
Pattern_Type= %s\nBaud= %d.\n"

$ ER_RSC_CKSUM_STAT
8030 "RSC's %s checksum test failed. Status: %d." \
Probable_Cause(s): \
<Bad or corrupted firmware image.> \
<Problems on the I2C bus which is preventing access to the RSC's SEEPROM.> \
Recommended_Action(s): \
<Try resetting the RSC.>

$ ER_RSC_IO
8031 "Communication to RSC failed."

$ ER_RSC_GET_CONSOLE
8032 "Unable to get RSC's console port from library."

$ ER_RSC_GET_CONTROL
8033 "Unable to get RSC's control port from library."

$ ER_ECHO_SETUP
8034 "Unable to negotiate loopback mode on RSC for serial loopback test."

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

$ ER_OPROMGETPROP
8036 "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
8037 "Unable to access the next PROM property using ioctl. : <%s>"

$ ER_OPROMNEXT
8038 "Unable to get next PROM property after %s using ioctl. : <%s>"

$ ER_OPROMCHILD
8039 "Unable to look for child node of node %d in PROM using ioctl. : <%s>"

$ ER_RSC_IS_CONSOLE
8040 "Internal Serial tests are not allowed while RSC is being used as console." \
Probable_Cause(s): \
<Either input-device or output-device is set to rsc.> \
Recommended_Action(s): \
<Unselect the internal serial port tests from the alarmtest test options menu.> \
<Redirect input-device and output-device and restart sunvts.>

$ ER_RSC_UPTIME
8041 "Unable to determine RSC uptime." \
Probable_Cause(s): \
<RSC is resetting.> \
<RSC is not responding.> \
Recommended_Action(s): \
<Check the RSC using rscadm.>

$ ER_RSC_RESET
8042 "RSC reset detected; start %d %d, stop %d %d." \
Probable_Cause(s): \
<RSC hardware error.> \
<System software error.> \
Recommended_Action(s): \
<Telnet into the RSC to see if it is stuck in a reset loop.> \
<Check the RSC using rscadm.>

$ ER_RSC_PLATFORM
8043 "Unable to determine the systems platform. : <%s>"

$ ER_SIG_FILL
8044 "Unable to fill signal mask. : <%s>"

$ ER_SIG_PROCMASK
8045 "Unable to change signal mask. : <%s>"

$ ER_CLR_PORT
8046 "Attempt to clear port failed."

$ ER_RSC_ALARMPORT
8047 "RSC's %d alarmport test failed for onoff= %d." \
Probable_Cause(s): \
<Check alarmport led is plugged properly.> \
<Excessive System load.> \
Recommended_Action(s): \
<Verify that alarmport led is  plugged into alarm port.> \
<Check the RSC using rscadm.>\
<Reduce System load.>


