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

Kavita Raghunathan <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <C7CF84AD.25CA%[email protected]>
Please see my comments.


On 3/24/10 8:51 AM, "Dave Shield" <[email protected]> wrote:

> 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.

<Big sigh of relief>!! We have about 5 proprietary MIBs, so this feature is
absolutely essential.

> 
>>       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

Why must I specify a table? I want the whole MIB.

> 
> 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.
> 

Absolutely. I'm going to do that next. But there is a lot of proprietary
MIBs we have and I'm trying to understand how hard it will be to code those
to use net-snmp agent. Any input? So I may decide whether I can use net-snmp
or not ? Your response could potentially save me a lot of time.

I'm also having a real hard time trying to figure out how to get the if-mib
(ifTable/ifXTable) to plug into our system. Basically I don't know what
modules I need to modify to plug into our user code world from the net-snmp
world so the ifInOctets etc can be correctly populated by polling the
hardware device.

Thank you !

> 
> 
>> 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.