smilint(1)


NAME

   smilint - syntax and semantic checks of SMIv1/v2 and SPPI modules

SYNOPSIS

   smilint  [ -Vhersm ] [ -c file ] [ -p module ] [ -l level ] [ -i error-
   pattern ] module(s)

DESCRIPTION

   The smilint program is used to check MIB  or  PIB  modules  for  syntax
   errors  and  semantics  at  some degree.  SMIv1/v2 style MIB modules as
   well as SPPI PIB modules are supported.

   The rules that smilint is based on are taken from RFC  1155,  RFC  1212
   and RFC 1215 for SMIv1, RFCs 2578-2580 for SMIv2, RFC 3159 for SPPI.

OPTIONS

   -V, --version
          Show the smilint version and exit.

   -h, --help
          Show a help text and exit.

   -e, --error-list
          Show a list of all known error messages and exit. Error messages
          can have associated tags, shown in braces at  the  end  of  each
          line.  The tags can be used with the -i option to ignore certain
          error messages.

   -r, --recursive
          Report  errors  and  warnings  also  for  recursively   imported
          modules.

   -s, --severity
          Show the error severity in brackets before error messages.

   -m, --error-names
          Show the error names in braces before error messages.

   -c file, --config=file
          Read  file  instead of any other (global and user) configuration
          file.

   -p module, --preload=module
          Preload the module module before  reading  the  main  module(s).
          This  may  be  helpful  if  an  incomplete main module misses to
          import some definitions.

   -l level, --level=level
          Report errors and warnings up to the given severity level.   See
          below  for  a description of the error levels. The default error
          level is 3.

   -i prefix, --ignore=prefix
          Ignore all errors that have a tag which matches prefix.  A  list
          of  error  tags  can be retrieved by calling smilint with the -e
          option.

   module(s)
          These are the modules  to  be  checked.  If  a  module  argument
          represents  a  path  name (identified by containing at least one
          dot or slash character), this is assumed to be the exact file to
          read.  Otherwise,  if a module is identified by its plain module
          name, it is searched according to  libsmi  internal  rules.  See
          smi_config(3) for more details.

ERROR AND WARNING LEVELS

   All  generated  error  and warning messages have an associated severity
   level.  The actual severity levels are:

   0  Internal error, no recovery possible. Examples are memory allocation
      failures.  Errors  of  this  level  usually cause the application to
      abort.

   1  Major SMI/SPPI error, recovery somehow  possible  but  may  lead  to
      severe  problems.  Examples  are  lexically unexpected characters or
      unknown keywords. Errors of this  kind  usually  lead  to  follow-on
      errors.

   2  SMI/SPPI  error which is probably tolerated by some implementations.
      Examples are MIB/PIB modules which  mix  constructs  from  different
      SMI/SPPI versions.

   3  SMI/SPPI  error  which  is likely tolerated by many implementations.
      Examples are misplaced SMIv2 MODULE-IDENTITY  invocations  or  SMIv2
      textual conventions derived from other textual conventions.

   4  Something which is not strictly an error but which is recommended to
      be changed. Warnings of this level are usually considered during MIB
      reviews.

   5  Something  that  is  basically  correct  but might be problematic in
      certain environments or usage scenarios. Examples are warnings  that
      identifiers  only  differ  in  case or that type definitions are not
      used within the defining module.

   6  Messages of this level are auxiliary notices. Examples are  messages
      that point to a previous definition in case of a redefinition.

   Higher  levels  are  currently not used and lead to the same effects as
   level 6 does. Note that errors up to level 3 are errors  violating  the
   specifications  and  must  be  fixed  by  the  responsible  author. The
   warnings generated with level 4  should  be  considered  during  normal
   MIB/PIB reviews.

EXAMPLE

   This  example  checks the file RMON2-MIB in the current directory (note
   that the `./' prefix ensures this). The error level is raised to 6  and
   warnings  that  claim about identifier names that exceed a length of 32
   characters are suppressed.

     $ smilint -l 6 -i namelength-32 ./RMON2-MIB
     ./RMON2-MIB:3935: unexpected type restriction
     ./RMON2-MIB:3936: unexpected type restriction
     ./RMON2-MIB:3937: unexpected type restriction
     ./RMON2-MIB:3938: unexpected type restriction
     ./RMON2-MIB:3939: unexpected type restriction
     ./RMON2-MIB:3940: unexpected type restriction
     ./RMON2-MIB:4164: scalar object must not have a `read-create' access value

SEE ALSO

   The  libsmi(3)   project   is   documented   at   http://www.ibr.cs.tu-
   bs.de/projects/libsmi/.   Other  commonly used MIB checkers are mosy(1)
   and smicng(1).

AUTHORS

   (C) 1999-2004 F. Strauss, TU Braunschweig, Germany  <strauss@ibr.cs.tu-
   bs.de>
   (C)    1999-2002    J.    Schoenwaelder,   TU   Braunschweig,   Germany
   <schoenw@ibr.cs.tu-bs.de>
   (C) 2002-2003 J. Schoenwaelder, University of Osnabrueck, Germany
   (C)  2003-2004  J.  Schoenwaelder,  International  University   Bremen,
   Germany
   (C) 2001-2002 T. Klie, TU Braunschweig, Germany <tklie@ibr.cs.tu-bs.de>
   (C) 2002 M. Bunkus, TU Braunschweig, Germany <bunkus@ibr.cs.tu-bs.de>
   and contributions by many other people.


More Linux Commands

manpages/snmpstatus.1.html
snmpstatus(1) - retrieves a fixed set of management informat
snmpstatus is an SNMP application that retrieves several important statistics from a network entity. AGENT identifies a target SNMP agent, which is instrumented

manpages/uuid_clear.3.html
uuid_clear(3) - reset value of UUID variable to the NULL val
The uuid_clear function sets the value of the supplied uuid variable uu to the NULL value. AUTHOR Theodore Y. Tso AVAILABILITY libuuid is part of the util-linux

manpages/sane-kvs40xx.5.html
sane-kvs40xx(5) SANE backend for Panasonic KV-S40xxC USB SCS
The sane-kvs40xx library implements a SANE (Scanner Access Now Easy) backend which provides access to the Panasonic KV-S40xxC and KV-S70xxC scanners. KNOWN ISSU

manpages/slk_init.3ncurses.html
slk_init(3ncurses) - curses soft label routines (Man Page)
The slk* functions manipulate the set of soft function-key labels that exist on many terminals. For those terminals that do not have soft labels, curses takes o

manpages/sysctl.d.5.html
sysctl.d(5) - Configure kernel parameters at boot (ManPage)
At boot, systemd-sysctl.service(8) reads configuration files from the above directories to configure sysctl(8) kernel parameters. CONFIGURATION FORMAT The confi

manpages/tuned-main.conf.5.html
tuned-main.conf(5) Tuned global configuration file..........
This man page documents format of the Tuned global configuration file. The tuned-main.conf file uses the ini-file format. dynamic_tuning=BOOL This defines wheth

manpages/Tcl_CreateThread.3.html
Tcl_CreateThread(3) - Tcl thread support - Linux man page...
Tcl provides Tcl_CreateThread for creating threads. The caller can determine the size of the stack given to the new thread and modify the behaviour through the

manpages/getrpcent_r.3.html
getrpcent_r(3) - get RPC entry (reentrant) - Linux man page
The getrpcent_r(), getrpcbyname_r(), and getrpcbynumber_r() functions are the reentrant equivalents of, respectively, getrpcent(3), getrpcbyname(3), and getrpcb

manpages/perlre.1.html
perlre(1) - Perl regular expressions - Linux manual page....
This page describes the syntax of regular expressions in Perl. If you havent used regular expressions before, a quick-start introduction is available in perlreq

manpages/chmod.1.html
chmod(1) - change file mode bits (Commands - Linux man page)
This manual page documents the GNU version of chmod. chmod changes the file mode bits of each given file according to mode, which can be either a symbolic repre

manpages/sane-find-scanner.1.html
sane-find-scanner(1) - find SCSI and USB scanners and their
sane-find-scanner is a command-line tool to find SCSI and USB scanners and determine their Unix device files. Its primary aim is to make sure that scanners can

manpages/mysqldump.1.html
mysqldump(1) - a database backup program - Linux man page...
The mysqldump client is a backup program originally written by Igor Romanenko. It can be used to dump a database or a collection of databases for backup or tran





We can't live, work or learn in freedom unless the software we use is free.