caching method for use with libsmi
All manual pages · libsmi 0.6.0-rc1
smicache - caching method for use with libsmi
smicache [ -Vh ] [ -d dir ] [ -p prefix ] [ mib ]
The smicache program can be used by libsmi to fetch MIB modules that cannot be found in regular local MIB directories.
Show the smicache version and exit.
Show a help text and exit.
Write fetched module file(s) to directory dir (default: $XDG_CACHE_HOME/libsmi or ~/.cache/libsmi).
Use the URL prefix prefix for fetching modules: the module mib is fetched from prefix/mib. The default is the libsmi web site, https://www.ibr.cs.tu-bs.de/projects/libsmi/smicache.php, which serves the modules bundled with the current libsmi release.
The MIB module to be fetched: a plain module name (letters, digits, \(oq-\(cq, \(oq_\(cq and \(oq.\(cq, not starting with \(oq-\(cq or \(oq.\(cq). The module is stored in the cache directory only if it has been fetched completely; smicache exits with a non-zero status otherwise.
Note that smicache is just a very simple script that builds on the wget program to retrieve files from URLs. In multi-user environments, use a cache directory that only trusted users can write, since libsmi parses whatever is stored there.
Smicache can be used by putting the following line into the global configuration file:
cache /usr/local/share/mibs/cache \
/usr/local/bin/smicache \
-d /usr/local/share/mibs/cache \
-p https://www.ibr.cs.tu-bs.de/projects/libsmi/smicache.php
libsmi passes only plain module names to the cache program.
The libsmi(3) project is documented at http://www.ibr.cs.tu-bs.de/projects/libsmi/.
(C) 2001-2004 Frank Strauss, TU Braunschweig, Germany <strauss@ibr.cs.tu-bs.de>