$  Copyright(c) 1995-2000 Sun Microsystems, Inc.
$  All rights reserved.

$#pragma ident "@(#)switchtest.msg	1.61  01/08/22 SMI"

$
$ switchtest.msg
$


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

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

$ USAGE
1 "USAGE: switchtest [-o option=value,option=value,...]\n\n \
\tdev=<device name> \t (no default)\n \
\txfer=<250,500,1000,1500,2000>\t(default=2000),\n \
\tpasses=<100000,250000,500000,750000,1000000>\t(default=1000000),\n \
\tUser Data Pattern=<00000000|FFFFFFFF|7e7e7e7e7e>\t(default=7e7e7e7e),\n \
\tLoopback Patterns<User,Critical,All>\t(default=Critical)\n\n
 
$ V_OPTIONS_LIST
3 "switchtest:  called with options: %s"

$ ASSIGN_DEVICE
4 "Testing device %s."

$ V_TEST_STATUS_LINE
1000 "Testing Device: %s Port: %d Pattern: 0x%.8x"

$ V_TEST_STATUS_PORT_TEST_STATUS
1001 "Port %s passed all tests on %s"

$ V_LOOPBACK_TEST_IN_PROGRESS
1002 "Loopback test in progress on Port: %s Pattern: 0x%.8x"

$ V_CHASSIS_STATUS
1010 "Chassis Status for device: %s"

$ V_STARTED
1020 "Start: switchtest on Port: %s ip_addr: %s"

$ V_TEST_PASSED
1030 "End: switchtest COMPLETED SUCCESSFULLY"

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

$ SWITCH_CONNECT_MESSAGE
2000 "Successfully communicated with device: %s"

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

$ WARNING_STOP_TEST_CLEAN_UP
4000 "Stopping switchtest failed in cleanup. Device %s returned %d" \
Probable_Cause(s): <Faulty hba/gbic/hub/switch/cable/disk> \
                   <Device busy - waiting for completion of another process.>
                   <Disconnected ethernet cable> 

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

$ BAD_ARGS
6001 "Error parsing command line options.  Check command line and re-enter." \
USAGE: switchtest [-o option=value,option=value,...]\n\n\
\tdev=<device name> \t(no default)\n \
\txfer=<250,500,1000,1500,2000>\t\t(default=2000),\n \
\tpasses=<100000,250000.500000,750000,1000000>\t(default=1000000),\n \
\tUser Data Pattern=<00000000,FFFFFFFF|7e7e7e7e7e>\t(default=7e7e7e7e),\n \
\tLoopback Patterns<User,Critical,All>\t(default=Critical)\n\n

$ TEST_FAILED
6002 "End %s COMPLETED with ERRORS on %s [%d errors]." \
Probable_Cause(s): <Hardware Failure> \
<Configuration Problem> <Revision Problem> \
Recommended_Actions: <Replace reported hardware> \
<Verify/correct configuration against last working snapshot> \
<Verify/update revisions of software/firmware against SunSolve database> \
<if the problem persists, contact authorized Sun service provider>

$ SWITCH_NOT_ON_IP
6004 "switch not available on IP: %s." \
Probable_Cause(s): <Wrong IP address in /etc/fcswitch.conf> \
                   <Ethernet cable not attached to switch> \
		   <Loss of power to switch> \
Recommended Action(s): <Check IP address in fcswitch.conf> \
                       <Check ethernet connection> \
                       <Check switch power>

$ SWITCH_NOT_CONNECTED_FC
6005 "switch not Connected on Port: %s Pattern: 0x%.8x." \
Probable_Cause(s): <Fibre Channel cable disconnected> \
                   <Bad GBIC or bad Fibre Channel cable> \
		   <Loss of power to switch>


$ SWITCH_PORT_STATUS_FAILED
6006 "Call for port status failed on IP: %s." \
Probable_Cause(s): <Ethernet cable problem> \
		   <Loss of power to switch> \
		   <Bad ISL Link>\
Recommended_Action(s): <Check ethernet connection> \
                       <Check switch power>\
		       <Check ISL links>


$ FATAL_PORT_STATUS_ADMIN_OFFLINE
6007 "Port %s is Administrative Offline with Pattern 0x%.8x on Device %s" \
Probable_Cause(s): <Port has been taken off line by User using Sansurfer or by sanbox>

$ FATAL_PORT_STATUS_OFFLINE
6008 "Port %s is Offline with Pattern 0x%.8x on Device %s" \
Probable_Cause(s): <Fibre Channel cable disconnected to HBA> \
                   <Bad GBIC/bad Fibre Channel cable/bad switch>

$ FATAL_PORT_TEST_STATUS
6009 "switchtest failed with bad Pattern 0x%.8x on Device %s Port %s" \
Probable_Cause(s): <Faulty hba/gbic/hub/switch/cable/disk> \
                   <Bad GBIC or bad/disconnected Fibre Channel cable> \
Recommended_Actions: <Run stexpert on fibre device connected to this port> 


$ FATAL_PORT_TEST_STATUS_F_PORT
6010 "switchtest failed with bad Pattern 0x%.8x on Device %s Port %s" \
Probable_Cause(s): <Faulty hba/gbic/hub/switch/cable/disk> \
                   <Another user may be already running switchtest on this port> \
                   <This port may be set as an F_PORT> \
Recommended_Actions: <Run stexpert on fibre device connected to this port> 

$ SW_CHASSIS_STATUS_FAILED
6011 "Chassis status failed - ip_addr: %s Port: %s Device: %s" \
Probable_Cause(s): <Ethernet not connected> \
                   <Loss of power to switch> \
Recommended_Actions: <Check ethernet connections> \
                     <Check power to switch>

$ FATAL_CONNECTIVITY_OFFLINE
6012 "Device %s is Offline during Connectivity Test" \
Probable_Cause(s): <Fibre Channel cable disconnected> \
                   <Bad GBIC or bad Fibre Channel cable> \
                   <Port offline> \
Recommended_Actions: <Check fibre channel connections> \
                     <Check port state>

$ FATAL_PORT_STATUS_OFFLINE_BEGIN
6013 "Device %s Port %s is Offline" \
Probable_Cause(s): <Fibre Channel cable disconnected> \
                   <Bad GBIC or bad Fibre Channel cable> \
                   <Port offline> \
Recommended_Actions: <Check fibre channel connections> \
                     <Check port state>

 
$ FATAL_START_TEST_FAILED
6014 "Could not start switchtest. Port: %s Pattern: 0x%.8x Device: %s" \
Probable_Cause(s): <Another user/process may be already running switchtest on this switch> \
Recommended_Actions: <Check port activity. If idle, restart test.>

$ SWITCH_TEST_STATUS_FAILED
6015 "Call to test status failed on IP: %s." \
Probable_Cause(s): <Ethernet cable not attached to switch> \
		   <Loss of power to switch> \
		   <Bad ISL Link>\
Recommended_Action(s): <Check ethernet connection> \
                       <Check switch power>\
		       <Check ISL links>



$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

$ FAILED_ON_BAD_PATTERN_FCFPORTSYNCLOSSES
6021 "switchtest failed with bad Pattern 0x%.8x on Device %s Port %s" \
"Field affected: SyncLosses - This counter is incremented when loss of \
sync is detected." \
Probable_Cause(s): <Faulty hba/gbic/hub/switch/cable/disk> \
                   <Fibre Channel cable disconnected to switch> \
                   <Bad GBIC or bad Fibre Channel cable> \
Recommended_Actions: <Run stexpert on fibre device connected to this port> 

$ FAILED_ON_BAD_PATTERN_FCFPORTINVALIDTXWORDS
6022 "switchtest failed with bad Pattern 0x%.8x on Device %s Port %s" \
"Field affected: InvalidTxWds - This counter is incremented when the \
hardware receive port detects an invalid incoming 10B data word." \
Probable_Cause(s): <Faulty hba/gbic/hub/switch/cable/disk> \
                   <Fibre Channel cable disconnected to switch> \
                   <Bad GBIC or bad Fibre Channel cable> \
Recommended_Actions: <Run stexpert on fibre device connected to this port> 

$ FAILED_ON_BAD_PATTERN_FCFPORTINVALIDCRCS
6023 "switchtest failed with bad Pattern 0x%.8x on Device %s Port %s" \
"Field affected: CRC Errs - This counter is incremented when the hardware \
receive port detects an incoming frame with a CRC error." \
Probable_Cause(s): <Faulty hba/gbic/hub/switch/cable/disk> \
                   <Fibre Channel cable disconnected to switch> \
                   <Bad GBIC or bad Fibre Channel cable in path> \
Recommended_Actions: <Run stexpert on fibre device connected to this port> 

$ FAILED_ON_BAD_PATTERN_FCFPORTDELIMITERERRORS
6024 "switchtest failed with bad Pattern 0x%.8x on Device %s Port %s" \
"Field affected: DelimiterErrs - This counter is incremented when a \
received frame is ended with other than an EOF, or an EOF is received \
outside the boundaries of a frame." \
Probable_Cause(s): <Faulty hba/gbic/hub/switch/cable/disk> \
                   <Fibre Channel cable disconnected to switch> \
                   <Bad GBIC or bad Fibre Channel cable> \
Recommended_Actions: <Run stexpert on fibre device connected to this port> 

$ FAILED_ON_BAD_PATTERN_FCFPORTADDRESSIDERRORS
6025 "switchtest failed with bad Pattern 0x%.8x on Device %s Port %s" \
"Field affected: AddressIdErrs - This counter is incremented for each \
frame received that has an invalid destination Id." \
Probable_Cause(s): <Faulty hba/gbic/hub/switch/cable/disk> \
                   <Fibre Channel cable disconnected to switch> \
                   <Bad GBIC or bad Fibre Channel cable> \
Recommended_Actions: <Run stexpert on fibre device connected to this port> 

$ FAILED_ON_BAD_PATTERN_FCFPORTLINKRESETINS
6026 "switchtest failed with bad Pattern 0x%.8x on Device %s Port %s" \
"Field affected: Link Reset In - This counter is incremented when a LR \
is received while in the Active state." \
Probable_Cause(s): <Faulty hba/gbic/hub/switch/cable/disk> \
                   <Fibre Channel cable disconnected to switch> \
                   <Bad GBIC or bad Fibre Channel cable> \
Recommended_Actions: <Run stexpert on fibre device connected to this port> 

$ FAILED_ON_BAD_PATTERN_TOTAL_LIP_RCVD_CNT
6027 "switchtest failed with bad Pattern 0x%.8x on Device %s Port %s" \
"Field affected: Total LIPs Rcvd - This counter is incremented whenever \
the port transitions to the LIP received state. The source of the LIP \
could be any device on the loop, or the switch itself." \
Probable_Cause(s): <Faulty hba/gbic/hub/switch/cable/disk> \
                   <Fibre Channel cable disconnected to switch> \
                   <Bad GBIC or bad Fibre Channel cable> \
Recommended_Actions: <Run stexpert on fibre device connected to this port> 

$ FAILED_ON_BAD_PATTERN_AL_INIT_ERR_CNT
6028 "switchtest failed with bad Pattern 0x%.8x on Device %s Port %s" \
"Field affected: AL Init Errs - This counter is incremented when sync \
is lost or a timeout occurs during the Loop Initialization." \
Probable_Cause(s): <Faulty hba/gbic/hub/switch/cable/disk> \
                   <Fibre Channel cable disconnected to switch> \
                   <Bad GBIC or bad Fibre Channel cable> \
Recommended_Actions: <Run stexpert on fibre device connected to this port> 

$ FAILED_ON_BAD_PATTERN_AL_INIT_ATTEMPTS_CNT
6029 "switchtest failed with bad Pattern 0x%.8x on Device %s Port %s" \
"Field affected: AL Inits - This counter is incremented, each time the \
port begins AL Initialization." \
Probable_Cause(s): <Faulty hba/gbic/hub/switch/cable/disk> \
                   <Fibre Channel cable disconnected to switch> \
                   <Bad GBIC or bad Fibre Channel cable> \
Recommended_Actions: <Run stexpert on fibre device connected to this port> 

$ FAILED_ON_BAD_PATTERN_SHORT_FRAME_ERR_CNT
6030 "switchtest failed with bad Pattern 0x%.8x on Device %s Port %s" \
"Field affected: ShortFrameErr - This counter is incremented when a \
receive port  receives a frame shorter than 36 bytes." \
Probable_Cause(s): <Faulty hba/gbic/hub/switch/cable/disk> \
                   <Fibre Channel cable disconnected to switch> \
                   <Bad GBIC or bad Fibre Channel cable> \
Recommended_Actions: <Run stexpert on fibre device connected to this port> 

$ FAILED_ON_BAD_PATTERN_LONG_FRAME_ERR_CNT
6031 "switchtest failed with bad Pattern 0x%.8x on Device %s Port %s" \
"Field affected: LongFrameErr- This counter is incremented when a receive \
port receives a frame longer than the maximum frame size." \
Probable_Cause(s): <Faulty hba/gbic/hub/switch/cable/disk> \
                   <Fibre Channel cable disconnected to switch> \
                   <Bad GBIC or bad Fibre Channel cable> \
Recommended_Actions: <Run stexpert on fibre device connected to this port> 

$ FAILED_ON_BAD_PATTERN_LOSS_OF_SIGNAL_CNT
6032 "switchtest failed with bad Pattern 0x%.8x on Device %s Port %s" \
"Field affected: LossOfSignal - This counter is incremented when the \
receiver detects loss of signal." \
Probable_Cause(s): <Faulty hba/gbic/hub/switch/cable/disk> \
                   <Fibre Channel cable disconnected to switch> \
                   <Bad GBIC or bad Fibre Channel cable> \
Recommended_Actions: <Run stexpert on fibre device connected to this port> 

$ FAILED_ON_BAD_PATTERN_LASER_FAULT_CNT
6033 "switchtest failed with bad Pattern 0x%.8x on Device %s Port %s" \
"Field affected: LaserFault - This counter is incremented when a laser \
fault is detected." \
Probable_Cause(s): <Faulty hba/gbic/hub/switch/cable/disk> \
                   <Fibre Channel cable disconnected to switch> \
                   <Bad GBIC or bad Fibre Channel cable> \
Recommended_Actions: <Run stexpert on fibre device connected to this port> 

$ FAILED_ON_BAD_PATTERN_LOOP_INIT_FAILED
6034 "switchtest failed with bad Pattern 0x%.8x on Device %s Port %s" \
"Field affected: loop_init_failed \
Probable_Cause(s): <Faulty hba/gbic/hub/switch/cable/disk> \
                   <Fibre Channel cable disconnected to switch> \
                   <Bad GBIC or bad Fibre Channel cable> \
Recommended_Actions: <Run stexpert on fibre device connected to this port> 

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

$ FATAL_PORT_STATUS_CONNECTIVITY_OFFLINE
6042 "Port status failed with no connection to switch. Device %s" \
Probable_Cause(s): <Interrupted ethernet connection> \
                   <Loss of power to switch> \
Recommended_Actions: <Check ethernet connections.> \
                     <Check power to switch.>

$ FATAL_LOOP_LIMIT
6043 "Loop limit exceeded for switchtest. Pattern 0x%.8x Device %s on Port %s" \
Probable_Cause(s): <Problem unknown> \
Recommended_Actions: <If the problem persists, call your authorized Sun service provider.>

$ FATAL_PORT_STATUS_AFTER_START_TEST
6044 "Port status failed sfter start test: Port %s Pattern 0x%.8x on Device %s" \
Probable_Cause(s): <Interrupted ethernet connection> \
                   <Loss of power to switch> \
Recommended_Actions: <Check ethernet connections.> \
                     <Check power to switch.>

$ FATAL_PORT_COUNTS_TEST_IN_PROGRESS
6045 Port counts returned failure. Pattern 0x%.8x Device %s Port %s" \
Probable_Cause(s): <Interrupted ethernet connection> \
                   <Loss of power to switch> \
Recommended_Actions: <Check ethernet connections.> \
                     <Check power to switch.>

$ FATAL_STOP_TEST_LOOP_LIMIT
6046 "Stopping switchtest failed before cleanup. Pattern 0x%.8x Device %s on Port %s" \
Probable_Cause(s): <Interrupted ethernet connection> \
                   <Loss of power to switch> \
Recommended_Actions: <Check ethernet connections.> \
                     <Check power to switch.>

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

$ ER_BAD_OPTION_IP_ADDR
6101 "IP address not within the range of x.x.x.1 - x.x.x.254: %s" \
Probable_Cause(s): <Incorrect IP address for switch> \
Recommended_Actions: <Reenter correct IP address> \
                     <Correct Range and Format: x.x.x.1 - x.x.x.254>

$ ER_BAD_OPTION_IP_ADDR_STRING
6102 "Badly formatted IP address string passed to test: %s" \
Probable_Cause(s): <Incorrect IP address argument for switch> \
Recommended_Actions: <Reenter correct IP address> \
                     <Format: x.x.x.x>

$ ER_BAD_OPTION_PORTS
6103 "Invalid port number passed to switchtest: %s" \
Probable_Cause(s): <Invalid switch port number entered.> \
Recommended_Actions: <Port number is in the range of 1-8 for an eight port switch.> \
                     <or a range of 1-16 for an sixteen port switch.> \
                     <Enter an appropriate port number for you type of switch.>

$ ER_BAD_OPTION_XFER_SIZE
6104 "Invalid xfer_size passed to test: %s" \
Probable_Cause(s): <Inaccurate xfer_size in command line arguments> \
Recommended_Actions: <Enter correct xfer_size> \
                     <The correct xfer_size is in the range of 250 - 2000>

$ ER_BAD_OPTION_NUM_PASSES
6105 "Invalid number of passes passed to test: %s" \
Probable_Cause(s): <Number of passes entered not within correct range> \
Recommended_Actions: <Enter a value between 100000 and 1000000>

$ ER_BAD_OPTION_USR_PATTERN
6106 "Invalid user pattern passed to switchtest: %s" \
Probable_Cause(s): <Invalid hexidecimal test pattern passed to switchtest> \
Recommended_Actions: <Enter an appropriate pattern. Example: 0xa5a5a5a5"

$ ER_BAD_OPTION_DEFAULT
6107 "Unknown variable entered on command line: %s" \
Probable_Cause(s): <Variable unsupported by switchtest entered on command line.> \
Recommended_Actions: <Check for misspelling of options> \
                     <Delete option and check switchtest parameters.> \
\
USAGE: switchtest [-o option=value,option=value,...]\n\n\
\tdev=<device name> \t(no default)\n \
\txfer=<250,500,1000,1500,2000>\t(default=2000),\n \
\tpasses=<100000,250000.500000,750000,1000000>\t(default=1000000),\n \
\tUser Data Pattern=<00000000|FFFFFFFF|7e7e7e7e>\t(default=7e7e7e7e),\n \
\tLoopback Patterns<User,Critical,All>\t(default=Critical)\n\n

$ ER_BAD_OPTION_FCADDR
6108 "Incorrect remote address option passed to test: %s" \
Probable_Cause(s): <Wrong remote switch address command line argument.> \
Recommended_Actions: <Enter a valid address in hexidecimal format.> \
                     <0x104000 would be in the correct format.>

$ ER_BAD_OPTION_CHOICE_PATTERN
6109 "Incorrect value enter for running patterns options in switchtest: %s" \
Probable_Cause(s): <User, All, Critical not entered on command line.> \
Recommended_Actions: <choicepattern=User - runs one user pattern.> \
                     <choicepattern=Critical - runs the 10 most fault prone fibre channel test patterns> \
                     <choicepattern=All - runs a complete list of patterns.> \

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

$ VFD_GET_ERROR
6200 "vfdGetProperties call failed - return value: %d array index: %d param: %s var: %s"

$ --------------------------------------------------
$ FATAL:	8000 - 9998
$ --------------------------------------------------
 
$ BAD_DEVICE_NAME
8001 "Bad device name passed to test: %s" \
Probable_Cause(s): <Wrong entry on command line> \
Recommended_Actions: <Check and retype command line> \
USAGE: switchtest [-o option=value,option=value,...]\n\n\
\tdev=<device name> \t(no default)\n \
\txfer=<250,500,1000,1500,2000>\t(default=2000),\n \
\tpasses=<100000,250000.500000,750000,1000000>\t(default=1000000),\n \
\tUser Data Pattern=<00000000|FFFFFFFF|7e7e7e7e>\t(default=7e7e7e7e),\n \
\tLoopback Patterns<User,Critical,All>\t(default=Critical)\n\n

$ ER_SYS_COMP
8003 "\nAttempting to run 32 bit binary of this test while in 64 bit mode.\n\
Please run this test from the SUNWvtsst/bin/sparcv9 directory."

$ Probe

10001	"ERROR: probe open Failed; %s.\n"
10002	"ERROR: Failed to open device."
10003   "ERROR: Unknown error encountered.  Check for installation of correct driver"

$ TRYING to run switchtest on more than on port at a time
10050   "ERROR: User can only run switchtest on one port per switch\n\
at a time. Please deselect port and select desired port."

$ ERR_FCS_SELECTED
10051 "ERROR: Can not select switchtest while qlctest is selected."

$ BAD_FCS_NAME
10052 "ERROR: Can not select switchtest while qlctest is selected."

$ INVALID_HEX_PATTERN
10053 "ERROR: Invalid hex pattern entered. Correct example: 0xa5a5a5a5"

$ error messages for switchtest_info.c

$ INVALID_VFD_SW_IP_ADDR
10101 "ERROR: vfdGetProperties call failed with VFD_SW_IPADDR"

$ INVALID_VFD_SW_IPNAME
10102 "ERROR: vfdGetProperties call failed with VFD_SW_IPNAME"

$ INVALID_VFD_SW_FLASH
10103 "ERROR: vfdGetProperties call failed with VFD_SW_FLASH"

$ INVALID_VFD_SW_PROMHW
10104 "ERROR: vfdGetProperties call failed with VFD_SW_PROMHW"

$ INVALID_VFD_SW_PROMSW
10105 "ERROR: vfdGetProperties call failed with VFD_SW_PROMSW"

$ INVALID_VFD_SW_FLASHSW
10106 "ERROR: vfdGetProperties call failed with VFD_SW_FLASHSW"

$ INVALID_VFD_SW_MAXPORTS
10107 "ERROR: vfdGetProperties call failed with VFD_SW_MAXPORTS"

$ INVALID_VFD_SW_HWVER
10108 "ERROR: vfdGetProperties call failed with VFD_SW_HWVER"

$ INVALID_VFD_SW_MAC
10109 "ERROR: vfdGetProperties call failed with VFD_SW_MAC"

$ INVALID_VFD_SW_IPADDR_REMOTE
10110 "ERROR: vfdGetProperties call failed with VFD_SW_IPADDR_REMOTE"

$ INVALID_VFD_SW_REMOTE_FCADDR
10111 "ERROR: vfdGetProperties call failed with VFD_SW_REMOTE_FCADDR"

$ INVALID_VFD_REGISTERNAME
10112 "ERROR: vfdGetProperties call failed with VFD_REGISTERNAME"

$ INVALID_VFD_SW_PORTNUM
10113 "ERROR: vfdGetProperties call failed with VFD_SW_PORTNUM"

$ INVALID_VFD_PGROUP
10114 "ERROR: vfdGetProperties call failed with VFD_PGROUP"

$ INVALID_VFD_PHYSPATH
10115 "ERROR: vfdGetProperties call failed with VFD_PHYSPATH"

$ INVALID_VFD_LGROUP
10116 "ERROR: vfdGetProperties call failed with VFD_LGROUP"

$ INVALID_VFD_SW_PORTTYPE
10117 "ERROR: vfdGetProperties call failed with VFD_SW_PORTTYPE"

