我用 yum 在 centos 7 上安装了 net-snmp:
yum install net-snmp
我配置了 /etc/snmp/snmpd.conf 文件以查看所有 oid 树:
#Make at least snmpwalk -v 1 localhost -c public system fast again.
# name incl/excl subtree mask(optional)
#view systemview included .1.3.6.1.2.1.1
#view systemview included .1.3.6.1.2.1.25.1.1
view all included .1 80
当我点击 snmpwalk 命令时:
snmpwalk -v 1 -c public 127.0.0.1
它有效,但我想搜索一个特定的 oid,它是:
snmpwalk -v 1 -c public 127.0.0.1 iso.3.6.1.4.1.8711.101.28.1.2.7.20.40.30.10
snmpwalk 不返回结果。
如何将此 oid 添加到 oid 树中?