madhu babu sunkara
madhu babu sunkara

Reputation: 41

How to receive SNMP traps using net-snmp API?

How can I receive traps using C or C++ and net-snmp module. I need sample code but the examples at http://www.net-snmp.org/ use syscalls but not API methods.

Upvotes: 3

Views: 7250

Answers (1)

k1eran
k1eran

Reputation: 4970

The net-snmp site does have comprehensive coding tutorials.

Look at http://www.net-snmp.org/wiki/index.php/Tutorials#Coding_Tutorials

EDIT: Also see source code for snmptrapd as a guide for how to receive traps.

Upvotes: 0

Related Questions