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

$  #ident  "@(#)ssptest.msg  1.24  03/10/13  SMI"


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

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

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


$ USAGE2
2 RSC Serial test options:\n \
     serial=[Enable|Disable]			(Enables or Disables RSC serial testing.)\n \
     sdatsize=<data size>			(The data size for the rsc serial tests.)\n \
     slb=[Internal+External]			(Loopback type. External N/A on ports c&d)\n \
     spattype=[Seq+Rand]			(Pattern used for rsc serial test.)\n \
     stest=[u_u+c_c+d_d]			(Defines port and configuration to use for rsc serial tests.) \n \
     ttyubaud=[ALL,300,600,1200,2400,4800,9600,14400,19200,38400,57600,76800,115200] \n \
                                               (Sets the baud rate for the RSC's external serial port.) \n\n \
     (Note: The following options are NOT available in RSC 1.0 HW ) \n\n \
     rscmodem=[Enable|Disable]                 (Enables or Disables RSC PCMCIA internal modem test (RSC 2.0 HW Only) )\n \
     fruseeprom=[Enable|Disable]               (Enables or Disables RSC FRU seeprom checksum test.)\n \
     i2c=[Enable|Disable]                      (Enables or Disables RSC i2c test.)\n \
     tod=[Enable|Disable]                      (Enables or Disables RSC time of day test.) \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

$ I2C_DATA
8 I2C Test Output: %s\n

$ PCMCIA_INFO
9 PCMCIA Card Information: \n%s\n

$ EXP_REC_DATA
10 Exp: %s\nRec: %s\n

$ USAGE3
11 ALOM Serial test options:\n \
     serial=[Enable|Disable]     (Enables or Disables ALOM serial testing.)\n \
     sdatsize=<data size>        (The data size for the ALOM serial tests.)\n \
     slb=[Internal]              (Loopback type.)\n \
     spattype=[Seq+Rand]         (Pattern used for ALOM serial test.)\n \
     stest=[d_d]                 (Defines port and configuration to use for ALOM serial tests.)\n\n \
     i2c=[Enable|Disable]        (Enables or Disables ALOM i2c test.)\n \
     tod=[Enable|Disable]        (Enables or Disables ALOM time of day test.) \n\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

$ RMC_CONNMSG
2002 %s: <Revisions:Main_REV=%d.%d,Bootmon_REV=%d.%d,Status:Last_POST_run=%x,Num_Logins=%d,Bootmon_Checksum=%x,Firmware_Checksum=%x,System_Memory=%d MB,NVRAM_Version=%d>

$ MODEM_SKIP_MSG
2003 "The Modem subtest skipped; The System Controller HW installed in the system does not have Modem;" 

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

$ OPT_NOT_SUPPORTED
4000 "The option : %s  is not supported on %s platform"

$ --------------------------------------------------
$ ERROR/FATAL:	6000 - 7999
$ --------------------------------------------------
 
$ --------------------------------------------------
$ 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 ssptest %s%s" \
Probable_Cause(s): \
<User error.> \
Recommended_Action(s): \
< Check usage by typing ssptest -u>

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

$ ER_RSC_SEND
8004 "Error encountered during call to rsc_send(). Error Code: %s." \
Probable_Cause(s): \
<This failure may occur if the ssptest is run on a system that is under a heavy load.> \
<The RSC/ALOM is not accepting input and may be hung.> \
Recommended_Action(s): \
<Reduce system load. Do not select stress mode. Run ssptest standalone.> \
<Check the RSC/ALOM using rscadm/scadm and reset the RSC/ALOM if required.>

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

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

$ ER_RSC_RECV_TYPE
8007 "Invalid message type received from rsc_recv(). EXP: %d\tRECV: %d" \
Probable_Cause(s): \
<This failure may occur if the ssptest is run on a system that is under a heavy load.> \
<The RSC/ALOM is confused. It has returned a different message type then was expected.> \
Recommended_Action(s): \
<Reduce system load. Do not select stress mode. Run ssptest standalone.> \
<Check the RSC/ALOM using rscadm/scadm and reset the RSC/ALOM if required.>

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

$ ER_RSC_ENET
8009 "RSC/ALOM's %s enettest failed for pattern type= %s." \
Probable_Cause(s): \
<The RSC/ALOM's ip_mode and the ip_addr are not set correctly.> \
<Something other then a 10MB enet cable is plugged into the RSC/ALOM enet port.> \
<Excessive network traffic on the RSC/ALOM'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/ALOM's enet port.> \
<If External test failed, verify that the 10MB hub that is attached to the RSC/ALOM is functional.> \
<Reduce network traffic.>

$ ER_RSC_ENET_PING
8010 "RSC/ALOM'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/ALOM enet port.> \
Recommended_Action(s): \
<Verify the host responds to some other machine on the same net as the RSC/ALOM.> \
<Verify that only a 10MB enet cable is plugged into RSC/ALOM's enet port.>

$ ER_RSC_FLASH_STAT
8011 "RSC/ALOM's flash checksum test failed. Status: %d." \
Probable_Cause(s): \
<RSC/ALOM has a bad or corrupted firmware image.> \
Recommended_Action(s): \
<Reflash the RSC/ALOM.>
 
$ ER_RSC_TTYU_INT
8012 "RSC/ALOM'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." \
Probable_Cause(s): \
<Heavy system loads may cause data loss on the serial device resulting in timeouts.> \
Recommended_Action(s): \
<Reduce system load.>

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

$ ER_RSC_LB_WRITE_TO
8019  "Select timedout for write." \
Probable_Cause(s): \
<Heavy system loads may cause data loss on the serial device resulting in timeouts.> \
Recommended_Action(s): \
<Reduce system load.>

$ ER_RSC_SERIAL
8020  "RSC/ALOM 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/ALOM Status shows that the last run of POST failed." \
Probable_Cause(s): \
<Bad hardware.> \
Recommended_Action(s): \
<Check RSC/ALOM documentation of meaning of POST status word.>

$ ER_RSC_DLOPEN
8023  "Unable to access lib %s. : <%s>." \
Probable_Cause(s): \
<RSC/ALOM 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 rsc_init() failed. Error Code: %s." \
Probable_Cause(s): \
<The RSC/ALOM is not accepting input and may be hung.> \
Recommended_Action(s): \
<Check the RSC/ALOM using rscadm/scadm and reset the RSC/ALOM 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 is installed.> \
Recommended_Action(s): \
<Re-install the RSC packages on the unit under test.>

$ ER_RSC_SEEPROM_STAT
8027 "RSC/ALOM'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/ALOM's SEEPROM.> \
Recommended_Action(s): \
<Try resetting the RSC/ALOM.>

$ ER_RSC_SELECT
8028 "Select failed for %s.  Return Value: %d. : <%s>" \
Probable_Cause(s): \
<Heavy system loads may cause data loss on the serial device resulting in timeouts.> \
Recommended_Action(s): \
<Reduce system load.>

$ 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/ALOM'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/ALOM's SEEPROM.> \
Recommended_Action(s): \
<Try resetting the RSC/ALOM.>

$ ER_RSC_IO
8031 "Communication to RSC/ALOM 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 ssptest test options menu.> \
<Redirect input-device and output-device and restart sunvts.>

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

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

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

$ ER_CLR_PORT
8044 "Attempt to clear port failed."

$ ER_RSC_i2c
8045 "RSC/ALOM's I2C test failed. Status: %d." \
Probable_Cause(s): \
<RSC/ALOM can not communicate with the host via the I2C bus.>

$ ER_RSC_DATLEN
8046 "RSC/ALOM's I2C test failed. Output data length exceeds max length. \
Data Out Length: %d\tMax Length %d." \
Probable_Cause(s): \
<RSC/ALOM can not communicate with the host via the I2C bus.> \
<RSC/ALOM firmware error.>

$ ER_NO_PCMCIA
8047 "Unable to detect a PCMCIA card in the RSC."

$ ER_RSC_TOD
8048 "Time Of Day device test failed."\n \
First Time: %d\n \
Second Time %d\n \
Probable_Cause(s): \
<RSC/ALOM hardware failure.>

$ ER_EXP_REC_DATA
8049 "Expected: %s\n \
Received: %s\n"

$ ER_RSC_CKSUM_FLASH
8050 "RSC/ALOM's %s checksum test failed. Status: %d.\n \
Exp Boot: %u\t\tRec Boot: %u\nExp Main: %u\t\tRec Main: %u\n" \
Probable_Cause(s): \
<Bad or corrupted firmware image.> \
Recommended_Action(s): \
<Reset the RSC/ALOM.>

$ ER_RSC_CKSUM_SEEPROM
8051 "RSC/ALOM's %s checksum test failed. Status: %d.\n \
Exp hdr: %u\t\tRec hdr: %u\nExp Main: %u\t\tRec Main:%u\n" \
Probable_Cause(s): \
<Bad or corrupted firmware image.> \
<Problems on the I2C bus which is preventing access to the PROM.> \
Recommended_Action(s): \
<Reset the RSC/ALOM.> \
<Re-flash PROM>

$ ER_RSC_CKSUM_FRUPROM
8052 "RSC's %s checksum test failed. Status: %d.\n \
Exp RO hdr: %u\t\tRec RO hdr: %u\nExp Seg SD: %u\t\tRec Seg sd: %u\nExp Seg sc: %u\t\tRec Seg sc:%u\n" \
Probable_Cause(s): \
<Bad or corrupted firmware image.> \
<Problems on the I2C bus which is preventing access to the PROM.> \
Recommended_Action(s): \
<Reset the RSC/ALOM.> \
<Re-flash PROM>

$ ER_RSC_SEND_RECV
8053 "Error encountered during call to rscp_send_recv(). Error Code: %s." \
Probable_Cause(s): \
<This failure may occur if the ssptest is run on a system that is under a heavy load.> \
<The RSC/ALOM is not accepting input and may be hung.> \
Recommended_Action(s): \
<Reduce system load. Do not select stress mode. Run ssptest standalone.> \
<Check the RSC/ALOM using rscadm/scadm and reset the RSC/ALOM if required.>

$ ER_RSC_SEND_RECV_TYPE
8054 "Invalid message type received from rscp_send_recv(). EXP: %d\tRECV: %d" \
Probable_Cause(s): \
<This failure may occur if ssptest is run on a system that is under a heavy load.> \
<The RSC/ALOM is confused. It has returned a different message type then was expected.> \
Recommended_Action(s): \
<Reduce system load. Run ssptest standalone.> \
<Check the RSC/ALOM using rscadm/scadm and reset the RSC/ALOM if required.>
