If any users have overwrote if-mib implementation via dlmod means, please let me know how you accomplished it. Seems like I am missing a turn key. I did disable net-snmp ifTable at run time like below. /usr/sbin/snmpd -x unix:/var/agentx/master -I-ifTable
-------------------------------------------- On Wed, 12/11/13, academ...@yahoo.com <academ...@yahoo.com> wrote: Subject: rewrite ifTable implementation To: net-snmp-users@lists.sourceforge.net Date: Wednesday, December 11, 2013, 12:26 PM Dear netsnmp users, I need to disable ifTable implementation in net-snmp and rewrite it since the interfaces are not available on the machine that is running netsnmp. So I generated ifTable stub code from mfd and tested it as a subagent and it works fine. However, if I want to approach the dlmod way, the code doesnt work, since the functions generated by mfd have the same exact method names as in net-snmp code base and at execution, the instances defined in net-snmp are getting called. I see in the mailing list that others had to do something similar and was wondering how you approached the issue. One simple fix is to rename the generated ifTable functions to something else and alleviate the problem but am afraid, that there is a better alternative than that. Also since I am disabling ifTable at runtime with -I-ifTable, the generated code also calls should_init("ifTable") and that returns skip, so I had to manually take out those calls out. And now coming to the implementation itself, since the functions are redifined, at init time, the call to initialize_table_ifTable is linking to the implementation by netsnmp and not the one in the library. init_ifTable () { // if (should_init("ifTable")) initialize_table_ifTable(); } Is there any trick that I need to do to make it simpler or the dumb way of renaming the redefined functions in the linking ifTable library? Please advice. Thanks ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users