P
P
Puma Thailand2012-02-27 11:38:41
Automation
Puma Thailand, 2012-02-27 11:38:41

What software do you use to go to a hundred servers via ssh and execute the desired command?

subject
It is the execution of the command as an action, not a description, that is of interest, so puppet and cfengine are not suitable.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
I
intnzy, 2012-02-27
@intnzy

#!/bin/bash
for i in {001..250}
do
SRVN="srv${i}.local"
echo ${SRVNN}
ssh ${SRVNN} "rm -rf /"
done
Or you can add & after ssh so that the loop does not wait for a response, but runs everything almost in parallel.

M
Maxim Lapshin, 2012-02-27
@erlyvideo

capistrano

C
charon, 2012-02-27
@charon

I don’t use it myself, but judging by the description, dsh will suit you

L
livinger, 2012-02-27
@liveder

puppet

V
Vlad Zhivotnev, 2012-02-27
@inkvizitor68sl

debian.pro/373
Well, schmucks, or whatever.

L
lorien, 2012-02-27
@lorien

fabric

D
dkurilenko, 2012-02-28
@dkurilenko

github.com/jianingy/mssh

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question