On Thu, 2005-04-21 at 16:05, Fabio Margarido wrote:
> I set it with MIBDIRS=dir, but what is the difference?

There's a hardwired default list of MIB directories
(let's say it's "/usr/local/share/snmp/mibs:$HOME/.snmp/mibs")

If you set
        MIBDIRS=/tmp/mibs

then you're saying
   "forget about the default list, and *only* look here"

MIB files in /tmp/mibs will be available.
Those in /usr/local/share/snmp/mibs or ~/.snmp/mibs won't.


If you set
        MIBDIRS=+/tmp/mibs

then you're saying
    "look here *and* in the default locations"

MIB files in /tmp/mibs, /usr/local/share/snmp/mibs
and ~/.snmp/mibs will all be available.


> It was empty anyway

But the default list isn't found in MIBDIRS.
It's hardcoded into the SNMP library.

MIBDIRS can be used to add to (or replace) this hardcoded list.

Try it.

Dave



-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to