The following section provides a basic mapping of Scotty MIB database related commands to MIB Smithy SDK. The information may be helpful as a starting point for migrating legacy scripts to use MIB Smithy SDK's native APIs for quering MIB module properties.
mib ?-exact? access label
% mib access sysDescr read-only
Tnm::mib ?-exact? access label
% Tnm::mib access sysDescr read-only
dbcmd get ?-exact? -access label
% smilib get -access sysDescr read-only
mib ?-exact? successor label
% mib successor system sysDescr sysObjectID sysUpTime sysContact sysName sysLocation sysServices sysORLastChange sysORTable
Tnm::mib children label
% Tnm::mib children system SNMPv2-MIB::sysDescr SNMPv2-MIB::sysObjectID SNMPv2-MIB::sysUpTime SNMPv2-MIB::sysContact SNMPv2-MIB::sysName SNMPv2-MIB::sysLocation SNMPv2-MIB::sysServices SNMPv2-MIB::sysORLastChange SNMPv2-MIB::sysORTable
dbcmd get ?-exact? -subnodes label
% smilib get -subnodes system sysDescr sysObjectID sysUpTime sysContact sysName sysLocation sysServices sysORLastChange sysORTable
Not Supported
Tnm::mib compare oid1 oid2
% Tnm::mib compare 1.3.6.1 1.3.6.2 -1
dbcmd oidcmp ?options? oid1 oid2
% smilib oidcmp 1.3.6.1 1.3.6.2 -1
mib ?-exact? defval label
% string length [mib defval ifRcvAddressType] 0
Tnm::mib ?-exact? defval label
% Tnm::mib defval ifRcvAddressType volatile
dbcmd get ?-exact? -defval label
% smilib get -defval ifRcvAddressType volatile
mib ?-exact? description label
% mib description sysDescr A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating-system, and networking software.
Tnm::mib description label
% Tnm::mib description sysDescr A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating-system, and networking software.
dbcmd get ?-exact? -description label
% smilib get -descr sysDescr A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating-system, and networking software.
Not Supported
Tnm::mib ?-exact? displayhint label
% Tnm::mib displayhint DisplayString 255a
dbcmd get ?-exact? -format label
% smilib get -format DisplayString 255a
Not Supported
Tnm::mib enums type ?varName?
% mib enums ifType unknown type "ifType" % mib enums IANAifType other 1 regular1822 2 hdh1822 3 ddnX25 4 rfc877x25 5 ...
smilib get ?-exact? -enums label
% smilib get -enums ifType {other 1 {none of the following}} {regular1822 2} {hdh1822 3} {ddnX25 4} {rfc877x25 5} ... % smilib get -enums IANAifType {other 1 {none of the following}} {regular1822 2} {hdh1822 3} {ddnX25 4} {rfc877x25 5} ...
Not Supported
Tnm::mib exists label
% mib exists system 1
dbcmd is defined label
% smilib is defined system 1
mib ?-exact? file label
% mib file system /usr/local/lib/tnm2.1.9/mibs/rfc1907.mib
Tnm::mib file label
% Tnm::mib file system /usr/local/lib/tnm3.0.0/mibs/SNMPv2-MIB
dbcmd get -filename fileHandle
% set fullName [smilib get -fullname system] @File4!SNMPv2-MIB!system % set fileHandle [lindex [split $fullname !] 0] @File4 % $db get -filename $fileHandle ../../mibs/rfc3418.mib
mib ?-exact? format name value
Tnm::mib format name value
dbcmd format ?-nocomplain? name value
% smilib format RowStatus 6 destroy(6)
mib ?-exact? index label
% mib index sysORTable sysORIndex
Tnm::mib index label
% Tnm::mib index sysORTable 1.3.6.1.2.1.1.9.1.1
dbcmd get ?-exact? -index label
% smilib get -index sysORTable sysORIndex
Not Supported
Tnm::mib info subject ?pattern?
Not Supported
mib ?-exact? name oid
% mib name 1.3.6.1.2.1.1.1 sysDescr
Tnm::mib label oid
% Tnm::mib label 1.3.6.1.2.1.1.1 sysDescr
dbcmd get ?-exact? -name oid
% smilib get -name 1.3.6.1.2.1.1.1 sysDescr
Not Supported
Tnm::mib length label
% Tnm::mib length system 7
llength [split [dbcmd get -fulloid label] .]
% llength [split [$db get -fulloid system] .] 7
mib load filename
% mib load IANAifType-MIB.mib
Tnm::mib load filename
% Tnm::mib load IANAifType-MIB.mib
dbcmd import -file filename
% smilib import -file IANAifType-MIB.mib 1
mib ?-exact? macro label
% mib macro sysDescr OBJECT-TYPE
Tnm::mib macro label
% Tnm::mib macro sysDescr OBJECT-TYPE
dbcmd whatis label
% smilib whatis sysDescr leaf
Not Supported
Tnm::mib member label
% Tnm::mib member systemGroup sysDescr sysObjectID sysUpTime sysContact sysName sysLocation sysServices sysORLastChange sysORID sysORUpTime sysORDescr
dbcmd get -members label
% smilib get -members systemGroup sysDescr sysObjectID sysUpTime sysContact sysName sysLocation sysServices sysORLastChange sysORID sysORUpTime sysORDescr
mib ?-exact? module label
% mib module system SNMPv2-MIB
Tnm::mib module label
% Tnm::mib module system SNMPv2-MIB
lindex [split [dbcmd get -container label] !] 1
% lindex [split [smilib get -container system] !] 1 SNMPv2-MIB
mib ?-exact? oid label
% mib oid system 1.3.6.1.2.1.1
Tnm::mib oid label
% Tnm::mib oid system 1.3.6.1.2.1.1
dbcmd get -fulloid label
dbcmd get -oid label
% smilib get -fulloid system 1.3.6.1.2.1.1 % smilib get -oid system mib-2.1
Not Supported
Tnm::mib pack oid value ?value ...?
% mib pack IF-MIB!ifType 4 1.3.6.1.2.1.2.2.1.3.4
dbcmd buildoid oid value ?value ...?
% smilib buildoid IF-MIB!ifType 4 1.3.6.1.2.1.2.2.1.3.4
mib ?-exact? parent label
% mib parent sysDescr system
Tnm::mib parent label
% Tnm::mib parent sysDescr SNMPv2-MIB::system
set fulloid [$db get ?-exact? -fulloid label]
set fulloid [join [lrange [split $fulloid .] 0 end-1] .]
$db get -name $fulloid
% set fulloid [smilib get -fulloid sysDescr] 1.3.6.1.2.1.1.1 % set fulloid [join [lrange [split $fulloid .] 0 end-1] .] 1.3.6.1.2.1.1 % smilib get -name sysDescr system
Not Supported
Tnm::mib range label
Tnm::mib size label
% mib size sysDescr unknown type "sysDescr" % mib size DisplayString 0 255
dbcmd get ?-exact? -range
dbcmd get ?-exact? -size
% smilib get -size sysDescr {0 255} % smilib get -size DisplayString {0 255}
mib ?-exact? scan name value
% mib scan RowStatus destroy 6
Tnm::mib scan nodeOrType value
% Tnm::mib scan RowStatus destroy 6
dbcmd scan ?options? record ?syntax? value
% smilib scan RowStatus destroy 6
Not Supported
Tnm::mib status label
% Tnm::mib status sysDescr current
dbcmd get -status label
% smilib get -status sysDescr current
Not Supported
Tnm::mib subtree oid1 oid2
% Tnm::mib subtree system sysDescr 1 % Tnm::mib subtree system ifType 0
dbcmd oidcmp -subtree parent child
% smilib oidcmp -subtree system sysDescr 0 % smilib oidcmp -subtree system ifType 1
mib ?-exact? syntax label
% mib syntax sysDescr DisplayString
Tnm::mib syntax label
Tnm::mib type label
% Tnm::mib syntax sysDescr OCTET STRING % Tnm::mib type sysDescr SNMPv2-TC!DisplayString
dbcmd get -syntax label
dbcmd get -asn1type label
% smilib get -syntax sysDescr DisplayString % smilib get -asn1type sysDescr OCTET STRING
mib ?-exact? tc label
% mib tc sysDescr DisplayString {OCTET STRING} 255a {} SNMPv2-TC /usr/local/lib/tnm2.1.9/mibs/rfc1903.tc
Not Supported
Not Supported
Not Supported
Tnm::mib unpack oid
Tnm::mib split oid
% Tnm::mib unpack sysORDescr.6 6 % Tnm::mib split sysORDescr.6 1.3.6.1.2.1.1.9.1.3 6
dbcmd get -indexparts oid
dbcmd parseoid oid
% smilib get -indexparts sysORDescr.6 sysORIndex 6 6 % smilib parseoid sysORDescr.6 sysORIndex 6 6
Not Supported
Tnm::mib variables label
% Tnm::mib variables linkUp ifIndex ifAdminStatus ifOperStatus
dbcmd get -members label
% smilib get -members linkUp ifIndex ifAdminStatus ifOperStatus
mib ?-exact? walk varName label command
% mib walk x sysORTable { puts $x } sysORTable sysOREntry sysORIndex sysORID sysORDescr sysORUpTime
Tnm::mib ?-exact? walk varName label command
% Tnm::mib walk x sysORTable { puts $x } 1.3.6.1.2.1.1.9 1.3.6.1.2.1.1.9.1 1.3.6.1.2.1.1.9.1.1 1.3.6.1.2.1.1.9.1.2 1.3.6.1.2.1.1.9.1.3 1.3.6.1.2.1.1.9.1.4
snmpcmd walk ?option value ...? ?varBindList?
% foreach vb [snmplib walk system] { puts $vb } 1.3.6.1.2.1.1.1.0 {OCTET STRING} {Example sysDescr} 1.3.6.1.2.1.1.2.0 {OBJECT IDENTIFIER} 1.3.6.1.4.1.8072.3.2.8 1.3.6.1.2.1.1.3.0 TimeTicks 772878758 1.3.6.1.2.1.1.4.0 {OCTET STRING} {Example sysContact} 1.3.6.1.2.1.1.5.0 {OCTET STRING} {Example sysName} 1.3.6.1.2.1.1.6.0 {OCTET STRING} Unknown 1.3.6.1.2.1.1.8.0 TimeTicks 4