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 part of the *agent* trap API.

If you are sending notifications from a client application,
then you use the techniques for sending normal SNMP requests,
as illustrated by the code for snmptrap.


> There doesn't seem to be any sample program available on the net for traps.

    apps/snmptrap.c


Dave

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to