#!/bin/bash
for i in `cat host.list`
do
echo "##############################$i############################" >>scp.log
scp /var/net-snmp-5.6.zip "$i":~/
scp snmpd.conf "$i":/etc/
ssh "$i" 'pkill -9 snmp;unzip net-snmp-5.6.zip ; cd net-snmp-5.6 ;./configure --prefix=/usr/local/net-snmp --enable-developer ; make ; make install ; /usr/local/net-snmp/sbin/snmpd -c /etc/snmpd.conf'
done
阅读(719) | 评论(0) | 转发(0) |