I need to configure snmpd in runtime through non-snmp socket. I am considering now an option to use the function register_readfd(). This function would define a callback to accept configuration statements like syscontact, trapsink, etc.
Everything seems to be fine but impossibility to delete entries. Let's say we want to delete some trapsink entry, that we had inserted before. The problem is: the "configuration language" doesn't contain sentences of type "no". Are there any ideas? For example, I would delete trapsink entry from sinks array in the file agent_trap.c (I mean I would extend this file by new API function delete_trap_session). But as far as I see, this array actually is not used: SNMPD_REGISTER_CALLBACK_NOTIFICATIONS is used instead; with as actually API to use data base in snmpNotifyTable. Am I right? Now, it seems that I need or: a) to disable snmpNotifyTable by configure (--with-out-mib-moduls=notifications) or b) extend snmpNotifyTable with API to delete entry in this table by host name of trapsess. While I think, I am not abble to do b) I prefer a). Your opnion? With respect, Beth ____________________________________________________ On Yahoo!7 Messenger - Make free PC-to-PC calls to your friends overseas. http://au.messenger.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders