Here is the configure command I am currently using:
../configure \
--prefix=/export/home/rosent1/snmp/usr/local \
--srcdir=/export/home/rosent1/snmp/net-snmp-5.4 \
--enable-embedded-perl \
--enable-shared \
--with-mib-modules="OC-STB-HOST-MIB"
The "--with-mib-modules" option seems to tell NetSNMP to "look for" the
"agent/mibgroup/OC-STB-HOST-MIB.h" file only rather than create it.
You stated that the "--with-mib-modules" option should mention each "table".
Does this mean each table defined in the MIB should be listed in this option?
I thought I should only list the name of the MIB file only, not list all my
table names.
Robert Story <[EMAIL PROTECTED]> wrote: On Fri, 25 May 2007 07:34:05 -0700
(PDT) Need wrote:
NH> I created the
".../agent/mibgroup/OC-STB-HOST-MIB/ocStbHostAVInterfaceTable/" directory,
issued the "mib2c" command in this directory for the
"ocStbHostAVInterfaceTable" OID node and the code was generated for me and
placed into this directory. I discovered the reason why my original testing
via "snmpwalk" did not work was because the following files did not exist:
NH>
NH> 1) .../agent/mibgroup/OC-STB-HOST-MIB.h
NH> 2) .../agent/mibgroup/OC-STB-HOST-MIB/ocStbHostAVInterfaceTable.h
NH>
NH> These files seem to link the new directory structures together and seem to
be required for testing to proceeed. After I created these files manually,
then the "snmpwalk" command worked fine.
You generated each table with mib2c, and mib2c (I think) should tell you that
you need to configure --with-mib-modules=mysbudir. So, you wouldn't need those
header files if you specified each table in --with-mib-modules.
When someone gets around to fixing the mfd template to generate code for each
table in a mib, they should also generate these files...
---------------------------------
You snooze, you lose. Get messages ASAP with AutoCheck
in the all-new Yahoo! Mail Beta.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders