在Ubuntu 8.04安装设定snmpd笔记[@more@]
先安装snmpd与snmp套件
apt-get install snmpd snmp apt-get install snmpd snmp
修改/etc/snmp/snmpd.conf 設定檔 修改/etc/snmp/snmpd.conf设定档
# sec.name source community # sec.name source community
#com2sec paranoid default public #com2sec paranoid default public
com2sec readonly default qu2uZEGa com2sec readonly default qu2uZEGa
#com2sec readwrite default private #com2sec readwrite default private
設定syslocation 與syscontact设定syslocation与syscontact
syslocation Doggy Digital Creative Inc. IDC syslocation Doggy Digital Creative Inc. IDC
syscontact Will syscontact Will
修改/etc/default/snmpd 設定檔 修改/etc/default/snmpd设定档
如果你的snmpd 需要接受遠端來的連線,將127.0.0.1 部分移除如果你的snmpd需要接受远端来的连线,将127.0.0.1部分移除
# snmpd options (use syslog, close stdin/out/err). # snmpd options (use syslog, close stdin/out/err).
SNMPDOPTS= '-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid' SNMPDOPTS= '-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid'
啟動snmpd 服務 启动snmpd服务
/etc/init.d/snmpd start /etc/init.d/snmpd start
執行snmpwalk 查看設定值 执行snmpwalk查看设定值
snmpwalk -v 1 localhost -c qu2uZEGa system snmpwalk -v 1 localhost -c qu2uZEGa system
只要有許多結果輸出就代表咦髡?A恕
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9697/viewspace-1027261/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9697/viewspace-1027261/