D
D
dzhikaev2015-07-14 21:35:56
linux
dzhikaev, 2015-07-14 21:35:56

How or what program to perform an action on all servers simultaneously via ssh?

there are several servers
, let's say 100
, and you need to enter a command in each via ssh .... this can take forever
, how can this be done simultaneously for all?

Answer the question

In order to leave comments, you need to log in

8 answer(s)
L
Lesha Kiselev, 2015-07-14
@Yakud

Ansible: www.ansible.com/home

V
Valery Ryaboshapko, 2015-07-14
@valerium

Absible, Chef, Puppet are all correct solutions. But I can still offer something like this crutch.

for i in `cat /list/of/servers`; do
    ssh $i 'ls -l'
done

This implies that all servers have access by key and the password for the key has already been entered.

S
Spetros, 2015-07-14
@Spetros

For example, like this habrahabr.ru/post/215111 or like this habrahabr.ru/post/163811
or man dsh

V
Viktor Vsk, 2015-07-14
@viktorvsk

1. See the ssh syntax to execute the command on the server
2. Copy this command line by line 100 times
3. Change the user\server in each line
4. Copy and paste into the terminal or save to a file and execute it

E
Ergil Osin, 2015-07-15
@Ernillew

dsh, as an
ansible solution, as a system solution.

E
Evgeny Bezymyannikov, 2015-07-15
@psman

pssh etc.

M
Mikhail Kobik, 2015-08-01
@nulled

gnu-parallel

T
teewee, 2015-09-30
@teewee

MTPUTTY. Plus solutions from the developer in the form of a mailer for all open tabs (or for all saved ones too).
As an option - Puppet, as a system management solution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question