Rajkumar Purohit <rajkumar.puro...@mphasis.com> writes: > Can we use snmptrap.c(net-snmp/apps/snmptrap.c) to send trap in linux.
Yes. > Basically I change the main() function(in snmptrap.c) name with > send_trap() in snmptrap.c and I am calling that function from my test > code to send trap. Yep. snmptrap.c is supposed to be an example of how to send one; you can certainly use the same methods in your own code to send traps. > Please give information if I can call function like that and what > argument do I need to pass in my send_trap() function? You'll need to read the code and understand how it works. -- Wes Hardaker Please mail all replies to net-snmp-coders@lists.sourceforge.net ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders