On 02/04/2008, Vincent Royo <[EMAIL PROTECTED]> wrote: > I have the same data on each node, like number of disks, capacity, the > status of a dynamic set of services, etc. > The same mib is installed on all nodes. I think the correct way is to > use tables.
Are these MIBs that you have defined, or ones that you have been given to work with? There are two basic approaches to splitting a MIB over several subagents. a) Use "contexts" to register parallel versions of the same MIB table(s) b) Have each subagent register one (or more) individual rows in the table > I create the table in the mib and create the generic code with mib2c; If you are using the first approach (parallel tables), then using mib2c to generate a table framework (using any of the table helpers) is sensible. If you are registering individual rows, then mib2c won't help you. In fact, don't think in terms of registering a table at all. Instead have each subagent reister one (or more) generic handlers. The secret here is to register an OID *slice*, rather than a single OID. The agent will combine these registrations to form an implicit table. Unfortunately there aren't any examples of this in the Net-SNMP code. > what is the structure of the code generated by mib2c when I use > mib2c.mfd.conf? Pass. You'd probably do best asking that on the IRC channel The MfD framework is Robert's baby, and he's the best one to answer that question. > What is the difference between container and cache? The "container" is effectively the table. It's a structure that contains information about the individual rows (including the row data itself, the index of that row, etc) The "cache" is a structure used to decide whether the contents of the table are OK to use, or whether it is "too old" and should be reloaded. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ 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
