| < Prev | Back to Table of Contents | Next > |
Each database other than the master is identified by
smilib# where 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):
| Command | Description |
|---|---|
new |
Create a database or record within database |
destroy |
Destroy the databases or records within the database |
find |
Search for records matching a given pattern |
get |
Get properties for a specified record |
set |
Set properties for a specified record |
log |
Log messages to the database's configured file channel |
import |
Import modules from a file or specified text |
export |
Reserved for future use |
whatis |
Report the record type for the specified record |
is |
Report whether a string matches a known pattern |
dump |
Print the OID tree structure for the database to stdout |
validate |
Validate modules or files within the database |
tnm |
Used in the implementation of the Scotty/TNM Compatibility Package. |
| < Prev | Back to Table of Contents | Next > |