Pinging servers in a file

#for i in `cat /etc/hosts|awk {‘print $2’}`; do  ping -c3 $i; done;

SCP a file to all servers in a file

#for i in `cat /etc/hosts|awk {‘print $2’}`; do  scp /etc/hosts $i:/etc/; done;

Advertisements