On Tue, Aug 21, 2018 at 11:52:31AM +0100, Tomasz Kłoczko wrote: > Hi, > > Looks like snmpd agent supports extending agent functionalities by > loading on run-time DSO module with additional MIBs support. > Have question: is it possible to build net-snmp code to support to add > exact supported by net-snmp MIBs not as compiled in statically code > but as loadable DSOs? > If it is possible to do this can someone give me hint about how to do this?
I have been thinking about it but not gotten anywhere with it. Some mibs are utterly unrealistic to put outside of the agent, this is mostly the ones that deal with internal state like 'snmp' and 'nsModuleTable'. Others should be possible to put outside the agent but there are dependencies and other things that make it harder, this does include some rather surprising subsystems like SMUX and AgentX even if it will require some further modularization work in the core agent and maybe some squinting when reading the rfc's as they sometimes are working against each other. I think this work would be worthwhile, not least due to it getting rid of all the umpteen dependencies of libnetsnmpmibs.so and there is also a security advantage if the network facing core agent can be reduced as much as possible. In any case the first obstacle for this is that the net-snmp build system valiantly fights this mode of operation pretty hard so that need to be redone. I have not gotten further down thi path but if you gain any new insights then that is always nice to hear about. /MF > kloczek > -- > Tomasz Kłoczko | LinkedIn: http://lnkd.in/FXPWxH > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Net-snmp-coders mailing list > Net-snmp-coders@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders