Write a remote handling manuscript
I would certainly make use of ssh with key verification, I think ssh has a means to see to it that particular accounts can just visit from particular IP's so I would certainly restrict it to that due to the fact that you could not intend to set a passphrase on the keys (you can make use of a key supervisor to stay clear of that yet it has constraints also)
Personally, I would certainly make use of Capistrano. It's pleasant and also created in Ruby and also they currently did every one of the hefty training for you.
From Wikipedia :
Capistrano is an energy and also structure for implementing commands in parallel on numerous remote equipments, using SSH.
What concerning making use of arrangement monitoring like puppet or chef? This is possibly a little over the top for just one manuscript, yet if you require numerous such manuscripts it could be worth to take into consideration.
A quickie bash 'for' loop could be most convenient, probably something like :
for h in host1 host2 host3
do
echo $h
ssh [email protected]$h "ps -ef"
done
Certainly, cfengine/puppet/chef/ capistrano are far better arrangement monitoring alternatives. If you intended to interactively send commands to the numerous coverings, clusterm (http :// sourceforge.net/projects/clusterm/) is a strong selection also.
Puppet and also Chef are "draw" systems and also I've located that a corresponding "push" system applied making use of Capistrano, Fabric, or ssh
(1) in a for
- loop is essential. Certainly, that suggests public type in area for verification, also ; the good news is, those can be taken care of by Puppet or Chef.
I have actually been rather satisfied with a covering script called dssh.sh
that makes use of ssh
to connect with several equipments all at once. It can execute the very same command throughout great deals of equipments all at once and also await them all to exit prior to returning. To download and install and also discover more concerning it, the most effective reference I have actually located is the BASH Cures Cancer blog.
Related questions