vi /etc/snmpd.conf
get-community-name: public修改3个自启动文件
/etc/rc.config.d/SnmpMib2
/etc/rc.config.d/SnmpHpunix
/etc/rc.config.d/SnmpMib2
将各个文件尾部SNMP_XXX_START=0改为1停止并启动相关服务
停止:
/sbin/init.d/SnmpHpunix stop
/sbin/init.d/SnmpMib2 stop
/sbin/init.d/SnmpMaster stop
启动:
/sbin/init.d/SnmpMaster start
/sbin/init.d/SnmpMib2 start
/sbin/init.d/SnmpHpunix start