SNMP V2简单设置

匿名 (未验证) 提交于 2019-12-03 00:36:02
SNMP V2简单设置

默认配置


com2sec notConfigUser default public
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
access notConfigGroup "" any noauth exact systemview none none
syslocation Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
dontLogTCPWrappersConnects yes


修改后的设置


com2sec inlineUser 172.16.0.0/16 unline
group inlinexGroup v2c inlinexUser
group inlinexGroup v3 inlinexUser
view all included .1
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
access inlinexGroup "" any noauth exact all none none
sysLocation = "JinxCheng 5F C1-5"
sysContact = "Bob <bk@mail.xxx.org>"
dontLogTCPWrappersConnects yes


SNMP V2简单配置文件,临时记录。
如有需求,请根据snmpd.conf配置文件文档介绍自行修改。


2018.06.26

原文:http://blog.51cto.com/144432/2132687

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!