How to send net-snmp traps with "C"

I need to write code to send traps from my application (using the net-snmp API) Does anyone have a simple code example for this? Thanks, Gil

+5
source share
1 answer

Net-snmp contains a command line application called snmptrap that can be used to create traps. You can read the textbook here , and you can download its source from here . \ net-snmp-5.5 \ apps \ snmptrap.c has a length of 395 lines, so it can be considered as a "simple code example."

+5
source

All Articles