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:58, Kavita Raghunathan
<[email protected]> wrote:
>>>       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.

So run "mib2c" once for each table.
If you compile the agent to include all of these modules,
then you will get the whole MIB.

But it's sensible to tackle problems one step at a time.
Implement the simplest table first, then add on the others
in turn.

Don't run before you can walk :-)


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

The hardest thing about implementing most MIBs is obtaining the
underlying data that you wish to report.   Turning this into SNMP
is relatively straightforward, which is why it can be automated ("mib2c")

The main bit that can't be automated is getting hold of the data
in the first place.



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

I'll pass on the ifTable implementation.
That uses MfD which is not my pigeon.

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.