172
Administration
destination <ident> {pipe(‘/dev/cyc_alarm’ template(‘snmptrap <pars>’));
};
where ident : uniquely identify this destination
•
pars : -v 1
•
<snmptrapd IP address>
•
-c public : community
•
\"\" : enterprise-oid
•
\"\" : agent/hostname
•
<trap number> : 2-Link Down, 3-Link Up, 4-Authentication
Failure
•
0 : specific trap
•
\"\" : host-uptime
•
.1.3.6.1.2.1.2.2.1.2.1 :interfaces.iftable.ifentry.ifdescr.1
•
s : the type of the next field (it is a 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 ACS and the message that
was received from the source:
4) To write in file :
destination d_file { file(<filename>);};
Example send message to console :
destination d_trap {
pipe("/dev/cyc_alarm"
template("snmptrap -v 1 -c public 10.0.0.1 public \"\" \"\" 2 0 \"\" \\
.1.3.6.1.2.1.2.2.1.2.1 s \"$FULLDATE $HOST $MSG\" "));
};
File Description 5.6: Sending a link down trap
destination d_console { file("/dev/ttyS0");};
File Description 5.7: Sending messages to console
Summary of Contents for AlterPath ACS
Page 16: ...xvi Table of Contents...
Page 29: ...13 This page has been left intentionally blank...
Page 30: ...14 Preface...
Page 68: ...52 Device Access...
Page 86: ...70 Authentication Step 5 Saving changes To save the configuration run the command saveconf...
Page 96: ...80 Authentication Save the configuration to flash 2 cli config savetoflash...
Page 114: ...98 Authentication...
Page 204: ...188 Administration To exit the CLI mode and return to ACS s shell issue the command cli quit...
Page 268: ...252 Power Management with AlterPath PM Integration...
Page 304: ...288 PCMCIA Cards Integration...
Page 338: ...322 Profile Configuration...
Page 364: ...348 Additional Features and Applications...
Page 376: ...360 Appendix A New User Background Information...
Page 406: ...390 Appendix C Cabling and Hardware Information This page has been left intentionally blank...
Page 418: ...402 List of Tables...
Page 420: ...404 List of Figures...