On Wed, 2006-02-08 at 19:40 -0800, stan buyanov wrote:
> I am running net-snmp v5.3.0.1. I used mib2.table_data.conf 
> to create template .c and .h files for rmon2’s table. When I am
> running gmake I get error messages about undeclared
> netsnmp_tdata_create and netsnmp_register_tdata.

That's a bug in the table_data mib2c template.
The API for the tdata helper changed slightly before
the final release, and the mib2c template wasn't updated
to match.

Apply the attached patch to mib2c.table_data.conf, and
regenerate the tables.


> 2) Is mib2.table_data.conf a right configuration file
>    for rmon2’s tables or it’s better to use mib2c.conf

There's no single "right" configuration file.
Either the 'tdata' helper, or the MfD framework could
perfectly reasonably be used to implement this MIB.
The difference is more a matter of code style and
organisation than anything fundamental.

The MfD framework tries to break down the task of
implementing a table into a large number of bite-size
bits, spread over several files (most of which you don't
need to touch).  The aim is to let you concentrate on
individual mini sub-tasks in isolation, without being
overwhelmed by the overall MIB.

The tdata helper works at a slightly higher level
(that of a table row, rather than individual column
objects),  and uses a single handler routine (with
a 'switch' statement), rather than separate routines
for each MIB object (and each pass).


Fundamentally, it comes down to what you're most
comfortable with.  Personally, I find the MfD framework
fragmented and confusing, which is why I developed the
tdata helper.  But I know that Robert swears by the
MfD approach, and I can certainly see some advantages.

Bottom line - it's your choice.  

Dave


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
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

Reply via email to