snmpwalkですべてのMIBを取得する。
snmpwalk -v1 -c public 10.72.20.41 .
snmpwalkからの抽出する。対象となる項目は接続およびカウンター関連
IF-MIB::ifOperStatus.1 = INTEGER: up(1) IF-MIB::ifOperStatus.2 = INTEGER: up(1) IF-MIB::ifLastChange.1 = Timeticks: (607551700) 70 days, 7:38:37.00 SNMPv2-SMI::mib-2.43.10.2.1.4.1.1 = Counter32: 27953 SNMPv2-SMI::mib-2.43.10.2.1.5.1.1 = Counter32: 8268 SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.5.1 = STRING: "Counter: Machine Total" SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.5.2 = STRING: "Counter:Copy:Total" SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.5.3 = STRING: "Counter:Copy:Black & White" SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.5.4 = STRING: "Counter:Copy:Single/Two-color" SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.5.5 = STRING: "Counter:Copy:Full Color" SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.5.6 = STRING: "Counter:FAX:Total" SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.5.7 = STRING: "Counter:FAX:Black & White" SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.5.8 = STRING: "Counter:Print:Total" SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.5.9 = STRING: "Counter:Print:Black & White" NMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.5.10 = STRING: "Counter:Print:Single/Two-col." SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.5.11 = STRING: "Counter:Print:Full Color" SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.9.1 = INTEGER: 27953 SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.9.2 = INTEGER: 9806 SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.9.3 = INTEGER: 7924 SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.9.4 = INTEGER: 28 SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.9.5 = INTEGER: 1854 SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.9.6 = INTEGER: 0 SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.9.7 = INTEGER: 0 SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.9.8 = INTEGER: 18147 SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.9.9 = INTEGER: 6859 SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.9.10 = INTEGER: 181 SNMPv2-SMI::enterprises.367.3.2.1.2.19.5.1.9.11 = INTEGER: 11107
登録のためのOIDを取得する。
.1.3.6.1.2.1.2.2.1.3.1 = INTEGER: ethernetCsmacd(6) .1.3.6.1.2.1.2.2.1.3.2 = INTEGER: softwareLoopback(24) .1.3.6.1.2.1.2.2.1.3.3 = INTEGER: other(1) .1.3.6.1.2.1.2.2.1.3.4 = INTEGER: other(1) .1.3.6.1.2.1.2.2.1.8.1 = INTEGER: up(1) .1.3.6.1.2.1.2.2.1.8.2 = INTEGER: up(1) .1.3.6.1.2.1.2.2.1.8.3 = INTEGER: down(2) .1.3.6.1.2.1.2.2.1.8.4 = INTEGER: up(1) .1.3.6.1.2.1.2.2.1.9.1 = Timeticks: (607595400) 70 days, 7:45:54.00 .1.3.6.1.2.1.2.2.1.9.2 = Timeticks: (0) 0:00:00.00 .1.3.6.1.2.1.2.2.1.9.3 = Timeticks: (0) 0:00:00.00 .1.3.6.1.2.1.2.2.1.9.4 = Timeticks: (0) 0:00:00.00
SNMPv2-SMI::enterprises. : .1.3.6.1.4.1.