时间:2021-07-01 10:21:17 帮助过:38人阅读
备注: 配置本机 snmp 编辑 snmp 配置文件 /etc/snmp/snmpd.conf 修改: com2sec notConfigUser defaultpublic 改为: com2sec notConfigUser 127.0.0.1public 修改: access notConfigGroup anynoauthexactsystemview none none 改为: access notConfigGro
备注:配置本机snmp
编辑snmp配置文件/etc/snmp/snmpd.conf
修改:
com2sec notConfigUser default public
改为:
com2sec notConfigUser 127.0.0.1 public
修改:
access notConfigGroup "" any noauth exact systemview none none
改为:
access notConfigGroup "" any noauth exact all none none
添加view systemview included .1
去掉这句的注释
#view all included .1 80
重启snmp服务并测试
#service snmpd restart
验证:snmpwalk -v 2c -c public localhost if