如何在Ubuntu中使用snmp检索hrSWRuntable?

如何在Ubuntu中使用snmp检索hrSWRuntable?,ubuntu,snmp,pid,pysnmp,oid,Ubuntu,Snmp,Pid,Pysnmp,Oid,我刚刚在我的机器上安装了snmp,使用 apt-get install snmp 我想检索hrSWRuntable,所以我使用了这个命令 snmptable -v2c -c public 104.236.166.95 hrSWRunTable 但我收到了这个错误 hrSWRunTable: Unknown Object Identifier (Sub-id not found: (top) -> hrSWRunTable) 尝试引用包含该MIB对象的MIB: snmptable -v

我刚刚在我的机器上安装了snmp,使用

apt-get install snmp
我想检索hrSWRuntable,所以我使用了这个命令

snmptable -v2c -c public 104.236.166.95 hrSWRunTable
但我收到了这个错误

hrSWRunTable: Unknown Object Identifier (Sub-id not found: (top) -> hrSWRunTable)

尝试引用包含该MIB对象的MIB:

snmptable -v2c -c public demo.snmplabs.com HOST-RESOURCES-MIB::hrSWRunTable
或者,您可以使用
-m all
选项预加载所有MIB