Hi,
Steps which I followed to generate MIB files (using mib2c) are
1. exporting MIBS=ALL and MIBDIRS=/usr/local/share/snmp/mibs
2. mib2c EtherLike-MIB::dot3StatsTable (like this all the five tables are
created)
2.1 Options which I choose while mib2c are
style of code - net snmp, Create table where list of
rows is external to agent, MFD
transient data accessing, Donot generate Agentx code
and all the other default options.
3. File created for dot3StatsTable using mib2c are ,
we dont have anything like EtherLike-MIB.c or EtherLike-MIB.h
and the files which we have are maintained like this
./agent/mibgroup/EtherLike-MIB/dot3StatsTable/
dot3StatsTable.c, dot3StatsTable.h,
dot3StatsTable_data_access.c,
dot3StatsTable_data_access.h,
dot3StatsTable_data_get.c, dot3StatsTable_data_get.h,
dot3StatsTable_data_set.c, dot3StatsTable_data_set.h,
dot3StatsTable_enums.h
dot3StatsTable_interface.c, dot3StatsTable_interface.h,
4. ./configure --with-mib-modules="EtherLike-MIB"
Error message which I got is Warning: mib module error.
error: module file Eherlike-MIB.c or .h file could not be found in
,/agent/mibgroup/
My doubt is how to create EtherLike-MIB.c and .h ? and where to keep that
files.
Will it solve all my issues? Should I run make and make install after
configuring?
thanks in advance
kamal
On Sat, Apr 11, 2009 at 6:01 PM, Dave Shield <[email protected]>wrote:
> 2009/4/10 kamal sivadas <[email protected]>:
> > 1. Successfully generated code for Ether-Like MIB using mib2c
> > ( option which I choose is MFD-Mib for Dummies)
> > 2.Now I kept all tables in that module in
> ./agent/mibgroup/Ether-Like-MIB/
> > 3. Run ./configure --with-mib-modules="Ether-Like-MIB"
> > (some missing file error it shown and stops configuring).
>
> What is the *exact* error message?
> Do you have a file 'Ether-Like-MIB.h' ?
>
> What was the exact mib2c command you ran?
> What files were created?
>
>
> > Can anybody tells steps to be followed to add a new mib module?
>
> The above steps look basically correct.
> I suspect that you're just not giving the right name to the
> --with-mib-modules parameter. But without knowing exactly
> what files you've created, we can't really suggest what value
> you should be using here.
>
> Dave
>
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders