Multiple Server

for i in `cat server`
do
ipaddr=`ssh $i ifconfig -a |grep -Ev "inet6|127.0.0.1" |grep inet |awk '{print $2}'`
echo $i,$ipaddr
done
Advertisements