I have been reading the NetSNMP tutorials which indicate how to change the 
code using the mibs-for-dummies (MFD) configuration file as it relates to
the ifTable MIB.  Now, I have generated MFD code (using mib2c) for the
"ocStbHostAVInterfaceTable" table which is defined in my MIB file, but I
used the ifTable tutorial as a guideline.

In the last section of the tutorial (link provided below), it indicates I
should perform a "make" command to generate an executable file, start the
agent and then be able to perform a snmpwalk command for testing of the
code I entered.


http://www.net-snmp.org/tutorial/tutorial-5/toolkit/mfd/if-mib/ifTable/testing.html


The "make -f ocStbHostAVInterfaceTable_Makefile" command I entered seemed to 
generate the appropriate ".o" files along with a file called 
"ocStbHostAVInterfaceTable" which I guess is the executable file (not sure??)

I now try to execute the following command to start the agent:

  ./ocStbHostAVInterfaceTable -f -L -DocStbHostAVInterfaceTable -M 
localhost:1161


.... but the following error is being produced:


./ocStbHostAVInterfaceTable: error while loading shared libraries: 
libnetsnmpmibs.so.15: cannot open shared object file: No such file or directory



I guess it is complaining that is can not find the correct library files it 
needs.
Now the "libnetsnmpmibs.so.15" file does exist in the following directories:

   /usr/local/lib/libnetsnmpmibs.so.15 
   /export/home/myname/snmp/usr/local/lib/libnetsnmpmibs.so.15


Does anyone know what I need to do to get NetSnmp to find the library file?  I 
would guess
I need to link in the library files at some time, but not sure what that means 
or how
to go about doing this.


Here is my configure line I am using:

./configure \
   --prefix=/export/home/myname/snmp/usr/local \
   --libdir=/export/home/myname/snmp/usr/local/lib \
   --srcdir=/export/home/myname/snmp/net-snmp-5.4 \
   --enable-embedded-perl \
   --enable-shared \
   --with-mib-modules="OC-STB-HOST-MIB"


       
---------------------------------
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. 
-------------------------------------------------------------------------
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