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

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

Reply via email to