how to send net-snmp traps from "C"
Asked Answered
B

1

6

I need to write code to send traps from my application (using net-snmp APIs) Anyone has a simple sample code to do that? Thanks, Gil

Botulism answered 15/11, 2009 at 7:29 Comment(0)
C
6

Net-snmp contains a command-line application called snmptrap which can be used to generate traps. You can take a look at a tutorial here and you can download its source from here. \net-snmp-5.5\apps\snmptrap.c is 395 lines long, so it can be considered as a 'simple sample code'.

Chestnut answered 15/11, 2009 at 9:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.