为什么我不能使用 snmptable 在 net-snmp 中搜索 mib 表?

问题描述

我知道这个 oid 是来自网络的表格,所以我尝试使用 snmptable,但它返回错误

scEnclFanTable 1.3.6.1.4.1.674.11000.2000.500.1.2.20

snmptable -c public -v 2c 192.168.1.10 1.3.6.1.4.1.674.11000.2000.500.1.2.20

enter image description here

当我使用walk时,结果好吗?我的命令有什么问题?

enter image description here

解决方法

文档对此相当清楚,

此外,snmptable 依赖于相关 MIB 文件可用(并加载),以便知道要检索哪些列。没有这个 MIB 就不可能运行它 - 即使使用了数字 OID(否则会很好)

http://net-snmp.sourceforge.net/wiki/index.php/TUT:snmptable

在您的情况下,您没有加载相关的 MIB 文档,因此 snmptable 按预期失败。