Setup dsh and dcp

dsh is an extension of ssh which allows you to run commands in parallel on a number of serves at once.
To set up dsh to work, first set the following variables:

export DSH_LIST=/etc/dsh.hosts
export DSH_NODE_RSH=/usr/bin/ssh
export DSH_NODE_RCP=/usr/bin/scp
export DCP_DEVICE_RCP=/usr/bin/scp
export DCP_NODE_RCP=/usr/bin/scp

/etc/dsh.hosts is just a list of fully qualified host names.

Also, pipe your dsh results into ‘dshbak -c’ and it will organize them nicely for you.

Leave a Reply

Your email address will not be published. Required fields are marked *