My plan is to integrate NetSNMP into my company's main build load. I will
implement procedures to gather the correct MIB information within my company's
software, then the NetSNMP code (generated by mib2c) will be updated to call
these new procedures to get the data information which will then be used
populate the Table structures within NetSNMP.
I am assuming this is what you meant by "data taken from an underlying
subsystem" ..... correct?
I will generate code using the "mib2c.table_data.conf" file and have a look at
it. Does this configuration allow for caching? Does the -Scache option turn
on caching? I will look.
Dave Shield <[EMAIL PROTECTED]> wrote: On 30/05/07, Need Help wrote:
> If there is another widely used configuration file then I would like to play
> around with that one as well to get a better feeling of different kinds of
> approaches which can be used in NetSNMP.
I'd tend to prefer the 'mib2c.table_data.conf' framework.
If the MIB is monitoring data taken from an underlying subsystem,
then you'd probably want to invoke this as
mib2c -c mib2c.table_data.conf -Scache=1 myTable
to include the 'load()' routine. This is where you'd read in the
current contents of the table from this underlying system.
> If you do recommend another configuration file, perhaps you could give a one
> paragraph description indicating which procedures need to be updated to
> perform certain functions.
The main code to look at would be the load() routine.
That's the main interface between the MIB module and the
underlying system, so is the one place where we can't really
provide automatically generated code. The initial contents
are simply a basic example, to give you the general idea.
You'd also need to check that the per-row data structure is
suitable for your needs, and that the GET handling is correct
(especially for string-based variables).
It's difficult to be more specific, without knowing more details about your
tables and the information that they are monitoring.
Dave
---------------------------------
Need a vacation? Get great deals to amazing places on Yahoo! Travel.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders