>>>>> On Tue, 9 Jun 2009 15:57:58 -0700, dan anderson >>>>> <dan.j.ander...@gmail.com> said:
da> A few places in the docs it is mentioned that MIBS=ALL is needed to da> denote that all mib files (normally in /usr/local/share/snmp/mibs/) da> should be loaded. Alternately, individual mibs can be specified da> instead of the ALL keyword. In my testing, library calls to da> snmp_parse_oid parse the mibs in that directory correctly without MIBS da> being set at all in the environment. Are the docs outdated? Or is that da> env variable only checked by compiled apps, and not by the library? MIBs are loaded: 1) based on the MIBS variable if present 2) based on the -m command line option that most tools support. This may contain a "+" at the beginning to add to the default list. 3) based on the default MIBS setting determined at compile time. Running "net-snmp-config --default-mibs" will tell you what this default setting is. 4) dynamically if it can be determined. EG, if you type in a OID somewhere and it's prefixed with the MIB name followed by "::" then it'll try and load that MIB right then. EG: # snmpwalk localhost FOO-MIB::fooTable Will try and load the FOO-MIB -- Wes Hardaker Please mail all replies to net-snmp-coders@lists.sourceforge.net ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders