User guide

Chapter 3 - Additional Features
User Guide 265
Example to send e-mail to z@none.com (SMTP's IP address 10.0.0.2) from the e-mail address
a@none.com 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 z@none.com -f a@none.com -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.