Home
You are not currently signed in.

MIB Smithy

  1. Up to Table of Contents

Finding/Searching Records

MIB Smithy SDK provides capabilities for finding records matching a specified name or object identifier value. This feature is useful, for example, to resolve ambiguities or to locate variations for a particular OBJECT-TYPE definition, of which there can be many.

Syntax:

% dbcmd find searchspec

Where:

dbcmd
is the name of the database; and
searchspec
may be any of the accepted forms for a Record Search Specification as used by other commands to reference individual records.

Returns:

  • A list of name+type pairs suitable for use with array set or foreach. The name returned will be the fully-qualified name of the record, including file handle, while the type will be one of the record type keywords as returned by the whatis command.

Example

% foreach { name type } [smilib find snmpCommunityGroup] {
    puts $name
    puts $type
}
@File4!SNMPv2-MIB!snmpCommunityGroup
object-group
@File4!SNMPv2-MIB!snmpBasicCompliance!SNMPv2-MIB!snmpCommunityGroup
conformance-group
@File4!SNMPv2-MIB!snmpBasicComplianceRev2!SNMPv2-MIB!snmpCommunityGroup
conformance-group
  1. Up to Table of Contents