STPD Messages

From SEPsesam

Jump to: navigation, search
// $Id: ftpmessages.h,v 1.10 2005/01/12 11:29:05 rs Exp $


/*
FTP-like server-to-client messages
for STPD
*/

"120 Maximum number of STPD processes running. Please try later.\r\n"
"150 Opening data connection for %s. Please wait...\r\n"
"200 '%s' Command successful.\r\n"
"202 '%s' Command not implemented.\r\n"
"220 STP Service Ready. Version: %s. PID: %d. Type HELP for list of commands.\r\n"
"221 Service closing control connection.\r\n"
"226 Closing data connection. Transfer completed.\r\n"
"230 User logged in, proceed.\r\n"
"250 %s Command successful.\r\n"
"257 \"%s\" is current directory.\r\n" 
"331 Password required for %s.\r\n"
"421 Service not available, closing control connection. %s\r\n"
"421 Access is disabled, contact your backup administrator. \r\n"
"425 Can't open data connection. %s\r\n"
"450 Requested file action not taken. %s\r\n"
"500 Syntax error, command unrecognized.\r\n"
"502 '%s' Command not implemented. \r\n"
"501 Syntax error in parameters or arguments.\r\n"
"503 Login with USER first.\r\n"
"520 Operation aborted by Sesam Server.\r\n"
"520 Received signal %d - operation aborted.\r\n"
"530 Login incorrect. %s\r\n"
"530 Access is denied. %s\r\n"
"530 User database is open. %s\r\n"
"530 User database not found. %s\r\n" 
"530 Change directory to Work directory failed. %s.\r\n"
"550 %s Failed. %s:%s\r\n"
"553 %s Failed. %s\r\n"
"553 %s Failed. SMS user is not allowed to restore from this directory\r\n"
"553 %s Failed. SMS user is not allowed to save on this directory\r\n"
"200 Type set to I.\r\n"
"200 Type set to A.\r\n"
"200 Type set to L (byte size 8).\r\n"
"200 Login enabled.\r\n"
"200 Login disabled.\r\n"

/*FTP Client command parsing strings*/
"USER %s %s"	/*Parsing SMS arguments: [SMS:szDeviceName:iBlockSize:{EXCLUSIVE|SHARE|INQUIRE|KILL}] */
"PASS %s"


/*Other msgs*/
"Timeout expired."

/*Console/Log welcoming message*/
"STP Service Ready. Listening port: %d. Version: %s\n"
"STPD Process Started. Initializing..."
"STPD Process Exiting."

/*Authentication message*/
"User not authorized for STP Service."
"Please login with USER and PASS."
"Please login to SMS."
"Contact your Backup Administrator."
"Password must be crypted."
"Only SESAM User is allowed."
"No such user."
"Password incorrect."
"Client host name is empty."
"Client resolves his IP address [%s] to [%s], but server resolves it to [%s]. Please adjust your name resolution."
"Server could not resolve client IP address [%s]. Please check your name resolution."
"Try later."
"User database not found. Contact your Backup Administrator."


/*SYST command replies TBD - not in spec - but useful*/
"211-%s STP Service status:\r\n"
"     Version:%s. STP Service PID:%d\r\n"
"     %d. PID:%d FROM:%s USER:%s CMD:%s SMS:"
"211 End of status.\r\n"

/* HELP command */
"214-The following commands are recognized (* =>'s unimplemented).\r\n"
"214 End of help. Type HELP <command> for details.\r\n"
"214 Syntax: %s %s\r\n"
"214 Syntax: %s %s; unimplemented.\r\n"
"   "
"*"

/*LIST */
"TAPE:%d SEG:%d NAME:%s INFO:%s TYPE:%d\r\n"
"SMS DIR: FILEMARK\r\n"
"SMS DIR: END OF TAPE\r\n"
"SMS DIR: FAILURE: %s\r\n"
"SMS DIR: UNKNOWN RETURN CODE: %d\r\n"

"SMS:DIR"
"SMS:LS"

/*SITE KILL*/
"Cannot terminate current thread."
"Process ID not found."

/*STOR*/
"SAVESET:%s TAPE:%d SEGMENT:%d"
"COM Command Line:%s"
"FILE: %s"
#define	KBYTES	1024

/*LOG MSGS*/
"SEND: [%s]"
"RECV: [%s]"
"ERROR: [%s]"
"SHARED_MEM: [%s]"

"LOGIN"

/*INQUIRE*/
"INQUIRE"

"OP_COUNT"
"STATUS"
"AMOUNT"
"THROUGHPUT"

"    OP_COUNT:BLOCKS:%f\r\n"
"    STATUS:%s\r\n"
"    AMOUNT:BYTES:%f\r\n"
"    THROUGHPUT:GB/H:%f\r\n"
"    %sERROR:%s\r\n"
"    %s - invalid inquire option\r\n"

"STATUS:"
"OP_COUNT:"
"AMOUNT:"
"THROUGHPUT:"

"213-SMS Inquire status begin\r\n"
"213 SMS Inquire status end\r\n"


/*NULL*/
"NULL"	/*keyword for /retr from / to nowhere*/
"NULL BUFFER_SIZE:%d SOCKET_RCVBUF:%d"
Personal tools