Menu

#116 Move MIB dir indexing

closed
nobody
None
5
2012-11-08
2006-01-25
Dave Shield
No

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.

Discussion

  • Thomas Anders

    Thomas Anders - 2006-01-25

    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.

     
  • Dave Shield

    Dave Shield - 2007-05-27

    Logged In: YES
    user_id=88893
    Originator: YES

    Implemented in the main development code.
    (SVN revision 15693)

     

Log in to post a comment.