linux的snmp开启步骤以及验证方法
1、修改snmpd文件
#vim /etc/snmp/snmpd.conf
确保有以下语句
com2sec notConfigUser default public
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
view systemview included .1
access notConfigGroup "" any noauth exact systemview none none
2、重启snmpd服务
# service snmpd restart
Stopping snmpd: [FAILED]
Starting snmpd: [ OK ]
3、检查snmpd服务是否已在运行:
# netstat -nlup | grep ":161" #netstat -anp |grep snmpd
udp 0 0 0.0.0.0:161 0.0.0.0:* 16986/snmpd
4、使用snmpwalk验证是否开启snmp
#snmpwalk -v 2c -c 团体字名 被监控主机ip