Re: Getsa and walks by name

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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

-------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.