// just run this script and put whatever commands you want after it.. eg
// script.sh uname -a
// and it will execute 'uname -a' on all the listed hosts. make sure you setup
// ssh keys so you don't have to type in a bunch of passwords.
#!/bin/bash HOSTLIST="web2 web3 web4 vm1 dev" USER="mylogin" for H in $HOSTLIST; do echo -n "$H: " && ssh $USER@$H $* done