在Linux 8.0版本及8.0 以上版本,可以使用 SNMP 的最新版本,只需在 snmpd.conf 文件中做以下修改:
在
# name incl/excl subtree mask(optional)
行后插入
view allview included .1.3.6
将
# group context sec.modelsec.level prefix read write notif
以后的行
lineaccess notConfigGroup "" any noauth exact systemview none none
改为
access notConfigGroup "" any noauth exact allview none none
然后使用以下命令重启 snmp 代理:
/etc/rc.d/init.d/snmpd restart
其他版本的snmp代理的配置方法如下:
http://www.adventnet.com.cn/faq/Opm-Q&A/snmp_installation/conf_snmp_agents.html#snmp_conf_xp_2k
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/312079/viewspace-245722/
,如需转载,请注明出处,否则将追究法律责任。