SNMP V2简单设置

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 <[email protected]>"
dontLogTCPWrappersConnects yes


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


2018.06.26

猜你喜欢

转载自blog.51cto.com/144432/2132687