execute multiple commands on multiple servers from the shell command line

for i in host{1,2,3}.{east,west}.serverdomain.net;do ssh -t $i ‘for i in this that;do ls $i;done’;done

Advertisements