1smistrip(1)                        SMI Tools                       smistrip(1)
2
3
4

NAME

6       smistrip  - extract MIB or PIB modules from text files, like RFCs or I-
7       Ds
8

SYNOPSIS

10       smistrip [ -Vhn ] [ -d dir ] [ -m module ] [ file(s) ]
11

DESCRIPTION

13       The smistrip program is used to extract MIB and PIB module  files  from
14       ASCII documents like RFCs or Internet Drafts. Modules are identified by
15       a starting ASN.1 DEFINITIONS clause and the matching  END  clause.  The
16       output is written to files named by the modules' names.
17

OPTIONS

19       -V     Show the smistrip version and exit.
20
21       -h     Show a help text and exit.
22
23       -n     Print  only what would be extracted, but do not write any output
24              file.
25
26       -d dir Write module file(s) to directory dir  instead  of  the  current
27              working directory.
28
29       -m module
30              Extract  only  the module module instead of all modules found in
31              the input file(s).
32
33       file(s)
34              The input text file(s) from which modules will be extracted.  If
35              no file is given, input is read from stdin.
36
37       Note  that  smistrip  tries to be smart about locating module start and
38       end, detecting page breaks and blank lines near page  breaks.  It  also
39       tries  to  cut off blank prefixing columns from all lines of a modules.
40       However, there might by documents that cannot be  parsed  correctly  by
41       smistrip  and probably produce incorrect output.  You might consider to
42       use smilint on every extracted module file  to  check  its  syntactical
43       correctness.
44

EXAMPLE

46       This  example  extracts  only the module IPV6-MIB from the file rfc2465
47       and writes it to the directory /usr/local/tmp.
48         $ smistrip -d /usr/local/tmp -m IPV6-MIB rfc2465
49

SEE ALSO

51       The  libsmi(3)   project   is   documented   at   http://www.ibr.cs.tu-
52       bs.de/projects/libsmi/.
53
54       smilint(1)
55

AUTHOR

57       (C)  1999-2004 F. Strauss, TU Braunschweig, Germany <strauss@ibr.cs.tu-
58       bs.de>
59       (C) 2002 M. Bunkus, TU Braunschweig, Germany <bunkus@ibr.cs.tu-bs.de>
60       and contributions by many other people.
61
62
63
64IBR                             August 10, 2004                    smistrip(1)
Impressum