On 23/11/06, redhouse101 <[EMAIL PROTECTED]> wrote: > When needed to register extra MIB, we can use dlmod and agentx.
dlmod *or* AgentX - these are basically two alternative ways of achieving much the same thing. You wouldn't typically use both. > It seems using dlmod is faster than agentx during walk. Very likely. 'dlmod' ends up with the new MIB module as part of the main SNMP master agent, so you don't have the AgentX communication overheads - the master agent can call the new MIB module code directly. > However, a lot of people > seems using agentx for subagent. Which way is better? It depends. An AgentX subagent has the advantage that it would work with *any* AgwntX master agent - it's not tied to the Net-SNMP agent. dlmod is very much a Net-SNMP specific mechanism. Also, if you're trying to report internal information from some external application, then you pretty much have to code some form of API to make this information available. That's a situation where AgentX makes sense - a 'dlmod'-based module would be loaded into the master agent, so wouldn't have access to this internal information. But 'dlmod' is certainly more efficient. > One disadvantage of using dlmod is that snmpd needs to link all extra > libraries used in dlmod shared module. That's another consideration. There is no One Right Answer. You have to look at your own situation, and decide what is the most appropriate choice for you and your customers. Remember that the module API is the same regardless, so you would be able to change your mind later (or provide several alternatives), without having to start again from scratch. Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
