Console Server Features
Email Alerts for Serial Events
3-3
1
FTP to the SCS.
2
Type
ls
to get a listing of log files.
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.
Note:
If the HTTP server has been disabled with the Set/Define Protocol HTTP
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.
Figure 3-3:
Configuring an Email Site
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.
Note:
Email notification only works on ports that have port buffering enabled.
Figure 3-4:
Enabling Email Notification
Local>> DEFINE EMAIL port2 TO “[email protected]”
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 “[email protected]”
Local>> DEFINE PORT 2 EVENT EMAIL SERIALDATA ENABLED
Содержание SCS
Страница 14: ...xii ...
Страница 171: ...Modem Sharing Examples 10 6 ...
Страница 314: ...Command Reference Service Commands 12 110 ...
Страница 403: ...Show 802 11 Errors Rightmost Number B 5 00000002 Internal error 00000001 Internal error ...
Страница 424: ...Index 13 ...