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
.
The following script is then used to send commands to all the hosts in /etc/vibe-hostlist.txt
:
#!/bin/bash CMD=$@ /usr/local/bin/sshpt.py -u opensim -P fbaaf25cd -p 5000 -f /etc/vibe_hostlist.txt "$CMD"
where:
opensim
is the user to connect to via ssh
.fbaaf25cd
is the password.5000
is the port numberThen by running:
vibecmd uptime
we get the output of uptime
from all the hosts in the hosts list.
For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.