EnglishFrenchSpanish

OnWorks favicon

smilint - Online in the Cloud

Run smilint in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command smilint that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

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

Use smilint online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    USBLoaderGX
    USBLoaderGX
    USBLoaderGX is a GUI for
    Waninkoko's USB Loader, based on
    libwiigui. It allows listing and
    launching Wii games, Gamecube games and
    homebrew on Wii and WiiU...
    Download USBLoaderGX
  • 2
    Firebird
    Firebird
    Firebird RDBMS offers ANSI SQL features
    & runs on Linux, Windows &
    several Unix platforms. Features
    excellent concurrency & performance
    & power...
    Download Firebird
  • 3
    KompoZer
    KompoZer
    KompoZer is a wysiwyg HTML editor using
    the Mozilla Composer codebase. As
    Nvu's development has been stopped
    in 2005, KompoZer fixes many bugs and
    adds a f...
    Download KompoZer
  • 4
    Free Manga Downloader
    Free Manga Downloader
    The Free Manga Downloader (FMD) is an
    open source application written in
    Object-Pascal for managing and
    downloading manga from various websites.
    This is a mirr...
    Download Free Manga Downloader
  • 5
    UNetbootin
    UNetbootin
    UNetbootin allows you to create bootable
    Live USB drives for Ubuntu, Fedora, and
    other Linux distributions without
    burning a CD. It runs on Windows, Linux,
    and ...
    Download UNetbootin
  • 6
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM is an easy to use
    ERP and CRM open source software package
    (run with a web php server or as
    standalone software) for businesses,
    foundations...
    Download Dolibarr ERP - CRM
  • ation Foundation Linux app" href="/software/linux/app-windows-presentation-foundation">Download Windows Presentation Foundation "/software/linux/app-transmission-remote-gui">Download Transmission Remote GUI inux, MacOS and Windows. The main pu...
    Download butt (broadcast using this tool)
  • More »

Linux commands

Ad