-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Shield
Sent: Monday, April 23, 2007 9:31 AM
To: Wilde, Donald
Cc: [email protected]
Subject: Re: Getsa and walks by name
On 23/04/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > ./configure command line:
> >
> > # ./configure --enable-mini-agent --with-mibdirs="/etc/snmp/mibs"
> > --with-mib-modules="DELL-CMC-MIB" ....
> What you probably want is the configure options
>
> --with-mibs="+DELL-CMC-MIB"
>
> which *does* add this MIB to the default list.
> At _configure_ time??? Pardon my density, but why would I want to
> change that at configure time?
So that the software would "just work" as required, without the need for
any run-time MIB configuration.
(And it was your configure incantation that I was commenting on.
So why *did* you want to set that at configure time? :-))
> I thought that was the purpose of the snmp.conf prop declaration 'mibs
> +DELL-CMC-MIB'.
Yes - that should also amend the list of default MIB modules.
Basically, there are several places this information gets set:
- command-line options - -m and MIB::object
- snmp.conf file(s) - "mibs"
- code files - config_add_mib()
- configure - --with-mibs
- hardcoded default
In each case, the earlier settings in this list amend (or overwrite)
the later ones. So if the code was compiled using
--with-mibs=+DELL-CMC-MIB
then you don't need to specify this in an snmp.conf file, or on the
command line.
> Is there a lurker in there that makes one app work properly with the
> load-time switch and one app not? I thought every app looked at
> snmp.conf?
Yes - every app should look at snmp.conf.
If that doesn't seem to be happening, then try running with
-Dread_config
which will report which config files are being read in, and what they
contain.
Dave
DSW> Thanks for the very informative reply, Dave -
Yes, it appears that our custom conf directory is not being utilized by
snmpwalk. The MIB is, but the conf file is not. That's the hole. The
snmpd has -C -c /path/to/conf/files as an option set, but snmpwalk has
no such options; it _must_ seek conf files from a hardcoded directory.
Thinking about this, I suppose in most applications it won't matter; the
snmpwalk will come from a more-normal ("Manager") system as opposed to
an embedded widget.
Thanks for your assist! :D
</DSW
--
Don Wilde 512-723-8255
Dell, Incorporated Austin, Texas, USA
-------------------------------------------------------------------------
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-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users