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


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


   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.


   -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

   -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

   -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

          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.


   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

   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

   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

   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.


   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


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


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


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.

Free Software

Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.

Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.

Free Books

The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.

Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.

Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.