Service manual
Chapter 5: Administration 77
The following example displays an email sent to z@none.com (SMTP's IP address 10.0.0.2) from
the email address a@none.com with subject “ALARM”. The message carries the current date,
hostname of the console server and the message received from the source.
The following example shows how to send a message to the sms server.
destination <ident> {pipe(‘/dev/cyc_alarm’ template(‘sendsms
<pars>’));};
where <ident> uniquely identify the destination. The parameters are:
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>
The following example sends a page to phone number 123 (Pager server at 10.0.0.1) with the
message carrying the current date, the hostname of the console server and the message received
from the source.
Sending an snmptrap
destination <ident> {pipe(‘/dev/cyc_alarm’ template(‘snmptrap
<pars>’)); };
where <ident> uniquely identify the destination. The parameters are:
•pars : -v 1
• <snmptrapd IP address>
• -c public : community
• \"\" : enterprise-oid
• \"\" : agent/hostname
• <trap number> : 2-Link Down, 3-Link Up, 4-Authentication Failure
destination d_mail1 {
pipe('/dev/cyc_alarm'
template('sendmail -t z@none.com -f a@none.com -s \”ALARM\” \\
-m \'$FULLDATE $HOST $MSG\' -h 10.0.0.2'));
};
destination d_pager {
pipe(‘/dev/cyc_alarm’
template(‘sendsms -d 123 -m \’$FULLDATE $HOST $MSG\’
10.0.0.1’));
};