Bug#389434: [Pkg-net-snmp-devel] Bug#389434: MIBs in net-snmp
thomas.anders at blue-cable.de
Mon Oct 16 13:46:51 UTC 2006
Jochen Friedrich wrote:
>> Maybe a default, fixed set of mibs should be shipped and an additional
>> directory for additional mibs could be prepared (/var/lib/snmp/mibs)?
> IMHO the best solution would be to create the .index file during install
> time using an utility. This utility could be reexecuted if a different
> package adds some MIBs to this directory.
FYI, my custom packages at work (which add MIBs) do something along the
[ $_mibdir -nt $_mibdir/.index ] && snmptranslate -M $_mibdir -mall
126.96.36.199.188.8.131.52.0 >/dev/null 2>&1
at postinstall time.
> The lib should rely on a
> valid .index, but never touch the .index even if the file is invalid.
This may be desirable for /usr/share/snmp/mibs on a fully
package-managed system, but custom builds and users with ~/.snmp/mibs
may not be prepared to do the extra work before using the MIBs,
especially since net-snmp doesn't even provide a dedicated utility to
maintain the .index file.
Thomas Anders (thomas.anders at blue-cable.de)
More information about the Pkg-net-snmp-devel