On Fri, 2011-08-05 at 12:09 -0400, Bob O'Neil wrote:
> I have the AgentX approach working under both Windows and Linux
> (GETS/SETS/WALKs, etc), and I need to send traps/notifications to a
> destination. I am currently sending SNMP v2 notifications using the
> AgentX interface.  I currently have these being emitted to a
> destination IP as specified by the trapv2sink entry in the snmpd.conf
> file. In my subagent, I am asking a running master snmpd to send the
> notification.
> 
> This is all well and good, and then the Catch-22 situation. In my
> implementation, the destination IP for the traps will be given to my
> application over the SNMP interface.

I have to admit that I never have understood why people like doing
this. 

> Therefore, the destination IP is somewhat dynamic.  I do not want to
> runtime write the destination IP to the configuration file, and then
> restart the agent using system calls if at all possible.

I assume that reloading the configuration is out of the question as
well?

> Is the a runtime API or argument to one of the trap sending APIs that
> will allow me to runtime specify the trap destination ip?

There is no support for trap destination if you send using AgentX but if
you send the trap directly you can send it anywhere. See snmptrap for
how it is done.

/MF



------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to