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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -