2024/6/24 miburi を試す
自宅L2SW相手にmackerel-plugin-snmpとか使ってちょっと情報みたいなーって思って。
最初にコマンドを打てと言われた
mibを読み込みたいらしい。
/usr/share/snmp/mibs/ 以下のディレクトリ一覧を探してみる
code:log
do-su-0805@dosu0805-T450s:~/source/github.com/kmuto/miburi$ ls -d /usr/share/snmp/mibs/*/
/usr/share/snmp/mibs/iana/ /usr/share/snmp/mibs/ietf/ /usr/share/snmp/mibs/yamaha/
なんか失敗したけど成功した
code:log
do-su-0805@dosu0805-T450s:~/source/github.com/kmuto/miburi$ miburi dump -d /usr/share/snmp/mibs -d /usr/share/snmp/mibs/iana -d /usr/share/snmp/mibs/ietf -d /usr/share/snmp/mibs/yamaha
Parse module: failed to read rune: read /usr/share/snmp/mibs/iana: is a directory
Load error (skip): Could not load module at iana
Parse module: failed to read rune: read /usr/share/snmp/mibs/ietf: is a directory
Load error (skip): Could not load module at ietf
Parse module: /usr/share/snmp/mibs/ietf/DPI20-MIB:9:4: unexpected "ibm" (expected ";")
Load error (skip): Could not load module at DPI20-MIB
Parse module: /usr/share/snmp/mibs/ietf/HPR-MIB:494:30: unexpected "HprRtpCounter" (expected "}")
Load error (skip): Could not load module at HPR-MIB
Parse module: /usr/share/snmp/mibs/ietf/SNMPv2-PDU:73:1: unexpected "max-bindings" (expected "END")
Load error (skip): Could not load module at SNMPv2-PDU
Parse module: /usr/share/snmp/mibs/ietf/TCPIPX-MIB:63:12: unexpected "tcpIpxConnLocalPort" (expected "}")
Load error (skip): Could not load module at TCPIPX-MIB
ModuleTrees Error: Could not find module named iana
ModuleTrees Error: Could not find module named ietf
ModuleTrees Error: Could not find module named DPI20-MIB
ModuleTrees Error: Could not find module named HPR-MIB
ModuleTrees Error: Could not find module named SNMPv2-PDU
ModuleTrees Error: Could not find module named TCPIPX-MIB
Dump completed
とりあえず snmpwalk 直で叩いてみる
snmpwalk -v 1 -c public IP すると結果が来る
が、miburi 実行しても止まる。明日はここから