Service manual

163Appendix G Generating Alarm and Syslog
Cyclades-TS Installation & Service Manual
template(sendsms -d 123 -m \$FULLDATE $HOST $MSG\ 10.0.0.1"));
};
3. To send snmptrap:
destination <ident> {pipe(/dev/cyc_alarm template(snmptrap <pars>)); };
where ident: uniquely identify this destination
pars: -v 1
<snmptrapd IP address>
public : community
\\ : enterprise-oid
\\ : agent/hostname
<trap number> : 2-Link Down, 3-Link Up, 4-Authentication Failure
0 :
\\ : host-uptime
.1.3.6.1.2.1.2.2.1.2.1 :interfaces.iftable.ifentry.ifdescr.1
s : string
\<message - max. size 250 characters>\
Example to send a Link Down trap to server at 10.0.0.1 with message carrying the current date, the
hostname of this TS and the message that received from the source:
destination d_trap {
pipe(/dev/cyc_alarm
template(snmptrap -v 1 10.0.0.1 public \\ \\ 2 0 \\ \ .1.3.6.1.2.1.2.2.1.2.1 s
\$FULLDATE $HOST $MSG\ ));
};
4. To write in file:
destination d_file { file(<filename>);};
Example send message to console:
destination d_console { file(/dev/ttyS0);};
Example write message in /var/log/messages file:
destination d_message { file(/var/log/messages); };
5. To write messages to the session of logged-in user: