![Black Box LS1016A User Manual Download Page 265](http://html.mh-extra.com/html/black-box/ls1016a/ls1016a_user-manual_2763435265.webp)
Chapter 3 - Additional Features
User Guide
265
Example to send e-mail to [email protected] (SMTP's IP address 10.0.0.2) from the e-mail address
[email protected] with subject “BLACK BOX
®
Advanced Console Server-ALARM”. The message
will carry the current date, the host-name of this BLACK BOX
®
Advanced Console Server
and the message that was received from the source.
destination d_mail1 {
pipe('/dev/cyc_alarm'
template('sendmail -t [email protected] -f [email protected] -s \'BLACK BOX ®
Advanced Console Server-ALARM\' \
-m \'$FULLDATE $HOST $MSG\' -h 10.0.0.2'));
};
2) To send to pager server (sms server):
destination <ident> {pipe(‘/dev/cyc_alarm’ template(‘sendsms
<pars>’));};
where ident: uniquely identify this destination
pars: -d <mobile phone number>
-m \’<message - max.size 160 characters>\’
-u <username to login on sms server>
-p <port sms - default : 6701>
<server IP address or name>
Example to send a pager to phone number 123 (Pager server at 10.0.0.1) with message carry-
ing the current date, the hostname of this BLACK BOX
®
Advanced Console Server and the
message that was received from the source:
$HOST
The name of the source host.
$FULLHOST
The name of the source host and the source driver. Format:
<source>@<hostname>
$MSG or $MESSAGE
The message received.