Re: How to add EtherLike-MIB to net-snmp?

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 24 March 2010 13:45, Kavita Raghunathan
<[email protected]> wrote:
> But I thought I could start with any MIB file (from an RFC, or proprietary)
> and generate stubs.

Correct.

>       For now, let me ask you: how do I use EtherLike-MIB.txt
> to generate .c and .h, even if they are only stubs ?

Copy the MIB file into the appropriate directory,
and then run

    mib2c -c mib2c.{template}.conf  EtherLike-MIB::dot3StatsTable

But you would be better off taking the existing "mibgroup/etherlike-mib"
code, and extending it to support your O/S.   The SNMP-side has
already been done - all you'd need to do would be to write the
appropriate data_access module.



> I thought that mib2c does that

Correct

> and is invoked with ./configure when the MIB is exported.

No.
Configure is used to include the MIB module code into the
build framework.   It does not generate the MIB module code
framework.  You have to do that by running mib2c yourself.

Dave

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.