Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

denis-sokolov/multi-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

multi-ssh

Code Climate bitHound Score Codacy Badge Dependency Status

Run the same command on multiple servers. Authentication is left for your ssh client, presumably your passwordless authentication is set up.

CLI

The output from various servers will be nicely colored per server.

$ multi-ssh server1 server2 -- uname -a
server1: 30973
server2: 9869

API

var multiSsh = require('multi-ssh');

multiSsh(['server1', 'server2'], ['uname', '-a'])
    .on('step', function(server, stdout){
        console.log(server, 'finished with', stdout);
    })
    .on('step-error', function(server, stderr){
        console.warn(server, 'failed with', stderr);
    })
    .on('error', function(err){
        throw err;
    })
    .on('end', function(){
        console.log('Everybody done.');
    });

About

Run the same command on multiple servers.

Resources

Stars

Watchers

Forks

Packages

No packages published