apt-get install snmpd
cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak
nano /etc/snmp/snmpd.conf
找到以下這行,前面加上#
#view systemview included .1.3.6.1.2.1.25.1.1
新增以下這行
view systemview included .1
新增三行
rocommunity public
syslocation "Taipei, Taiwan"
syscontact indychou@gmail.com
Ubuntu的系統還要再安裝mib download
apt-get -y install snmp-mibs-downloader
重啟snmpd服務
/etc/init.d/snmpd restart
確認:
netstat -auntp | grep snmp
snmpwalk -c public -v 2c 192.168.1.1 (IP 自己改)
沒有留言:
張貼留言