Blame tools/smistrip.1

Packit Service 9ccfef
.\"
Packit Service 9ccfef
.\" $Id: smistrip.1.in 1676 2004-08-10 10:58:12Z strauss $
Packit Service 9ccfef
.\"
Packit Service 9ccfef
.TH smistrip 1  "August 10, 2004" "IBR" "SMI Tools"
Packit Service 9ccfef
.SH NAME
Packit Service 9ccfef
smistrip \- extract MIB or PIB modules from text files, like RFCs or I-Ds
Packit Service 9ccfef
.SH SYNOPSIS
Packit Service 9ccfef
.B smistrip
Packit Service 9ccfef
[
Packit Service 9ccfef
.B "-Vhn"
Packit Service 9ccfef
] [
Packit Service 9ccfef
.BI "-d " dir
Packit Service 9ccfef
] [
Packit Service 9ccfef
.BI "-m " module
Packit Service 9ccfef
]
Packit Service 9ccfef
[
Packit Service 9ccfef
.I file(s)
Packit Service 9ccfef
]
Packit Service 9ccfef
.SH DESCRIPTION
Packit Service 9ccfef
The \fBsmistrip\fP program is used to extract MIB and PIB module
Packit Service 9ccfef
files from ASCII documents like RFCs or Internet Drafts. Modules are
Packit Service 9ccfef
identified by a starting ASN.1 DEFINITIONS clause and the matching
Packit Service 9ccfef
END clause. The output is written to files named by the modules' names.
Packit Service 9ccfef
.SH OPTIONS
Packit Service 9ccfef
.TP
Packit Service 9ccfef
.B "-V"
Packit Service 9ccfef
Show the smistrip version and exit.
Packit Service 9ccfef
.TP
Packit Service 9ccfef
.B "-h"
Packit Service 9ccfef
Show a help text and exit.
Packit Service 9ccfef
.TP
Packit Service 9ccfef
.B "-n"
Packit Service 9ccfef
Print only what would be extracted, but do not write any output file.
Packit Service 9ccfef
.TP
Packit Service 9ccfef
.BI "-d " dir
Packit Service 9ccfef
Write module file(s) to directory \fIdir\fP instead of the current
Packit Service 9ccfef
working directory.
Packit Service 9ccfef
.TP
Packit Service 9ccfef
.BI "-m " module
Packit Service 9ccfef
Extract only the module \fImodule\fP instead of all modules found in
Packit Service 9ccfef
the input file(s).
Packit Service 9ccfef
.TP
Packit Service 9ccfef
.I file(s)
Packit Service 9ccfef
The input text file(s) from which modules will be extracted. If no file
Packit Service 9ccfef
is given, input is read from stdin.
Packit Service 9ccfef
.PP
Packit Service 9ccfef
Note that \fBsmistrip\fP tries to be smart about locating module start
Packit Service 9ccfef
and end, detecting page breaks and blank lines near page breaks. It
Packit Service 9ccfef
also tries to cut off blank prefixing columns from all lines of a
Packit Service 9ccfef
modules. However, there might by documents that cannot be parsed
Packit Service 9ccfef
correctly by \fBsmistrip\fP and probably produce incorrect output.
Packit Service 9ccfef
You might consider to use \fBsmilint\fP on every extracted module file
Packit Service 9ccfef
to check its syntactical correctness.
Packit Service 9ccfef
.SH "EXAMPLE"
Packit Service 9ccfef
This example extracts only the module IPV6-MIB from the file rfc2465 and
Packit Service 9ccfef
writes it to the directory /usr/local/tmp.
Packit Service 9ccfef
.nf
Packit Service 9ccfef
  $ smistrip -d /usr/local/tmp -m IPV6-MIB rfc2465
Packit Service 9ccfef
.fi
Packit Service 9ccfef
.SH "SEE ALSO"
Packit Service 9ccfef
The
Packit Service 9ccfef
.BR libsmi (3)
Packit Service 9ccfef
project is documented at
Packit Service 9ccfef
.BR "http://www.ibr.cs.tu-bs.de/projects/libsmi/" "."
Packit Service 9ccfef
.PP
Packit Service 9ccfef
.BR smilint "(1)"
Packit Service 9ccfef
.SH "AUTHOR"
Packit Service 9ccfef
(C) 1999-2004 F. Strauss, TU Braunschweig, Germany <strauss@ibr.cs.tu-bs.de>
Packit Service 9ccfef
.br
Packit Service 9ccfef
(C) 2002 M. Bunkus, TU Braunschweig, Germany <bunkus@ibr.cs.tu-bs.de>
Packit Service 9ccfef
.br
Packit Service 9ccfef
and contributions by many other people.
Packit Service 9ccfef
.br