RE: snmptrap - library calls

2009-05-08 Thread Vinod Nanjaiah
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] There doesn't seem to be any sample program available on the net for traps. apps/snmptrap.c I used the snmptrap.c from net-snmp version 5.4.2 and this is what I observed. 1 I am able to send a generic trap once 2 the

Re: snmptrap - library calls

2009-05-07 Thread Dave Shield
2009/5/7 Vinod Nanjaiah vinod_nanja...@mindtree.com: Well, snmptrap can be used from command line to send traps. But, what I am looking for is to make use of snmp library calls to generate traps - for example, by using send_easy_trap () or snmp_v2trap () functions. You can't - those are

RE: snmptrap - library calls

2009-05-07 Thread Vinod Nanjaiah
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] Well, snmptrap can be used from command line to send traps. But, what I am looking for is to make use of snmp library calls to generate traps - for example, by using send_easy_trap () or snmp_v2trap () functions. You

Re: snmptrap - library calls

2009-05-07 Thread Dave Shield
2009/5/7 Vinod Nanjaiah vinod_nanja...@mindtree.com: But, what I am looking for is to make use of snmp library calls to generate traps - for example, by using send_easy_trap () or snmp_v2trap () functions. You can't - those are part of the *agent* trap API. Does this mean that these can

RE: snmptrap - library calls

2009-05-07 Thread Vinod Nanjaiah
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf Of Dave Shield There doesn't seem to be any sample program available on the net for traps. apps/snmptrap.c Thanks Dave. I was able to successfully send a trap using the code from snmptrap.c. But, when I try to