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:
1) .../agent/mibgroup/OC-STB-HOST-MIB.h
2) .../agent/mibgroup/OC-STB-HOST-MIB/ocStbHostAVInterfaceTable.h
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.
Here are the file contents:
OC-STB-HOST-MIB.h
/*
* module to include the modules
*/
config_require(OC-STB-HOST-MIB/ocStbHostAVInterfaceTable);
config_add_mib(OC-STB-HOST-MIB)
ocStbHostAVInterfaceTable.h
/*
* module to include the modules
*/
config_require(OC-STB-HOST-MIB/ocStbHostAVInterfaceTable/ocStbHostAVInterfaceTable)
Question:
1) It seems odd I would have to create these two ".h" files myself manually to
begin testing since these files seem to link all the new directories together
to allow testing to proceeed. Is it a requirement the user create these files
manually or should these files actually be generated automatically for me
somehow, thus I am doing something wrong during the "mib2c" execution?
---------------------------------
Got a little couch potato?
Check out fun summer activities for kids.
-------------------------------------------------------------------------
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