bottrap
< Prev Back to Table of Contents Next >

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 containing the file identified by handle fileRecord 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:

Option Argument Description
-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.
< Prev Back to Table of Contents Next >