Shortnote

sshpt can be used to issue commands to a list of hosts over ssh. The advantage by contrast to other tools is that it allows to specify alternate ports and has an easy set-up.

sshpt requires that a host list is set-up, for example:

nova.vibe.info
globalhealth.vibe.info
biome.vibe.info
genome.vibe.info
repo.vibe.info
toothfairy.vibe.info
vibe.vibe.info

can be written to a file /etc/vibe_hostlist.txt.

Script

The following script is then used to send commands to all the hosts in /etc/vibe-hostlist.txt:

vibecmd
#!/bin/bash
CMD=$@
/usr/local/bin/sshpt.py -u opensim -P fbaaf25cd -p 5000 -f /etc/vibe_hostlist.txt "$CMD"

where:

Then by running:

vibecmd uptime

we get the output of uptime from all the hosts in the hosts list.