About¶ ↑
Do This On That (dtot) sequentially runs plain shell commands on one or more hosts in the specified order. You need SSH public key authentication already setup on the target hosts. You can run a single command across multiple hosts by running dtot from the command line with arguments, or you can feed dtot a list of commands and hosts by using some helper files. See the Usage section below for more information.
Usage¶ ↑
install dtot
dtot --help
Specify commands followed by multiple hosts to run commands, sequentially, on all hosts in specified order. Uses the currently logged in, local user as the username on the target systems.
-c uptime,w,"ls -lah /" -w host1,host2,host3
dtot -c "sudo yum update -y" -w host1,host2
Or, use “do this” and “on that” files:
dtot -d do_this.txt -o on_that.txt
do_this.txt¶ ↑
Each command should be on one line; commands are run sequentially, not in parrallel (by design). See the example do_this.txt in the examples directory of this repository.
on_that.txt¶ ↑
On each line put the username with access followed by a space and then the hostname. You should have public key authentication already setup on the host for the user specified. See the example on_that.txt in the examples directory of this repository.