Imported Upstream version 0.4.8
[platform/upstream/libsmi.git] / tools / smicache.1.in
1 .\"
2 .\" $Id: smicache.1.in 1677 2004-08-10 11:10:27Z strauss $
3 .\"
4 .TH smicache 1  "August 10, 2004" "IBR" "SMI Tools"
5 .SH NAME
6 smicache \- caching method for use with libsmi
7 .SH SYNOPSIS
8 .B smicache
9 [
10 .B "-Vh"
11 ] [
12 .BI "-d " dir
13 ] [
14 .BI "-p " prefix
15 ]
16 [
17 .I mib
18 ]
19 .SH DESCRIPTION
20 The \fBsmicache\fP program can be used by libsmi to fetch MIB modules that
21 cannot be found in regular local MIB directories. 
22 .SH OPTIONS
23 .TP
24 .B "-V"
25 Show the smicache version and exit.
26 .TP
27 .B "-h"
28 Show a help text and exit.
29 .TP
30 .BI "-d " dir
31 Write fetched module file(s) to directory \fIdir\fP.
32 .TP
33 .BI "-p " prefix
34 Use the URL prefix \fIprefix\fP for fetching modules. 
35 .TP
36 .I mib
37 The MIB module to be fetched. 
38 .PP
39 Note that \fBsmicache\fP is just a very simple script that builds on
40 the wget program to retrieve files from URLs. It does not handle
41 the file attributes of retrieved modules in any special way, so that
42 you have to care about permissions in multi-user environments.
43 .SH "EXAMPLE"
44 \fBSmicache\fP can be used by putting the following line into the
45 global configuration file:
46 .nf
47
48   cache /usr/local/share/mibs/cache \\
49     /usr/local/bin/smicache \\
50     -d /usr/local/share/mibs/cache \\
51     -p http://www.ibr.cs.tu-bs.de/projects/libsmi/smicache/
52
53 .fi
54 You might want to chmod 1777 /usr/local/share/mibs/cache.
55 .SH "SEE ALSO"
56 The
57 .BR libsmi (3)
58 project is documented at
59 .BR "http://www.ibr.cs.tu-bs.de/projects/libsmi/" "."
60 .PP
61 .BR smilint "(1)"
62 .SH "AUTHOR"
63 (C) 2001-2004 Frank Strauss, TU Braunschweig, Germany <strauss@ibr.cs.tu-bs.de>
64 .br