Home
You are not currently signed in.

MIB Smithy

  1. Up to Table of Contents

Validating MIB Files

MIB Smithy SDK provides the same SMI validation functionality of MIB Smithy Professional and MIB Smithy Standard, including over 560 tests for compliance and compatibility with a wide range of third-party compilers. Records are validated on a per-file or basis using the database validate subcommand. Any error or warning messages generated during validation will be output to the configured log channel for the database (see Logging Compiler Messages).

Syntax:

% dbcmd validate fileRecord ?options?

Where:

dbcmd
is the name of the database; and
fileRecord
is the handle for the file that is to be validated.

Additional options may be specified to obtain additional information resulting from the validation.

Returns:

  • 1 if validation was successful and no errors were found.
  • 0 if validation was unsuccessful and one or more errors were found.

Options:

-errors variable
Specifies the name of a local variable that is to be assigned a count of the number of errors (if any) that occurred during validation.
-warnings variable
Specifies the name of a local variable that is to be assigned a count of the number of warnings (if any) that occurred during validation.
  1. Up to Table of Contents