ETERNUS SF Storage Cruiser User's Guide 13.2 - Solaris (TM) Operating System / Linux / Microsoft(R) Windows(R) -
Contents Index PreviousNext

Appendix F Mail client function program with the Windows Version of Manager (stxsmail)

The explanation described as follows is how to use mail client function program (henceforth stxsmail) which sends event inftion with bat linkage of the Windows version manager.

Stxsmail is a program which achieves the mail client function in Windows.

For Solaris OS or Linux, SMTP server is used on the server where the SSC administrative server is running.

For details, see "6.4 Event Display and Linkage".

F.1 stxsmail Operating Requirements

stxsmail has the following operating requirements:

F.2 Command Format  

The format of the stxsmail command is described.

F.3 Mail File Format  

Mail files handled by stxsmail must satisfy the following requirements:

A sample mail file is shown below.

The mail file contains a mail header and text, which are separated by one blank line.

General mail header items can be specified in the mail header.

The basic mail header items are described below.

Be sure to confirm that "From" and "To" are correctly specified in the mail header.

If "From" or "To" is omitted, stxsmail posts an error and terminates.

The other mail header items can be omitted.

Specify mail addresses for "From", "To", "Cc", and "Bcc" only as follows:

Be sure not to include a non-mail address. See the following examples:

Multiple mail addresses can be specified on one line for "To", "Cc", and "Bcc" as follows:

A mail address can be specified over multiple lines for "To", "Cc", and "Bcc" as follows:

A total of 16 mail addresses can be specified for "To", "Cc", and "Bcc".

General mail headers not described above can be specified, however, stxsmail does not guarantee operating results. Mail header items not described above are sent by stxsmail as is to the mail server.

F.4 Errors and Responses  

stxsmail posts messages depending on the execution results.

The messages and appropriate responses are described below.

[Message]

Usage: stxsmail [-v] [-l <LogFile>] [-p <PortNo>] [-t <Timeout>] <MailServer> <MailFile>

-v : Verbose mode

-l <LogFile> : Log file name

-p <PortNo> : SMTP port number (default=25)

-t <Timeout> : Timeout value (default=60sec)

<MailServer> : Mail server (IP address or host name)

<MailFile> : Mail file (must be contains MAIL-HEADERS)

[Explanation]

stxsmail was started incorrectly. (Parameters are missing, invalid options are specified, or invalid values are specified for options.)

[Response]

Check the operations for stxsmail, and specify correct options and parameters.

[Message]

Cannot send a mail - Error on WSACleanup()... Maybe WINSOCK is not available or illegal.

[Explanation]

Initialization of WinSock failed. (An error occurred in the WSACleanup() function.)

[Response]

Confirm that WinSock can be used on the system. (WinSock can generally be used, so if this error occurs, the OS must be reinstalled.)

[Message]

Cannot send a mail - Error on WSAStartup()... Maybe WINSOCK is not available or illegal.

[Explanation]

Initialization of WinSock failed. (An error occurred in the WSAStartup() function.)

[Response]

Confirm that WinSock can be used on the system. (WinSock can generally be used, so if this error occurs, the OS must be reinstalled.)

[Message]

Cannot send a mail - Error on socket()... Maybe WINSOCK is not available or illegal.

[Explanation]

Creating a WinSock socket failed. (An error occurred in the socket() function.)

[Response]

Confirm that WinSock can be used on the system. (WinSock can generally be used, so if this error occurs, the OS must be reinstalled.)

[Message]

Cannot send a mail - Error on gethostbyname()... Maybe missing DNS or name server not respond.

[Explanation]

The server node name specified for <MailServer> could not be converted to an IP address.

[Response]

Check the network environment to determine whether the server node name can be correctly converted to an IP address (make sure that DNS settings are correct).

[Message]

Cannot send a mail - Error on connect()... Maybe host unreachable.

[Explanation]

Connection to the mail server failed.

[Response]

Check whether the mail server specified in <MailServer> is functioning normally.

[Message]

Cannot send a mail - Error on send()... Maybe communication error occoured on mail server.

[Explanation]

Data sending to the mail server failed.

[Response]

Check whether the mail server specified in <MailServer> is functioning normally. If it is, then check whether the mail server supports the standard protocol, SMTP.

[Message]

Cannot send a mail - Error on recv()... Maybe communication error occoured on mail server.

[Explanation]

Data receiving from the mail server failed.

[Response]

Check whether the mail server specified in <MailServer> is functioning normally. If it is, then check whether the mail server supports the standard protocol, SMTP.

[Message]

Cannot send a mail - SMTP protocol error... Protocol violation on mail server.

[Explanation]

Mail sending failed.

[Response]

Check whether the mail server specified in <MailServer> supports the standard protocol, SMTP.

[Message]

Cannot send a mail - SMTP server not respond.

[Explanation]

The mail server sends no response.

[Response]

Check whether the mail server specified in <MailServer> is functioning normally. If it is, then check whether the mail server supports the standard protocol, SMTP.

[Message]

Cannot send a mail - No "From" header.

[Explanation]

No "From:" header item was found in the mail file.

[Response]

Specify the "From:" mail header item correctly in the mail file.

[Message]

Cannot send a mail - No "To" header.

[Explanation]

No "To:" mail header item was found in the mail file.

[Response]

Specify the "To:" mail header item correctly in the mail file.

[Message]

Cannot send a mail - Not found mail file.

[Explanation]

The specified mail file was not found.

[Response]

Check for the mail file specified in <MailFile>.

[Message]

Cannot send a mail - Timeout detected.

[Explanation]

The mail server sends no response.

[Response]

Check whether the mail server specified in <MailServer> is functioning normally. If it is, then check whether the mail server supports the standard protocol, SMTP.

F.5 Restrictions  

Note the following points about using stxsmail:


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2008