このページではsnmpを使った総送受信データの取得方法について説明する。
yum install net-snmp-utils
$ snmpwalk -v 2c -c public [IPaddr] [OID]
$ snmpwalk -v 2c -c public [IPaddr] ifTable IF-MIB::ifDescr.1 = STRING: lo IF-MIB::ifDescr.2 = STRING: eth0 IF-MIB::ifDescr.3 = STRING: sit0eth0の値を取得したい場合、"2"となる。
eth0が"2"という事がわかったので、ifHC[OUT|IN]Octetsの後ろに".2"を追加する。
$ snmpwalk -v 2c -c public [IPaddr] ifHCOutOctets.2
$ snmpwalk -v 2c -c public [IPaddr] ifHCInOctets.2
まずは、システムがどのような値を出力するかを下記のコマンドで調べる。
$ snmpwalk -v 2c -c public 192.168.1.10 -On .1.3.6.1.4.1.2021
以下のようなリストが出力される。
.1.3.6.1.4.1.2021.4.1.0 = INTEGER: 0 .1.3.6.1.4.1.2021.4.2.0 = STRING: swap .1.3.6.1.4.1.2021.4.3.0 = INTEGER: 6096656 .1.3.6.1.4.1.2021.4.4.0 = INTEGER: 6093800 .1.3.6.1.4.1.2021.4.5.0 = INTEGER: 4040968 .1.3.6.1.4.1.2021.4.6.0 = INTEGER: 435872 .1.3.6.1.4.1.2021.4.11.0 = INTEGER: 6529672 .1.3.6.1.4.1.2021.4.12.0 = INTEGER: 16000 .1.3.6.1.4.1.2021.4.13.0 = INTEGER: 0 .1.3.6.1.4.1.2021.4.14.0 = INTEGER: 23716 .1.3.6.1.4.1.2021.4.15.0 = INTEGER: 1818336 .1.3.6.1.4.1.2021.4.100.0 = INTEGER: 0 .1.3.6.1.4.1.2021.4.101.0 = STRING: .1.3.6.1.4.1.2021.10.1.1.1 = INTEGER: 1 .1.3.6.1.4.1.2021.10.1.1.2 = INTEGER: 2 .1.3.6.1.4.1.2021.10.1.1.3 = INTEGER: 3 .1.3.6.1.4.1.2021.10.1.2.1 = STRING: Load-1 .1.3.6.1.4.1.2021.10.1.2.2 = STRING: Load-5 .1.3.6.1.4.1.2021.10.1.2.3 = STRING: Load-15 .1.3.6.1.4.1.2021.10.1.3.1 = STRING: 0.08 .1.3.6.1.4.1.2021.10.1.3.2 = STRING: 0.16 .1.3.6.1.4.1.2021.10.1.3.3 = STRING: 0.12 .1.3.6.1.4.1.2021.10.1.4.1 = STRING: 12.00 .1.3.6.1.4.1.2021.10.1.4.2 = STRING: 12.00 .1.3.6.1.4.1.2021.10.1.4.3 = STRING: 12.00 .1.3.6.1.4.1.2021.10.1.5.1 = INTEGER: 8 .1.3.6.1.4.1.2021.10.1.5.2 = INTEGER: 16 .1.3.6.1.4.1.2021.10.1.5.3 = INTEGER: 12 .1.3.6.1.4.1.2021.10.1.6.1 = Opaque: Float: 0.080000 .1.3.6.1.4.1.2021.10.1.6.2 = Opaque: Float: 0.160000 .1.3.6.1.4.1.2021.10.1.6.3 = Opaque: Float: 0.120000 .1.3.6.1.4.1.2021.10.1.100.1 = INTEGER: 0 .1.3.6.1.4.1.2021.10.1.100.2 = INTEGER: 0 .1.3.6.1.4.1.2021.10.1.100.3 = INTEGER: 0 .1.3.6.1.4.1.2021.10.1.101.1 = STRING: .1.3.6.1.4.1.2021.10.1.101.2 = STRING: .1.3.6.1.4.1.2021.10.1.101.3 = STRING: .1.3.6.1.4.1.2021.11.1.0 = INTEGER: 1 .1.3.6.1.4.1.2021.11.2.0 = STRING: systemStats .1.3.6.1.4.1.2021.11.3.0 = INTEGER: 0 .1.3.6.1.4.1.2021.11.4.0 = INTEGER: 0 .1.3.6.1.4.1.2021.11.5.0 = INTEGER: 587 .1.3.6.1.4.1.2021.11.6.0 = INTEGER: 149 .1.3.6.1.4.1.2021.11.7.0 = INTEGER: 983 .1.3.6.1.4.1.2021.11.8.0 = INTEGER: 2064 .1.3.6.1.4.1.2021.11.9.0 = INTEGER: 2 .1.3.6.1.4.1.2021.11.10.0 = INTEGER: 0 .1.3.6.1.4.1.2021.11.11.0 = INTEGER: 95 .1.3.6.1.4.1.2021.11.50.0 = Counter32: 7680014 .1.3.6.1.4.1.2021.11.51.0 = Counter32: 119141 .1.3.6.1.4.1.2021.11.52.0 = Counter32: 5632577 .1.3.6.1.4.1.2021.11.53.0 = Counter32: 207044221 .1.3.6.1.4.1.2021.11.54.0 = Counter32: 4275592 .1.3.6.1.4.1.2021.11.55.0 = Counter32: 3946511 .1.3.6.1.4.1.2021.11.56.0 = Counter32: 93432 .1.3.6.1.4.1.2021.11.57.0 = Counter32: 650277544 .1.3.6.1.4.1.2021.11.58.0 = Counter32: 2568909688 .1.3.6.1.4.1.2021.11.59.0 = Counter32: 2151222727 .1.3.6.1.4.1.2021.11.60.0 = Counter32: 220741212 .1.3.6.1.4.1.2021.11.61.0 = Counter32: 1592634 .1.3.6.1.4.1.2021.11.62.0 = Counter32: 6073 .1.3.6.1.4.1.2021.11.63.0 = Counter32: 6537 .1.3.6.1.4.1.2021.13.14.1.0 = INTEGER: 1 .1.3.6.1.4.1.2021.13.15.1.1.1.1 = INTEGER: 1 .1.3.6.1.4.1.2021.13.15.1.1.1.2 = INTEGER: 2 .1.3.6.1.4.1.2021.13.15.1.1.1.3 = INTEGER: 3 .1.3.6.1.4.1.2021.13.15.1.1.1.4 = INTEGER: 4 .1.3.6.1.4.1.2021.13.15.1.1.1.5 = INTEGER: 5 .1.3.6.1.4.1.2021.13.15.1.1.1.6 = INTEGER: 6 .1.3.6.1.4.1.2021.13.15.1.1.1.7 = INTEGER: 7 .1.3.6.1.4.1.2021.13.15.1.1.1.8 = INTEGER: 8 .1.3.6.1.4.1.2021.13.15.1.1.1.9 = INTEGER: 9 .1.3.6.1.4.1.2021.13.15.1.1.1.10 = INTEGER: 10 .1.3.6.1.4.1.2021.13.15.1.1.1.11 = INTEGER: 11 .1.3.6.1.4.1.2021.13.15.1.1.1.12 = INTEGER: 12 .1.3.6.1.4.1.2021.13.15.1.1.1.13 = INTEGER: 13 .1.3.6.1.4.1.2021.13.15.1.1.1.14 = INTEGER: 14 .1.3.6.1.4.1.2021.13.15.1.1.1.15 = INTEGER: 15 .1.3.6.1.4.1.2021.13.15.1.1.1.16 = INTEGER: 16 .1.3.6.1.4.1.2021.13.15.1.1.1.17 = INTEGER: 17 .1.3.6.1.4.1.2021.13.15.1.1.1.18 = INTEGER: 18 .1.3.6.1.4.1.2021.13.15.1.1.1.19 = INTEGER: 19 .1.3.6.1.4.1.2021.13.15.1.1.1.20 = INTEGER: 20 .1.3.6.1.4.1.2021.13.15.1.1.1.21 = INTEGER: 21 .1.3.6.1.4.1.2021.13.15.1.1.1.22 = INTEGER: 22 .1.3.6.1.4.1.2021.13.15.1.1.1.23 = INTEGER: 23 .1.3.6.1.4.1.2021.13.15.1.1.1.24 = INTEGER: 24 .1.3.6.1.4.1.2021.13.15.1.1.1.25 = INTEGER: 25 .1.3.6.1.4.1.2021.13.15.1.1.1.26 = INTEGER: 26 .1.3.6.1.4.1.2021.13.15.1.1.1.27 = INTEGER: 27 .1.3.6.1.4.1.2021.13.15.1.1.1.28 = INTEGER: 28 .1.3.6.1.4.1.2021.13.15.1.1.1.29 = INTEGER: 29 .1.3.6.1.4.1.2021.13.15.1.1.1.30 = INTEGER: 30 .1.3.6.1.4.1.2021.13.15.1.1.1.31 = INTEGER: 31 .1.3.6.1.4.1.2021.13.15.1.1.1.32 = INTEGER: 32 .1.3.6.1.4.1.2021.13.15.1.1.1.33 = INTEGER: 33 .1.3.6.1.4.1.2021.13.15.1.1.1.34 = INTEGER: 34 .1.3.6.1.4.1.2021.13.15.1.1.2.1 = STRING: ram0 .1.3.6.1.4.1.2021.13.15.1.1.2.2 = STRING: ram1 .1.3.6.1.4.1.2021.13.15.1.1.2.3 = STRING: ram2 .1.3.6.1.4.1.2021.13.15.1.1.2.4 = STRING: ram3 .1.3.6.1.4.1.2021.13.15.1.1.2.5 = STRING: ram4 .1.3.6.1.4.1.2021.13.15.1.1.2.6 = STRING: ram5 .1.3.6.1.4.1.2021.13.15.1.1.2.7 = STRING: ram6 .1.3.6.1.4.1.2021.13.15.1.1.2.8 = STRING: ram7 .1.3.6.1.4.1.2021.13.15.1.1.2.9 = STRING: ram8 .1.3.6.1.4.1.2021.13.15.1.1.2.10 = STRING: ram9 .1.3.6.1.4.1.2021.13.15.1.1.2.11 = STRING: ram10 .1.3.6.1.4.1.2021.13.15.1.1.2.12 = STRING: ram11 .1.3.6.1.4.1.2021.13.15.1.1.2.13 = STRING: ram12 .1.3.6.1.4.1.2021.13.15.1.1.2.14 = STRING: ram13 .1.3.6.1.4.1.2021.13.15.1.1.2.15 = STRING: ram14 .1.3.6.1.4.1.2021.13.15.1.1.2.16 = STRING: ram15 .1.3.6.1.4.1.2021.13.15.1.1.2.17 = STRING: sda .1.3.6.1.4.1.2021.13.15.1.1.2.18 = STRING: sda1 .1.3.6.1.4.1.2021.13.15.1.1.2.19 = STRING: sda2 .1.3.6.1.4.1.2021.13.15.1.1.2.20 = STRING: sda3 .1.3.6.1.4.1.2021.13.15.1.1.2.21 = STRING: sdb .1.3.6.1.4.1.2021.13.15.1.1.2.22 = STRING: sdb1 .1.3.6.1.4.1.2021.13.15.1.1.2.23 = STRING: sdc .1.3.6.1.4.1.2021.13.15.1.1.2.24 = STRING: sdc1 .1.3.6.1.4.1.2021.13.15.1.1.2.25 = STRING: sr0 .1.3.6.1.4.1.2021.13.15.1.1.2.26 = STRING: md0 .1.3.6.1.4.1.2021.13.15.1.1.2.27 = STRING: loop0 .1.3.6.1.4.1.2021.13.15.1.1.2.28 = STRING: loop1 .1.3.6.1.4.1.2021.13.15.1.1.2.29 = STRING: loop2 .1.3.6.1.4.1.2021.13.15.1.1.2.30 = STRING: loop3 .1.3.6.1.4.1.2021.13.15.1.1.2.31 = STRING: loop4 .1.3.6.1.4.1.2021.13.15.1.1.2.32 = STRING: loop5 .1.3.6.1.4.1.2021.13.15.1.1.2.33 = STRING: loop6 .1.3.6.1.4.1.2021.13.15.1.1.2.34 = STRING: loop7 .1.3.6.1.4.1.2021.13.15.1.1.3.1 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.2 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.3 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.4 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.5 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.6 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.7 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.8 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.9 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.10 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.11 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.12 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.13 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.14 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.15 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.16 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.17 = Counter32: 126828544 .1.3.6.1.4.1.2021.13.15.1.1.3.18 = Counter32: 1017856 .1.3.6.1.4.1.2021.13.15.1.1.3.19 = Counter32: 99803648 .1.3.6.1.4.1.2021.13.15.1.1.3.20 = Counter32: 25773568 .1.3.6.1.4.1.2021.13.15.1.1.3.21 = Counter32: 4054875136 .1.3.6.1.4.1.2021.13.15.1.1.3.22 = Counter32: 4054371328 .1.3.6.1.4.1.2021.13.15.1.1.3.23 = Counter32: 4161482752 .1.3.6.1.4.1.2021.13.15.1.1.3.24 = Counter32: 4161183744 .1.3.6.1.4.1.2021.13.15.1.1.3.25 = Counter32: 1059241984 .1.3.6.1.4.1.2021.13.15.1.1.3.26 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.27 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.28 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.29 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.30 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.31 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.32 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.33 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.3.34 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.1 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.2 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.3 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.4 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.5 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.6 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.7 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.8 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.9 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.10 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.11 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.12 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.13 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.14 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.15 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.16 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.17 = Counter32: 888755200 .1.3.6.1.4.1.2021.13.15.1.1.4.18 = Counter32: 30720 .1.3.6.1.4.1.2021.13.15.1.1.4.19 = Counter32: 861948928 .1.3.6.1.4.1.2021.13.15.1.1.4.20 = Counter32: 26775552 .1.3.6.1.4.1.2021.13.15.1.1.4.21 = Counter32: 2478964736 .1.3.6.1.4.1.2021.13.15.1.1.4.22 = Counter32: 2478964736 .1.3.6.1.4.1.2021.13.15.1.1.4.23 = Counter32: 4160782336 .1.3.6.1.4.1.2021.13.15.1.1.4.24 = Counter32: 4160782336 .1.3.6.1.4.1.2021.13.15.1.1.4.25 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.26 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.27 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.28 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.29 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.30 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.31 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.32 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.33 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.4.34 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.1 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.2 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.3 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.4 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.5 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.6 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.7 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.8 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.9 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.10 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.11 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.12 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.13 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.14 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.15 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.16 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.17 = Counter32: 2170942 .1.3.6.1.4.1.2021.13.15.1.1.5.18 = Counter32: 126 .1.3.6.1.4.1.2021.13.15.1.1.5.19 = Counter32: 2169850 .1.3.6.1.4.1.2021.13.15.1.1.5.20 = Counter32: 943 .1.3.6.1.4.1.2021.13.15.1.1.5.21 = Counter32: 8041266 .1.3.6.1.4.1.2021.13.15.1.1.5.22 = Counter32: 8041221 .1.3.6.1.4.1.2021.13.15.1.1.5.23 = Counter32: 51749 .1.3.6.1.4.1.2021.13.15.1.1.5.24 = Counter32: 51739 .1.3.6.1.4.1.2021.13.15.1.1.5.25 = Counter32: 16589 .1.3.6.1.4.1.2021.13.15.1.1.5.26 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.27 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.28 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.29 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.30 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.31 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.32 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.33 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.5.34 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.1 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.2 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.3 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.4 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.5 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.6 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.7 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.8 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.9 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.10 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.11 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.12 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.13 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.14 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.15 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.16 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.17 = Counter32: 3850963 .1.3.6.1.4.1.2021.13.15.1.1.6.18 = Counter32: 24 .1.3.6.1.4.1.2021.13.15.1.1.6.19 = Counter32: 3850807 .1.3.6.1.4.1.2021.13.15.1.1.6.20 = Counter32: 132 .1.3.6.1.4.1.2021.13.15.1.1.6.21 = Counter32: 1544781 .1.3.6.1.4.1.2021.13.15.1.1.6.22 = Counter32: 1544781 .1.3.6.1.4.1.2021.13.15.1.1.6.23 = Counter32: 30217 .1.3.6.1.4.1.2021.13.15.1.1.6.24 = Counter32: 30217 .1.3.6.1.4.1.2021.13.15.1.1.6.25 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.26 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.27 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.28 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.29 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.30 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.31 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.32 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.33 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.6.34 = Counter32: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.1 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.2 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.3 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.4 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.5 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.6 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.7 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.8 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.9 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.10 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.11 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.12 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.13 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.14 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.15 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.16 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.17 = Counter64: 60256370688 .1.3.6.1.4.1.2021.13.15.1.1.12.18 = Counter64: 1017856 .1.3.6.1.4.1.2021.13.15.1.1.12.19 = Counter64: 60229345792 .1.3.6.1.4.1.2021.13.15.1.1.12.20 = Counter64: 25773568 .1.3.6.1.4.1.2021.13.15.1.1.12.21 = Counter64: 583875460096 .1.3.6.1.4.1.2021.13.15.1.1.12.22 = Counter64: 583874956288 .1.3.6.1.4.1.2021.13.15.1.1.12.23 = Counter64: 4161482752 .1.3.6.1.4.1.2021.13.15.1.1.12.24 = Counter64: 4161183744 .1.3.6.1.4.1.2021.13.15.1.1.12.25 = Counter64: 1059241984 .1.3.6.1.4.1.2021.13.15.1.1.12.26 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.27 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.28 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.29 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.30 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.31 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.32 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.33 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.12.34 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.1 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.2 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.3 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.4 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.5 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.6 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.7 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.8 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.9 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.10 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.11 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.12 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.13 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.14 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.15 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.16 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.17 = Counter64: 73903199232 .1.3.6.1.4.1.2021.13.15.1.1.13.18 = Counter64: 30720 .1.3.6.1.4.1.2021.13.15.1.1.13.19 = Counter64: 73876392960 .1.3.6.1.4.1.2021.13.15.1.1.13.20 = Counter64: 26775552 .1.3.6.1.4.1.2021.13.15.1.1.13.21 = Counter64: 84083343360 .1.3.6.1.4.1.2021.13.15.1.1.13.22 = Counter64: 84083343360 .1.3.6.1.4.1.2021.13.15.1.1.13.23 = Counter64: 8455749632 .1.3.6.1.4.1.2021.13.15.1.1.13.24 = Counter64: 8455749632 .1.3.6.1.4.1.2021.13.15.1.1.13.25 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.26 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.27 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.28 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.29 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.30 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.31 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.32 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.33 = Counter64: 0 .1.3.6.1.4.1.2021.13.15.1.1.13.34 = Counter64: 0 .1.3.6.1.4.1.2021.100.10.0 = INTEGER: 0 .1.3.6.1.4.1.2021.100.11.0 = INTEGER: 0 .1.3.6.1.4.1.2021.100.12.0 = INTEGER: 0 .1.3.6.1.4.1.2021.100.13.0 = INTEGER: 0 .1.3.6.1.4.1.2021.100.20.0 = INTEGER: 0 .1.3.6.1.4.1.2021.101.1.0 = INTEGER: 0 .1.3.6.1.4.1.2021.101.2.0 = STRING: snmp .1.3.6.1.4.1.2021.101.100.0 = INTEGER: 0 .1.3.6.1.4.1.2021.101.101.0 = STRING:
この中で気になる値を持つ行にメボシをつけて、MIB情報を調べる。
ここでは、sda1という記載が気になるので、sda1が属する.1.3.6.1.4.1.2021.13.15の情報を調べる。
$ snmpwalk -v 2c -c public 192.168.1.10 .1.3.6.1.4.1.2021.13.15 UCD-DISKIO-MIB::diskIOIndex.1 = INTEGER: 1 UCD-DISKIO-MIB::diskIOIndex.2 = INTEGER: 2 UCD-DISKIO-MIB::diskIOIndex.3 = INTEGER: 3 UCD-DISKIO-MIB::diskIOIndex.4 = INTEGER: 4 UCD-DISKIO-MIB::diskIOIndex.5 = INTEGER: 5 UCD-DISKIO-MIB::diskIOIndex.6 = INTEGER: 6 UCD-DISKIO-MIB::diskIOIndex.7 = INTEGER: 7 UCD-DISKIO-MIB::diskIOIndex.8 = INTEGER: 8 UCD-DISKIO-MIB::diskIOIndex.9 = INTEGER: 9 UCD-DISKIO-MIB::diskIOIndex.10 = INTEGER: 10 UCD-DISKIO-MIB::diskIOIndex.11 = INTEGER: 11 UCD-DISKIO-MIB::diskIOIndex.12 = INTEGER: 12 UCD-DISKIO-MIB::diskIOIndex.13 = INTEGER: 13 UCD-DISKIO-MIB::diskIOIndex.14 = INTEGER: 14 UCD-DISKIO-MIB::diskIOIndex.15 = INTEGER: 15 UCD-DISKIO-MIB::diskIOIndex.16 = INTEGER: 16 UCD-DISKIO-MIB::diskIOIndex.17 = INTEGER: 17 UCD-DISKIO-MIB::diskIOIndex.18 = INTEGER: 18 UCD-DISKIO-MIB::diskIOIndex.19 = INTEGER: 19 UCD-DISKIO-MIB::diskIOIndex.20 = INTEGER: 20 UCD-DISKIO-MIB::diskIOIndex.21 = INTEGER: 21 UCD-DISKIO-MIB::diskIOIndex.22 = INTEGER: 22 UCD-DISKIO-MIB::diskIOIndex.23 = INTEGER: 23 UCD-DISKIO-MIB::diskIOIndex.24 = INTEGER: 24 UCD-DISKIO-MIB::diskIOIndex.25 = INTEGER: 25 UCD-DISKIO-MIB::diskIOIndex.26 = INTEGER: 26 UCD-DISKIO-MIB::diskIOIndex.27 = INTEGER: 27 UCD-DISKIO-MIB::diskIOIndex.28 = INTEGER: 28 UCD-DISKIO-MIB::diskIOIndex.29 = INTEGER: 29 UCD-DISKIO-MIB::diskIOIndex.30 = INTEGER: 30 UCD-DISKIO-MIB::diskIOIndex.31 = INTEGER: 31 UCD-DISKIO-MIB::diskIOIndex.32 = INTEGER: 32 UCD-DISKIO-MIB::diskIOIndex.33 = INTEGER: 33 UCD-DISKIO-MIB::diskIOIndex.34 = INTEGER: 34 UCD-DISKIO-MIB::diskIODevice.1 = STRING: ram0 UCD-DISKIO-MIB::diskIODevice.2 = STRING: ram1 UCD-DISKIO-MIB::diskIODevice.3 = STRING: ram2 UCD-DISKIO-MIB::diskIODevice.4 = STRING: ram3 UCD-DISKIO-MIB::diskIODevice.5 = STRING: ram4 UCD-DISKIO-MIB::diskIODevice.6 = STRING: ram5 UCD-DISKIO-MIB::diskIODevice.7 = STRING: ram6 UCD-DISKIO-MIB::diskIODevice.8 = STRING: ram7 UCD-DISKIO-MIB::diskIODevice.9 = STRING: ram8 UCD-DISKIO-MIB::diskIODevice.10 = STRING: ram9 UCD-DISKIO-MIB::diskIODevice.11 = STRING: ram10 UCD-DISKIO-MIB::diskIODevice.12 = STRING: ram11 UCD-DISKIO-MIB::diskIODevice.13 = STRING: ram12 UCD-DISKIO-MIB::diskIODevice.14 = STRING: ram13 UCD-DISKIO-MIB::diskIODevice.15 = STRING: ram14 UCD-DISKIO-MIB::diskIODevice.16 = STRING: ram15 UCD-DISKIO-MIB::diskIODevice.17 = STRING: sda UCD-DISKIO-MIB::diskIODevice.18 = STRING: sda1 UCD-DISKIO-MIB::diskIODevice.19 = STRING: sda2 UCD-DISKIO-MIB::diskIODevice.20 = STRING: sda3 UCD-DISKIO-MIB::diskIODevice.21 = STRING: sdb UCD-DISKIO-MIB::diskIODevice.22 = STRING: sdb1 UCD-DISKIO-MIB::diskIODevice.23 = STRING: sdc UCD-DISKIO-MIB::diskIODevice.24 = STRING: sdc1 UCD-DISKIO-MIB::diskIODevice.25 = STRING: sr0 UCD-DISKIO-MIB::diskIODevice.26 = STRING: md0 UCD-DISKIO-MIB::diskIODevice.27 = STRING: loop0 UCD-DISKIO-MIB::diskIODevice.28 = STRING: loop1 UCD-DISKIO-MIB::diskIODevice.29 = STRING: loop2 UCD-DISKIO-MIB::diskIODevice.30 = STRING: loop3 UCD-DISKIO-MIB::diskIODevice.31 = STRING: loop4 UCD-DISKIO-MIB::diskIODevice.32 = STRING: loop5 UCD-DISKIO-MIB::diskIODevice.33 = STRING: loop6 UCD-DISKIO-MIB::diskIODevice.34 = STRING: loop7 UCD-DISKIO-MIB::diskIONRead.1 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.2 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.3 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.4 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.5 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.6 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.7 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.8 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.9 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.10 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.11 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.12 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.13 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.14 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.15 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.16 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.17 = Counter32: 130445312 UCD-DISKIO-MIB::diskIONRead.18 = Counter32: 1017856 UCD-DISKIO-MIB::diskIONRead.19 = Counter32: 103420416 UCD-DISKIO-MIB::diskIONRead.20 = Counter32: 25773568 UCD-DISKIO-MIB::diskIONRead.21 = Counter32: 113351680 UCD-DISKIO-MIB::diskIONRead.22 = Counter32: 112847872 UCD-DISKIO-MIB::diskIONRead.23 = Counter32: 4161482752 UCD-DISKIO-MIB::diskIONRead.24 = Counter32: 4161183744 UCD-DISKIO-MIB::diskIONRead.25 = Counter32: 1059241984 UCD-DISKIO-MIB::diskIONRead.26 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.27 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.28 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.29 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.30 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.31 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.32 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.33 = Counter32: 0 UCD-DISKIO-MIB::diskIONRead.34 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.1 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.2 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.3 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.4 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.5 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.6 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.7 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.8 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.9 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.10 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.11 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.12 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.13 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.14 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.15 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.16 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.17 = Counter32: 965694464 UCD-DISKIO-MIB::diskIONWritten.18 = Counter32: 30720 UCD-DISKIO-MIB::diskIONWritten.19 = Counter32: 938888192 UCD-DISKIO-MIB::diskIONWritten.20 = Counter32: 26775552 UCD-DISKIO-MIB::diskIONWritten.21 = Counter32: 2534469632 UCD-DISKIO-MIB::diskIONWritten.22 = Counter32: 2534469632 UCD-DISKIO-MIB::diskIONWritten.23 = Counter32: 4160782336 UCD-DISKIO-MIB::diskIONWritten.24 = Counter32: 4160782336 UCD-DISKIO-MIB::diskIONWritten.25 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.26 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.27 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.28 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.29 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.30 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.31 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.32 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.33 = Counter32: 0 UCD-DISKIO-MIB::diskIONWritten.34 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.1 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.2 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.3 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.4 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.5 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.6 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.7 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.8 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.9 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.10 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.11 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.12 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.13 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.14 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.15 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.16 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.17 = Counter32: 2171295 UCD-DISKIO-MIB::diskIOReads.18 = Counter32: 126 UCD-DISKIO-MIB::diskIOReads.19 = Counter32: 2170203 UCD-DISKIO-MIB::diskIOReads.20 = Counter32: 943 UCD-DISKIO-MIB::diskIOReads.21 = Counter32: 8104854 UCD-DISKIO-MIB::diskIOReads.22 = Counter32: 8104809 UCD-DISKIO-MIB::diskIOReads.23 = Counter32: 51749 UCD-DISKIO-MIB::diskIOReads.24 = Counter32: 51739 UCD-DISKIO-MIB::diskIOReads.25 = Counter32: 16589 UCD-DISKIO-MIB::diskIOReads.26 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.27 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.28 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.29 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.30 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.31 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.32 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.33 = Counter32: 0 UCD-DISKIO-MIB::diskIOReads.34 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.1 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.2 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.3 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.4 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.5 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.6 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.7 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.8 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.9 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.10 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.11 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.12 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.13 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.14 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.15 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.16 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.17 = Counter32: 3858330 UCD-DISKIO-MIB::diskIOWrites.18 = Counter32: 24 UCD-DISKIO-MIB::diskIOWrites.19 = Counter32: 3858174 UCD-DISKIO-MIB::diskIOWrites.20 = Counter32: 132 UCD-DISKIO-MIB::diskIOWrites.21 = Counter32: 1549739 UCD-DISKIO-MIB::diskIOWrites.22 = Counter32: 1549739 UCD-DISKIO-MIB::diskIOWrites.23 = Counter32: 30217 UCD-DISKIO-MIB::diskIOWrites.24 = Counter32: 30217 UCD-DISKIO-MIB::diskIOWrites.25 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.26 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.27 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.28 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.29 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.30 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.31 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.32 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.33 = Counter32: 0 UCD-DISKIO-MIB::diskIOWrites.34 = Counter32: 0 UCD-DISKIO-MIB::diskIONReadX.1 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.2 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.3 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.4 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.5 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.6 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.7 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.8 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.9 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.10 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.11 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.12 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.13 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.14 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.15 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.16 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.17 = Counter64: 60259987456 UCD-DISKIO-MIB::diskIONReadX.18 = Counter64: 1017856 UCD-DISKIO-MIB::diskIONReadX.19 = Counter64: 60232962560 UCD-DISKIO-MIB::diskIONReadX.20 = Counter64: 25773568 UCD-DISKIO-MIB::diskIONReadX.21 = Counter64: 588523871232 UCD-DISKIO-MIB::diskIONReadX.22 = Counter64: 588523367424 UCD-DISKIO-MIB::diskIONReadX.23 = Counter64: 4161482752 UCD-DISKIO-MIB::diskIONReadX.24 = Counter64: 4161183744 UCD-DISKIO-MIB::diskIONReadX.25 = Counter64: 1059241984 UCD-DISKIO-MIB::diskIONReadX.26 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.27 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.28 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.29 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.30 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.31 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.32 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.33 = Counter64: 0 UCD-DISKIO-MIB::diskIONReadX.34 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.1 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.2 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.3 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.4 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.5 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.6 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.7 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.8 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.9 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.10 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.11 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.12 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.13 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.14 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.15 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.16 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.17 = Counter64: 73980138496 UCD-DISKIO-MIB::diskIONWrittenX.18 = Counter64: 30720 UCD-DISKIO-MIB::diskIONWrittenX.19 = Counter64: 73953332224 UCD-DISKIO-MIB::diskIONWrittenX.20 = Counter64: 26775552 UCD-DISKIO-MIB::diskIONWrittenX.21 = Counter64: 84138848256 UCD-DISKIO-MIB::diskIONWrittenX.22 = Counter64: 84138848256 UCD-DISKIO-MIB::diskIONWrittenX.23 = Counter64: 8455749632 UCD-DISKIO-MIB::diskIONWrittenX.24 = Counter64: 8455749632 UCD-DISKIO-MIB::diskIONWrittenX.25 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.26 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.27 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.28 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.29 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.30 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.31 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.32 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.33 = Counter64: 0 UCD-DISKIO-MIB::diskIONWrittenX.34 = Counter64: 0
得られた出力結果より、該当のOIDはdiskIOに関するものだとわかった。
また、2つの出力結果を照らし合わせると、
.1.3.6.1.4.1.2021.13.15.1.1.2.18 = STRING: sda1 <=> UCD-DISKIO-MIB::diskIODevice.18 = STRING: sda1
末尾の"18"がsda1を示していることがわかる。さらに、18の手前の"2"がdiskIODeviceを示していることもわかる。
sda1について得られる情報は以下のとおり。
MIB項目名 | OID番号 | OID全桁 | 備考 |
diskIONRead | 3 | .1.3.6.1.4.1.2021.13.15.1.1.3.18 | 読み込みバイト数 |
diskIONWritten | 4 | .1.3.6.1.4.1.2021.13.15.1.1.4.18 | 書き込みバイト数 |
diskIOReads | 5 | .1.3.6.1.4.1.2021.13.15.1.1.5.18 | 読み込み回数 |
diskIOWrites | 6 | .1.3.6.1.4.1.2021.13.15.1.1.6.18 | 書き込み回数 |
diskIONReadX | 12 | .1.3.6.1.4.1.2021.13.15.1.1.12.18 | 読み込みバイト数(64bit) |
diskIONWrittenX | 13 | .1.3.6.1.4.1.2021.13.15.1.1.13.18 | 書き込みバイト数(64bit) |
http://park1.wakwak.com/~ima/freebsd_netsnmpoidlist.html
ごった煮 - FreeBSD導入記(覚え書き) - net-snmp OID一覧
http://www.itmedia.co.jp/enterprise/articles/0705/21/news015.html
SNMPによるネットワークモニタリング「第2版」:第5回 図解で知るSNMP――MIB情報のすべて (1/8) - ITmedia エンタープライズ