2009/3/30  <[email protected]>:
>  It depends upon you. You can send TRAP in same or write different .

I would agree - you could either send the trap from within your application,
or invoke the "snmptrap" command to do this.
   Coding this yourself is cleaner, while forking off snmptrap is probably
simpler.


>Please go throught
>    http://www.net-snmp.org/dev/agent/group__agent__trap.html
> and use appropriate API.

No - please do *NOT* attempt to use these API calls.
They are designed for use within an SNMP agent, and rely
on the agent infrastructure for sending the trap.

>From what you've said, you're working with a standalone application,
and turning it into an SNMP agent doesn't feel the right approach.

You'd be better off looking at the code for the snmptrap command,
to see how this sends traps.

Dave

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to