experimental MIB fetch&cache scheme

Hi!
I've added a new config file directive and a simple script that allows UNIX users to fetch and cache MIB modules, if they are not found in your local search directories. Feel free to give it a try:
- Update the code from the anonymous CVS repository.
- Put a `cache' line into your global or private libsmi configuration file, e.g.
cache /usr/local/share/mibs/cache /usr/local/bin/smicache \ -d /usr/local/share/mibs/cache \ -p http://www.ibr.cs.tu-bs.de/projects/libsmi/smicache/
(on one line, no -continued lines!)
Only the last configured cache is used, i.e., if you have one in the global smi.conf and one in your private ~/.smirc, only the private one will be used.
- If you use a global cache directory (like the one above), and if you are in a multi-user environment you may want to chmod 1777 /usr/local/share/mibs/cache.
- Install the smicache script (should be done by make install). Note that it is based on wget, which should be found by the configure run.
- Try to use any CISCO-* MIBs, e.g. ``smilint CISCO-PING-MIB''.
Note that this caching scheme does not care a lot about failed retrievals, file permissions, denial-of-service style hacks amoung users using a share cache, etc...
For those who'd like to know: The `cache server' at http://www.ibr.cs.tu-bs.de/projects/libsmi/smicache/ is nothing more than an Apache .htaccess file:
RewriteEngine on RewriteRule (CISCO-.*) ftp://ftp.cisco.com/pub/mibs/v2/$1.my [L]
More entries might follow. Any suggestions?
-frank -- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to libsmi-request@ibr.cs.tu-bs.de. !! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.
participants (1)
-
Frank Strauss