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 lines of $_mibdir=/usr/share/snmp/mibs [ $_mibdir -nt $_mibdir/.index ] && snmptranslate -M $_mibdir -mall 1.3.6.1.2.1.1.1.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 -- Thomas Anders (thomas.anders at blue-cable.de) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]