开发者

how to send net-snmp traps from "C"

I need to write code to send traps from my application (using net-snmp APIs) Anyone has a simple sample cod开发者_Go百科e to do that? Thanks, Gil


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'.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜