Email Alerts For Serial Events - Lantronix SCS Reference Manual

Secure console servers
Table of Contents

Advertisement

Console Server Features
FTP to the SCS.
1
Type ls to get a listing of log files.
2
3
"Get" or "mget" a copy of the log file (for example., # mget Port_1.log).

3.3 Email Alerts for Serial Events

Once a port is configured for port buffering (as described in Event Port Logging on page 3-2), you can
enable email notification. This feature triggers an email if the connected device reboots or otherwise
produces a burst of console output of 20 or more characters.
The port buffers incoming data for up to 25 seconds or until the log file reaches1500 bytes before sending
the email, which contains the current contents of the log file. Any data that comes in after that 25 seconds
will be saved in the file, but not included in that email. Email can not be sent from the same port more than
once every 10 minutes.
The email sent by the SCS also includes a URL that refers to the serial log file directly, so you can open it
in an email client or web browser. You will need to enter the system login password to access the file.
If the HTTP server has been disabled with the Set/Define Protocol HTTP
Note:
command, you will not be able to use the URL to access the log file.
Each port's email settings can be separately configured, or a default configuration can be created that will
be used for all email notifications. An emailsite stores the information necessary for email notification. The
only possible names for emailsites are portxx, where xx is a serial port number, or default. Settings for the
default emailsite will be used for any that are missing in the port-specific files.
Use the Define Email commands to configure each emailsite with features such as an email address for the
email to be sent to, a from line, a subject line, an SMTP mailhost, and a reply-to address.
The following example configures an emailsite for the second serial port.
Local>> DEFINE EMAIL port2 TO "admin@strut.com"
Local>> DEFINE EMAIL port2 FROM "Conserv2"
Local>> DEFINE EMAIL port2 SUBJECT "System Crash"
Local>> DEFINE EMAIL port2 MAILHOST "mail.strut.com"
Local>> DEFINE EMAIL port2 REPLYTO "managers@strut.com"
Dynamic print variables can be used with all of these command strings. For a complete list of available
variables, see Define Email on page 12-55.
To enable email notification for a port, use the Define Ports Event Email Serialdata command. This
command also sets the port's access to Access Remote.
Email notification only works on ports that have port buffering enabled.
Note:
Local>> DEFINE PORT 2 EVENT EMAIL SERIALDATA ENABLED
Figure 3-3: Configuring an Email Site
Figure 3-4: Enabling Email Notification
3-3
Email Alerts for Serial Events

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SCS and is the answer not in the manual?

Table of Contents