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.
% dbcmd find searchspec
dbcmdsearchspecarray 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.
% 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