Duplicate registerations reported for modules loaded by dlmod
Dheeraj Gautam <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAGQwRbvRiRzVcP=LzyecBSGgy0jRc4xQY-i7BvMoY46uJDceZA@mail.gmail.com> |
Hi All, I have written a module (generated using mib2c.mfd.conf) and integrated with net-snmp using "dlmod" directive of config. This works properly with queries. I have not observed any issues. When I send SIGHUP to snmpd, it tried to unload dlmod module, it is successfull. and dlmod directive tried reload the modules. Now snmpd reports error saying duplicate registerations. for certain tables. Following are error logs. Reconfiguring daemon NET-SNMP version 5.5 restarted dlmod: Calling shutdown_jmfc_snmp() dlmod: Module jmfc_snmp unloaded dlmod: dlmod_create_module dlmod: dlmod_load_module jmfc_snmp: /opt/tms/lib/snmp/modules/libjmfc-snmp.so jmfcNamespaceTable:init_jmfcNamespaceTable: Registering jmfcNamespaceTable as a mibs-for-dummies table. duplicate registration (jmfcNamespaceTable, jmfcNamespaceTable)duplicate registration (jmfcNamespaceHttpClientTable, jmfcNamespaceHttpClientTable)duplicate registration (jmfcNamespaceHttpServerTable, jmfcNamespaceHttpServerTable)duplicate registration (jmfcNamespaceRtspClientTable, jmfcNamespaceRtspClientTable)duplicate registration (jmfcNamespaceRtspServerTable, jmfcNamespaceRtspServerTable)duplicate registration (jmfcInterfaceTable, jmfcInterfaceTable)Reconfiguring daemon NET-SNMP version 5.5 restarted dlmod: Calling shutdown_jmfc_snmp() dlmod: Module jmfc_snmp unloaded My understanding so far is, shutdown code should call netsnmp_unregister_table() or init code should check for re-registeration of table. But since these files are auto generated, I guess this part should already have been handled. I am not sure show this should be correctly handled. Dheeraj Gautam ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ 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