i use this far too often not to have it saved here.
pop hosts into a file called hostfile
or similar.
set up ssh-agent (presuming your ssh keys are already set up)
eval $(ssh-agent)
ssh-add
for i in $(cat hostlist) ; do
./sshb $i 'echo "hello world!"'
done
gives output like
[performing echo "hello world!" on myserver]
hello world!
(return code: 0)
remember escapes, quoting, variable interpolation, et al.
also, those nice status bars are all printed on stderr. so if you don't want them, just 2>/dev/null