Man page for apt-get dsh Command
This tutorial shows the man page for man dsh in linux.
Open terminal with 'su' access and type the command as shown below:
Result of the Command Execution shown below:
dsh(1) Dancer Tools reference dsh(1)
dsh Distributed shell, or dancer's shell
dsh [ m machinename | a | g groupname] [ r remoteshellname] [ c | w | i | F forklimit ] commandline
dsh executes command remotely on several different machines at the same time. An utility to effectively do a for a in $(seq 1 10); do rsh $a command; done in
The options available are as follows.
verbose | v
Give verbose output of the execution process.
quiet | q
Makes output quieter.
machine | m [machinename[,machinename]*]
Adds machinename to the list of machines that the command is exeuted. The syntax of machinename allows username@machinename where remote shell is
invoked with the option to make it of username.
From version 0.21.4, it is possible to specify in the format of username@machinename,username@machinename,username@machinename so that multiple hosts
can be specified with comma delimited values.
all | a
Add all machines found in /etc/dsh/machines.list to the list of machines that the specified command is executed.
group groupname | g groupname
Add all machines found in /etc/dsh/group/groupname to the list of machines that the specified command is executed.
If groupname is on the form @netgroup then the machines in the given netgroup is used to specify the list of machines to execute on.
file machinefile | f machinefile
Add all machines found in the specified file to the list of machines that the specified command is executed.
The file should list one machine specification per line (with the same syntax as the machinename argument). Lines starting with "