On tis, 2006-10-17 at 15:19 +0200, Roland Stigge wrote:
> Hi,
> How about separating index file generation code from index using code?
> This way, we could provide a snmp-update-index program to be called on
> install, package postinst, admin or user mibs updates, etc., and other
> library code would just try to use the indexes. If they don't exist, bad
> luck, but basically not worse than currently. The lib functionality
> wouldn't be affected.

This idea isn't a bad one. In fact you can implement it today by using
snmptranslate since all the users of the lib do remake the .index file
if that is needed.
So a simple call of

snmptranslate -m ALL -Ln -Ib system > /dev/null

in an aptly named script should take care of the updating.

> And we would get rid of the FHS and permission problems.

Yes, by doing it like this and not applying the patch you would also
gain indexing of user mib files.

> We could even ship a default index file inside the Debian package, along 
> with the other files. :)

The idea of a default .index is broken as you can't know what other mibs
the user might have installed, please do regenerate it as needed.

/MF (I do think Debian should stop violating RFC2741)


-------------------------------------------------------------------------
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