how to capture trap message in net-snmp -
i work net-snmp , try few commands like:
snmptrap -v 1 -c public host trap-test-mib::demotraps localhost 6 17 '' \ snmpv2-mib::syslocation.0 s "just here" snmptrap -v 2c -c public localhost '' notification-test-mib::demo-notif \ snmpv2-mib::syslocation.0 s "just here" snmptrap -v 1 -c public host net-snmp-examples-mib::netsnmpexampleheartbeatnotification "" 6 17 "" \ netsnmpexampleheartbeatrate 123456
but give me new line without error or something
can give me advice ?
netsnmp provides snmptrapd purpose.
it application can listen on port (default 162) on host traps , log received.
//edit ...
here example ...
snmptrapd -f -m +all -lo -c /tmp/snmptrapd.conf 9876
where /tmp/snmptrapd.conf
contains 1 line simplicity disables community/password checking
disableauthorization yes
use man snmptrapd
see flags/arguements mean.
Comments
Post a Comment