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

$  #ident  "@(#)sample.msg  1.1  96/03/22  SMI"

$ Message ID ranges:
$ VERBOSE  1 ~ 1999
$ INFO     2000 ~ 3999
$ WARNING  4000 ~ 5999
$ ERROR    6000 ~ 7999
$ FATAL    8000 ~ 9998
$ 9999 is reserved by test library for old style messages.
$ 0 is reserved and is an invalid message for all tests.

$ *********************************************
$ *VERBOSE* messages
$ *********************************************
$ TEST_RUN_VMSG 1
1	"Running functional test..."
100	"gethostname= %s"
101	"Starting ocfserv"
102	"Start testing..."
103	"testopts=%s"
104	"Invoking cleanup"
105	 "system : %s"
106	"Deallocate userinfo array"
107	"User Tag Info: %s"
108	"User Name: %s"
109	"Deregistered client, status=%d"
110	"Testing OCF_UserInfoCardService_SetUserInfo"
111	"Successfully set the user info, userName=%s"
112	"Authentication (with conversation error) status = %d"
113	"Calling OCF_Authenticate: "
114	"\tUser Password: %s"
115	"Valid card"
116	"Time since validated: %d"
117	"Validate PIN succeeded, status=%d"
118	"Changing PIN  from \"%s\" to \"%s\""
119	"Pin Changed successfully\n"
200	"Validate PIN by correct PIN \"%s\""
201	"Pin Validation passed"
202	"Validate PIN by incorrect pin \"%s\""
203	"Pin Validation by incorrect pin passed"
204	"Change PIN from \"%s\" back to \"%s\""
205	"Restored PIN passed"		
206	"Successfully set user %s password"
207	"User %s Password: %s"
208	"Status after delete of %s user info: %d"
209	"ocf_conv: OCFAuth_Verify_Password parameters: "
210	 "\tUser Type = [%s]"
211	 "\tUser Name = [%s]"
212	 "\tPassword = [%s]"
213	 "kill ocfserv : pid %d"
214	 "Starting card_detect_test"
215	 "Starting card_removal_test"
216	 "Starting lock_unlock_test"
217	 "Starting pin_test"
218	 "Starting authentication_test"

300	 "Starting scmregstest, dev at %s"
301	 "Card is %s present"
302	 "Starting scmreadtest, dev at %s" 
303	 "Powering up the card..." 
304	 "Write 0x%0x to %s registser"
305	 "Read %s registser = 0x%x"
306	 "starting IOC_START_XMTRCV_POLLING"
307	 "Card reset done"
308	 "Card not present"
309	 "Reading data..."
310	 "No data read, count=%d"
311	 "data = 0x%x count = %d"

$ *****************************************************
$ *INFO* messages (includeing INFO, CONSOLE, and LOGFILE)
$ No double quotes (" ") is needed for INFO messages.
$ *****************************************************

$ TEST_USAGE_INFOMSG 2000
2000	%s specific arguments [defaults]:\n\
\tmode=<rw|ro>				read/write mode\n\
\tocfbasedtast=<enable|disable>        	ocf-based tests enable\n\
\tcardremovaltest=<Enable|disable>     	card intervention required\n

$ TEST_ARGLIST_INFOMSG 2001
2001	[mode= ][,ocfbasedtest= ][,cardremovaltest= ][,dev= ]\n
2010	"Callback %s invoked"
2011	"ocf_test starts"
2012	"Status=%d Handle=%d"
2013	"Card is present"
2014	"Card is not present: status=%d"
2015	"Card removed\n"
2016	"Timeout, Card not removed: status=%d"
2017	"Enter Password: "
2018	"Waiting for card removal"

$ *********************************
$ *WARNING* messages
$ *********************************
$ TEST_WARNMSG 4000
4000	"Specify a string for the \"tag\" option."
4001	"\"tag\" option begins with non-alpha character (0x%x)"
4002	"Specify a string for the \"username\" option."
4003	"\"username\" option begins with non-alpha character (0x%x)"
4004	"\"lpcount\" option requires a numbe."
4005	"Unknown interface"
4006	"Pin Validation failed"
4007	"OCFAuth_Invalid_PIN: Invalid PIN Entered"

$ ********************************
$ *ERROR* messages
$ ********************************

6000	"Cannot open /tmp/vts.sc"
6001	"Register client failed, status=%d"\
Probable_Cause(s): \
<Not running Solaris 8 (build 30) or later>\
<Down rev'ed smartcard reader driver>\
<OCFserv is not running>\
<Faulty smartcard reader connection >\
Recommended_Action(s): \
<Check revision of Solaris e.g #uname -a>\
<Check revision of reader driver e.g #pkginfo -l>\
<Check ocfserv is running .e.g. # ps -eaf|grep ocfserv>\
<Check smartcard reader cable connection>
6002	"WaitForCardInserted failed"\
Probable_Cause(s): \
<Card not inserted properly>\
<Faulty smartcard reader connection >\
Recommended_Action(s): \
<Re-inserted smartcard>\
<Check smartcard reader cable connection>

6003	"Unable to lock card, status=%d"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard reader >\
<Faulty smartcard >\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Replace smartcard reader and retry >\
<Replace smartcard and retry >

6004	"Unable to unlock card, status=%d"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard >\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Replace smartcard or reinitialize smartard and retry >
6005	"GetUserInfo failed, tag=%s"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard >\
<Not using test smartcard >\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Use test card or reinitialize smartard and retry >

6006	"SetUserInfo failed, username=%s"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard >\
<Not using test smartcard >\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Use test card or reinitialize smartard and retry >

6007	"Verify SetUserInfo failed, status= %d"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard >\
<Not using test smartcard >\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Use test card or reinitialize smartard and retry >

6008	"Authentication failed (errno=%d)"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard >\
<Not using test smartcard >\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Use test card or reinitialize smartard and retry >

6009	"Unable to get password or is NULL (status=%d)"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard >\
<Not using test smartcard >\
<card not initialized>\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Use test card or reinitialize smartard and retry >

6010	"Invalid card"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard >\
<Not using test smartcard >\
<card not initialized>\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Use test card or reinitialize smartard and retry >

6011	"Error in time since validated: %d"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard >\
<Not using test smartcard >\
<card not initialized>\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Use test card or reinitialize smartard and retry >

6012	"Validate PIN failed"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard >\
<Not using test smartcard >\
<card not initialized>\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Use test card or reinitialize smartard and retry >

6013	"Change PIN failed: %d"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard >\
<Not using test smartcard >\
<card not initialized>\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Use test card or reinitialize smartard and retry >

6014	"Pin Validation by incorrect pin failed"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard >\
<Not using test smartcard >\
<card not initialized>\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Use test card or reinitialize smartard and retry >

6015	"Restore PIN change failed: %d"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard >\
<Not using test smartcard >\
<card not initialized>\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Use test card or reinitialize smartard and retry >

6016	"Set user %s passwd failed\n"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard >\
<Not using test smartcard >\
<card not initialized>\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Use test card or reinitialize smartard and retry >

6017	"Get user %s passwd failed"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard >\
<Not using test smartcard >\
<card not initialized>\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Use test card or reinitialize smartard and retry >

6018	"DeleteUserInfo %s failed, status=%d"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard >\
<Not using test smartcard >\
<card not initialized>\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Use test card or reinitialize smartard and retry >
6019	"User %s info not deleted, status=%d"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard >\
<Not using test smartcard >\
<card not initialized>\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Use test card or reinitialize smartard and retry >

6020	"Unexcpected Status after delete of %s = %d"
Probable_Cause(s): \
<OCFserv is not running>\
<Faulty smartcard >\
<Not using test smartcard >\
<card not initialized>\
Recommended_Action(s): \
<Check ocfserv is running .e.g. #ps -eaf|grep ocfserv>\
<Use test card or reinitialize smartard and retry >

6100	"Cannot open device %s, %s."
Probable_Cause(s): \
<i2c device driver not installed> \
<System software error>\
Recommended_Action(s): \
<Install i2c device driver> \
<Check device tree configuration i.e. #prtconf> \
<Contact SUNvts support>

6101	"Ioctl %s failed, %s."
Probable_Cause(s): \
<Device driver not installed> \
<System software error>\
Recommended_Action(s): \
<Install i2c device driver> \
<Check device tree configuration i.e. #prtconf> \
<Contact SUNvts support>

6102	"read failed, %s."
Probable_Cause(s): \
<Connectivity problem> \
<Card not seated>\
<Faulty reader>\
Recommended_Action(s): \
<Check cable connectivity> \
<Check card> \
<Replace reader and retry> \
<Contact SUNvts support>

6150	"Reg %s read data miscompared, obs= 0x%02x, exp= 0x%02x, xor= 0x%02x"
Probable_Cause(s): \
<Faulty cardreader>\
<Pontential cable connectivity>\
<System software error>\
Recommended_Action(s): \
<Replace cardreader> \
<Check cable connectivity> \
<Contact SUNvts support>

$
$ sample message
$
$6009	"Probe failed. %s devices not found\n"\
$Probable_Cause(s): \
$<Check if i2c device driver SUNWi2cr.[ux] is installed>\
$<platform(s) not supported>
$6011	"Device %s voltage ** Not Ok ** "\
$Probable_Cause(s): \
$<Faulty voltage sensor>\
$<Faulty power supply>\
$Recommended_Action(s): \
$<Check voltage senor data path>\
$<Check power supply>
$6013	"WARNING!! Device %s, Current Temprature <%d> exceeds MaxTemp <%d>"\
$Probable_Cause(s): \
$<Faulty temperature sensor>\
$<Faulty device(s)>\
$<Obstructed air flow>\
$Recommended_Action(s): \
$<Check temperature senor data path>\
$<Check devices under monitor for abnormal heat dissipation>\
$<Check for obstruction in air flow and corrected accordingly if applicable>
$6901	"ERROR: cannot find property node for %s"\
$Probable_Cause(s): \
$<Check if i2c device driver SUNWi2cr.[ux] is installed> \
$<System software error>\
$Recommended_Action(s): \
$<Install SUNWi2cr.[ux] packages> \
$<Contact SUNvts support>

$ ********************************
$ *FATAL* messages
$ ********************************

8000	"Cannot gethostname due to %s"
8001	"System call execve failed, due to %s"
8002	"System call execve failed"
8003	"System call fork failed, cannot start ocfserv"
