On 17/07/06, Alon Marx <[EMAIL PROTECTED]> wrote: > I have a MIB file with the relevant parameters and I more or less > figured out how to use mib2c and complete the relevant code. Now I'm > trying to figure out what's the best way to use these files: > 1. compile as part of the master agent > 2. compile as subagent > 3. compile as pluggable shared objects > > The documentation gives all options, but I'm asking for recommendations > which one is the best in my case.
It's difficult to answer that question. In many ways, it doesn't really matter - things will look exactly the same from outside, whichever choice (or choices) you make. The main question is whether to run as one (or more) separate subagents, or as part of the master agent. (Note that 1 and 3 are more-or-less equivalent - they're just different ways of achieving the same basic architecture). How clean an interface is there for retrieving the necessary information? (and actively controlling the device, if appropriate). If there's a clean API, then any of the three mechanisms would work equally well. If the data is held within some separate server process, device driver, etc - with no clean way to get at it from outside - then using the subagent approach might be the simplest way. > One consideration I have: I would like to have all parameters integrated > into a common "object" (for example, build all parameters into a single > sub-agent). Which option supports this (if any)? Any of them. Remember that a single MIB module implementation can typically be used with all three approaches, without needing to change a line of code. The agent-MIB API is standardised - it's just how that code is compiled and linked into the agent framework that differs. So you could develop the code as part of a single standalone master agent (which is probably the simplest for debugging problems), then just recompile it to act as a subagent or a plugin module - you wouldn't have to change the code at all. Dave ------------------------------------------------------------------------- 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-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