Hi,

Dave Shield wrote:
>> Yes, moving the indexes to a separate location like /var/lib/snmp is a
>> reasonable compromise. A good, documented way for using multiple mibs
>> locations would be nice.
> 
> You mean something like:
> 
>    $  man snmp.conf
>        [snip]
>     mibdirs (mib-dirs|+mib-dirs)
>              Look  for textual MIBs to parse in the list of ':'
> separated directories.  If the
>              directive value starts with a '+' it prepends this list
> to the front of the default
>              directory list compiled into the application.  Note that
> this value can be overridden
>             by the MIBDIRS environment variable.

OK, sorry for not RTFM...

> If the person running the program doesn't have write access to the
> index file, then the code to regenerate this file will simply fail
> silently.   The library will still build up the list of MIB file ->
> MIB module mappings, but will just hold this in memory, and won't be
> able to save it for future re-use.   So the index file will remain out
> of date, and further runs of this (or other) applications will
> continue to ignore it.
>  When an authorized user (i.e. with write access) finally runs the
> same command, then the index file *will* be updated and then be
> available for all users (both privileged and not).

In the restricted case (admin adding MIBs, daemon/program etc. running
as user with restricted permissions), it is equivalent to having no
.index files at all. ;->

bye,
  Roland

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to