MIB dir indexes are currently stored in the MIB
directory itself. This potentially breaches the
Filesystem Hierarchy Standard:
"/usr is shareable, read-only data [...] and
must not be written to". [FHS 2.3, Ch4]
How about:
/var/net-snmp/mib-index.1 \(2, 3, 4 ...\)
each file containing the name of the MIB directory
concerned, followed by the list of MIB file/module
mappings. (And only updated by root)
Another possibility would be to *look* for a .index
file in each directory (and use it if present and
up-to-date), but not to create it automatically.
Instead, there could be an explicit command (or
option to an existing command), which could be used
to generate a suitable .index file for a specified
MIB directory.
Logged In: YES
user_id=848638
One important aspect that may make it a bit more complicated
are used-supplied mib directories. Currently, if I supply my
own ~/.snmp/mibs dir in MIBDIRS, net-snmp will automatically
manage ~/.snmp/mibs/.index for me. The first suggested
solution would imply to not have indexing for user-supplied
mib dirs anymore, since the user doesn't have access to
/var/net-snmp. The second approach would provide indexing,
but rely on the user to update it manually himself.
Logged In: YES
user_id=848638
Please also see:
http://sourceforge.net/mailarchive/message.php?msg_id=13249497
http://sourceforge.net/mailarchive/message.php?msg_id=37083094
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=389434
for additional details and discussion.
Logged In: YES
user_id=88893
Originator: YES
Implemented in the main development code.
(SVN revision 15693)