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 as a scalar value.   

It will not be possible to use a host name as the destination for the trap
or DNS name resolution, but the trap will need to be sent to a specific
destination ip.

 

Therefore, the  destination IP is somewhat dynamic and can't be know a
priori to that it may be written to the config file.  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.   

 

 

Is there a  runtime API or argument to one of the trap sending APIs that
will allow me to runtime specify the trap destination ip?   I am currently
using the send_v2trap() API to

send the trap.

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to