I am currently using the mibs-for-dummies configuration to generate my NetSnmp
code since I was told this configuration hides most of the NetSnmp internal
processing from the user. As a result, I have not updated the code to call the
"init_mib()" routine so I am not sure what that is.
I would be more interested in knowing why the "--with-mibdirs" configure option
does nto work and why adding the "mibdirs" line to the snmp.conf does not work
either.
Erik Earle <[EMAIL PROTECTED]> wrote: don't use init_mib()
call add_mibdir() and then init_mib_internals()
instead.
This is what init_mib() actually does using the
environment vars as args to add_mibdir().
look at the man page for mib_api for more info.
____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
Need Help <[EMAIL PROTECTED]> wrote: I understand the default directory to look
for MIB files is the following:
/usr/local/share/snmp/mibs
However, I would like to change this to another location. If I set the
MIBDIRS environment variable as follows, then I can get it to find the MIB file
in a new provided location:
export MIBDIRS= +"/export/home/myname/snmp/usr/local/share/snmp/mibs"
However, I do not want to use the environment variable to make this setting, so
I tried the following two setups but nothing worked:
a) I tried including the following option in the "configure" command:
--with-mibdirs="/export/home/myname/snmp/usr/local/share/snmp/mibs"
b) I tried setting the following in the "snmp.conf" file:
mibdirs /export/home/myname/snmp/usr/local/share/snmp/mibs
Question:
Why does (a) and (b) not work for me?
**NOTE: I am not using "snmpd" to start the agent, but rather I am starting a
specialized agent called "ocStbHostAVInterfaceTable". Is this a problem ... or
should two options above still work regardless? Fussy? Opinionated?
Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
http://us.rd.yahoo.com/evt=48516/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
hot CTA = Join Yahoo!'s user panel
-------------------------------------------------------------------------
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
---------------------------------
Get the free Yahoo! toolbar and rest assured with the added security of spyware
protection.
-------------------------------------------------------------------------
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