On Fri, 2006-02-24 at 07:34 -0500, Dominique bastien wrote:
> I want to implement the dot3 MIB (RFC3635) and MAU-MIB
> (RFC3636) inside netSNMP, but I current face the
> problem of using mib2c. I found some tutorial page but
> they always talking about one node at the time.

That's not correct.

The code generated by mib2c can probably only handle one
*table* at a time (depending on which mib2c config you
choose), but it's normal to have several different MIB
objects implemented in the same file.

It's also usually possible to combine two or more tables
within a single text file by manually merging the output.
We tend to stick with one table per file, as it's simpler
to maintain that way.  But certain closely linked tables are
sometimes combined into one file (e.g. hrSWRun/hrSWRunPerf) 


>  I try this:
> 
> env MIBS="+EtherLike-MIB"
>       mib2c -c mib2c.scalar.conf dot3StatsIndex


Two problems:
   a)  dot3StatsIndex is part of a table (dot3StatsTable),
       not a scalar object, so using mib2c.scalar.conf
       is not appropriate.

   b)  When generating code for implementing a table,
       it's necessary to start at the root of that table
       (at the very least)


env MIBS="+EtherLike-MIB"
      mib2c -c mib2c.XXX.conf dot3StatsTable

where XXX indicates the style of table that you want to use.
See the FAQ for guidance.


Dave


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
  • dot3 MIB Dominique bastien
    • Re: dot3 MIB Dave Shield

Reply via email to