On Sun, 9 Apr 2006 22:05:17 +1000 (EST) Elisabeth wrote: EG> I need to configure snmpd in runtime through EG> non-snmp socket. ... EG> Everything seems to be fine but impossibility to EG> delete EG> entries. Let's say we want to delete some trapsink EG> entry, that we had inserted before. The problem is: EG> the "configuration language" doesn't contain EG> sentences of type "no". EG> EG> Are there any ideas?
You'll have to add a new API to delete entries. EG> For example, I would delete trapsink entry EG> from sinks array in the file agent_trap.c (I mean I EG> would extend this file by new API function EG> delete_trap_session). But as far as I see, this array EG> actually is not used: EG> SNMPD_REGISTER_CALLBACK_NOTIFICATIONS is used instead; EG> with as actually API to use data base in EG> snmpNotifyTable. Am I right? Sort of. You should follow the code to see where the data for that table actually comes from. It's all related. EG> Now, it seems that I need or: EG> a) to disable snmpNotifyTable by EG> configure (--with-out-mib-moduls=notifications) or EG> b) extend snmpNotifyTable with API to delete entry EG> in this table by host name of trapsess. EG> EG> While I think, I am not abble to do b) I prefer a). EG> Your opnion? I think it would be a shame to lose functionality, particularly from standard tables. The best be would be c) fix the notification tables to be read-write, so entries could be added/deleted via SNMP. -- NOTE: messages sent directly to me, instead of the lists, will be deleted unless they are requests for paid consulting services. Robert Story; NET-SNMP Junkie Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders