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

标签 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 -v2c -c public demo.snmplabs.com HOST-RESOURCES-MIB::hrSWRunTable

或者,您可以使用 -m ALL 预加载所有 MIB。选项。

关于ubuntu - 如何在 Ubuntu 中使用 snmp 检索 hrSWRuntable?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56253299/

相关文章:

c - 需要有关 fork 中 processIDs 的 2 个特定问题的帮助(在类似 unix 的系统上)-C 语言

excel - 如何通过VBA获取当前Excel实例的进程ID,而不使用标题?

c - Unix 套接字示例,编译器找不到 header

iphone - 如何最好地存储 SNMP 消息并将其发送到 ios?

ubuntu - Ansible apt 任务既升级软件包又删除未使用的软件包

php - 使用 PHP 生成 SNMP 陷阱

java - Java 的 MIB 编译器

C - fork() 和进程行为

ubuntu - WSL2 Golang 安装工具 : Permission denied

python - 为什么我的python安装2.7.6后还是显示2.7.3