MIB Smithy

  1. Up to Table of Contents

Destroying Records and Databases

Destroying an SMI Database deletes its command from Tcl and frees up all memory associated with all of the files, modules and other records previously loaded into the database. Destroying an individual record removes that record from the database and, if it is a container record such as a file, module, or conformance statement, then each of its contained records will also be destroyed (but not any records that are defined with OID values subordinate to the destroyed record).


% dbcmd destroy ?recordName?


is the name of the database; and
is an optional record search string (name, OID, or combination of such) identifying the record to be destroyed. If no record is specified, then the database its self will be destroyed.


  • Nothing.


The master database is the only one that is reinitialized after being destroyed. Issuing the smilib destroy command deletes all records in the master database, but the smilib command and database remains. Destroying any other database (e.g. smilib1 destroy) results in that database being completely removed.

Example 1 - Destroying a database:

% smilib1 destroy

Example 2 - Destroying a module:

% smilib1 destroy EXAMPLE-MIB
  1. Up to Table of Contents