Home
You are not currently signed in.

MIB Smithy

  1. Up to Table of Contents

The SMI Database Command

Each database other than the master is identified by smilib#, where # is an integer that uniquely identifies the database (e.g. smilib1). The full, unique name of the database also identifies a unique Tcl command used to access information about that database's records.

The master database, called smilib (without an integer suffix) is always present -- even if destroyed, it is immediately recreated with no other definitions loaded except for the root nodes ccitt(0), iso(1) and joint-iso-ccitt(2) in OID space. These are the root mounting points for all other records defining object identifier values.

The database command provides a number of other interfaces for creating and destroying records, setting and querying properties for those records, and importing modules, as well as a built-in validation command that provides the same hundreds of tests performed by the MIB Smithy compiler. The subcommands supported by the database command are as follows (follow the link for more details):

SMI Database Management

destroy
Destroy the databases or records within the database.
dump
Print the OID tree structure for the database to stdout.
find
Search for records matching a given pattern.
get
Get properties for a specified record.
import
Import modules from a file or specified text.
new
Create a database or record within database.
set
Set properties for a specified record.
whatis
Report the record type for the specified record.
validate
Validate modules or files within the database.

SMI Database Utility Functions

buildoid
Build Columnar OBJECT-TYPE OIDs (inverse of parseoid).
format
Format raw SNMP values for display (inverse of scan).
is
Report whether a string matches a known pattern.
log
Log messages to the database's configured file channel.
oidcmp
Compare OID Values.
parseoid
Parse Columnar OBJECT-TYPE OIDs (inverse of buildoid).
scan
Scan formatted data into raw SNMP values (inverse of format).

Other Subcommands

tnm
Used in the implementation of the Scotty/TNM Compatibility Package.
  1. Up to Table of Contents