Blame tools/smilint.1.in

Packit 022b05
.\"
Packit 022b05
.\" $Id: smilint.1.in 1676 2004-08-10 10:58:12Z strauss $
Packit 022b05
.\"
Packit 022b05
.TH smilint 1  "August 10, 2004" "IBR" "SMI Tools"
Packit 022b05
.SH NAME
Packit 022b05
smilint \- syntax and semantic checks of SMIv1/v2 and SPPI modules
Packit 022b05
.SH SYNOPSIS
Packit 022b05
.B smilint
Packit 022b05
[
Packit 022b05
.B "-Vhersm"
Packit 022b05
] [
Packit 022b05
.BI "-c " file
Packit 022b05
] [
Packit 022b05
.BI "-p " module
Packit 022b05
] [
Packit 022b05
.BI "-l " level
Packit 022b05
] [
Packit 022b05
.BI "-i " error-pattern
Packit 022b05
]
Packit 022b05
.I "module(s)"
Packit 022b05
.SH DESCRIPTION
Packit 022b05
The \fBsmilint\fP program is used to check MIB or PIB modules for syntax
Packit 022b05
errors and semantics at some degree.  SMIv1/v2 style
Packit 022b05
MIB modules as well as SPPI PIB modules are supported.
Packit 022b05
.PP
Packit 022b05
The rules that \fBsmilint\fP is based on are taken from RFC 1155, RFC
Packit 022b05
1212 and RFC 1215 for SMIv1, RFCs 2578-2580 for SMIv2, RFC 3159 for SPPI.
Packit 022b05
.\" and the specification of SMIng that has been a research project
Packit 022b05
.\" within the Network Management Research Group of the IRTF.
Packit 022b05
.SH OPTIONS
Packit 022b05
.TP
Packit 022b05
\fB-V, --version\fP
Packit 022b05
Show the smilint version and exit.
Packit 022b05
.TP
Packit 022b05
\fB-h, --help\fP
Packit 022b05
Show a help text and exit.
Packit 022b05
.TP
Packit 022b05
\fB-e, --error-list\fP
Packit 022b05
Show a list of all known error messages and exit. Error messages can
Packit 022b05
have associated tags, shown in braces at the end of each line. The
Packit 022b05
tags can be used with the -i option to ignore certain error messages.
Packit 022b05
.TP
Packit 022b05
\fB-r, --recursive\fP
Packit 022b05
Report errors and warnings also for recursively imported modules. 
Packit 022b05
.TP
Packit 022b05
\fB-s, --severity\fP
Packit 022b05
Show the error severity in brackets before error messages.
Packit 022b05
.TP
Packit 022b05
\fB-m, --error-names\fP
Packit 022b05
Show the error names in braces before error messages.
Packit 022b05
.TP
Packit 022b05
\fB-c \fIfile\fB, --config=\fIfile\fP
Packit 022b05
Read \fIfile\fP instead of any other (global and user)
Packit 022b05
configuration file.
Packit 022b05
.TP
Packit 022b05
\fB-p \fImodule\fB, --preload=\fImodule\fP
Packit 022b05
Preload the module \fImodule\fP before reading the main
Packit 022b05
module(s). This may be helpful if an incomplete main module misses to
Packit 022b05
import some definitions.
Packit 022b05
.TP
Packit 022b05
\fB-l \fIlevel\fB, --level=\fIlevel\fP
Packit 022b05
Report errors and warnings up to the given severity \fIlevel\fP.
Packit 022b05
See below for a description of the error levels. The default error
Packit 022b05
level is 3.
Packit 022b05
.TP
Packit 022b05
\fB-i \fIprefix\fB, --ignore=\fIprefix\fP
Packit 022b05
Ignore all errors that have a tag which matches \fIprefix\fP.
Packit 022b05
A list of error tags can be retrieved by calling smilint with the
Packit 022b05
-e option.
Packit 022b05
.TP
Packit 022b05
.I module(s)
Packit 022b05
These are the modules to be checked. If a module argument represents a
Packit 022b05
path name (identified by containing at least one dot or slash character),
Packit 022b05
this is assumed to be the exact file to read. Otherwise, if a module is
Packit 022b05
identified by its plain module name, it is searched according to libsmi
Packit 022b05
internal rules. See \fBsmi_config(3)\fP for more details.
Packit 022b05
.SH "ERROR AND WARNING LEVELS"
Packit 022b05
All generated error and warning messages have an associated severity level.
Packit 022b05
The actual severity levels are:
Packit 022b05
.IP 0 3
Packit 022b05
Internal error, no recovery possible. Examples are memory allocation
Packit 022b05
failures. Errors of this level usually cause the application to abort.
Packit 022b05
.IP 1 3
Packit 022b05
Major SMI/SPPI error, recovery somehow possible but may lead to severe
Packit 022b05
problems. Examples are lexically unexpected characters or unknown
Packit 022b05
keywords. Errors of this kind usually lead to follow-on errors.
Packit 022b05
.IP 2 3
Packit 022b05
SMI/SPPI error which is probably tolerated by some
Packit 022b05
implementations. Examples are MIB/PIB modules which mix constructs
Packit 022b05
from different SMI/SPPI versions.
Packit 022b05
.IP 3 3 
Packit 022b05
SMI/SPPI error which is likely tolerated by many
Packit 022b05
implementations. Examples are misplaced SMIv2 MODULE-IDENTITY
Packit 022b05
invocations or SMIv2 textual conventions derived from other textual
Packit 022b05
conventions.
Packit 022b05
.IP 4 3
Packit 022b05
Something which is not strictly an error but which is recommended to
Packit 022b05
be changed. Warnings of this level are usually considered during MIB
Packit 022b05
reviews.
Packit 022b05
.IP 5 3
Packit 022b05
Something that is basically correct but might be problematic in
Packit 022b05
certain environments or usage scenarios. Examples are warnings that
Packit 022b05
identifiers only differ in case or that type definitions are not used
Packit 022b05
within the defining module.
Packit 022b05
.IP 6 3
Packit 022b05
Messages of this level are auxiliary notices. Examples are messages
Packit 022b05
that point to a previous definition in case of a redefinition.
Packit 022b05
.PP
Packit 022b05
Higher levels are currently not used and lead to the same effects as
Packit 022b05
level 6 does. Note that errors up to level 3 are errors violating the
Packit 022b05
specifications and must be fixed by the responsible author. The
Packit 022b05
warnings generated with level 4 should be considered during normal
Packit 022b05
MIB/PIB reviews.
Packit 022b05
.SH "EXAMPLE"
Packit 022b05
This example checks the file RMON2-MIB in the current directory (note
Packit 022b05
that the `./' prefix ensures this). The error level is raised to 6
Packit 022b05
and warnings that claim about identifier names that exceed a length
Packit 022b05
of 32 characters are suppressed.
Packit 022b05
.nf
Packit 022b05
Packit 022b05
  $ smilint -l 6 -i namelength-32 ./RMON2-MIB
Packit 022b05
  ./RMON2-MIB:3935: unexpected type restriction
Packit 022b05
  ./RMON2-MIB:3936: unexpected type restriction
Packit 022b05
  ./RMON2-MIB:3937: unexpected type restriction
Packit 022b05
  ./RMON2-MIB:3938: unexpected type restriction
Packit 022b05
  ./RMON2-MIB:3939: unexpected type restriction
Packit 022b05
  ./RMON2-MIB:3940: unexpected type restriction
Packit 022b05
  ./RMON2-MIB:4164: scalar object must not have a `read-create' access value
Packit 022b05
Packit 022b05
.fi
Packit 022b05
.SH "SEE ALSO"
Packit 022b05
The 
Packit 022b05
.BR libsmi (3)
Packit 022b05
project is documented at
Packit 022b05
.BR "http://www.ibr.cs.tu-bs.de/projects/libsmi/" "."
Packit 022b05
Other commonly used MIB checkers are
Packit 022b05
.BR mosy "(1) and "
Packit 022b05
.BR smicng "(1)."
Packit 022b05
.SH "AUTHORS"
Packit 022b05
(C) 1999-2004 F. Strauss, TU Braunschweig, Germany <strauss@ibr.cs.tu-bs.de>
Packit 022b05
.br
Packit 022b05
(C) 1999-2002 J. Schoenwaelder, TU Braunschweig, Germany <schoenw@ibr.cs.tu-bs.de>
Packit 022b05
.br
Packit 022b05
(C) 2002-2003 J. Schoenwaelder, University of Osnabrueck, Germany
Packit 022b05
.br
Packit 022b05
(C) 2003-2004 J. Schoenwaelder, International University Bremen, Germany
Packit 022b05
.br
Packit 022b05
(C) 2001-2002 T. Klie, TU Braunschweig, Germany <tklie@ibr.cs.tu-bs.de>
Packit 022b05
.br
Packit 022b05
(C) 2002 M. Bunkus, TU Braunschweig, Germany <bunkus@ibr.cs.tu-bs.de>
Packit 022b05
.br
Packit 022b05
and contributions by many other people.
Packit 022b05
.br