0

How to trigger a script on many remote machines?

I have about Debian machines that have a script installed (it downloades data from dropbox). I have to trigger that script to run from remote at all machines at once (or one after another).

I've seen that you can run a script via ssh but I need to do it at 100 machines so loging in 100 times is rather not acceptable.

Community
  • 1
  • 1
Marian Paździoch
  • 8,813
  • 10
  • 58
  • 103

2 Answers2

0

Setup a Jenkins CI instance.

  1. Add all machines as build nodes and tag them (same tag for all nodes )
  2. Configure one build job which executes your script and set the execution node to the chosen tag
  3. Now you can easily add or remove nodes as well as changing the execution
urbiwanus
  • 713
  • 5
  • 21
0

You might want to look into MuSSH (http://sourceforge.net/projects/mussh/), Fabric or even salt, ansible etc...

Gekkie
  • 996
  • 9
  • 24