Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
/ mssh Public archive

A tool for running multiple commands and ssh jobs in parallel, and easily collecting the results

License

Notifications You must be signed in to change notification settings

szabado/mssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mssh

A tool for running commands over multiple servers via SSH in parallel, and easily collecting the results. This tool is based on Square's mssh but is written in Go instead of Ruby.

Usage

Usage:
  mssh [command] [flags]

Flags:
  -c, --collapse             Collapse similar output.
  -d, --debug                Debug output (DEBUG level).
  -f, --file string          List of hostnames in a file (/dev/stdin for reading from stdin). Host names can be separated by commas or whitespace.
  -h, --help                 help for mssh
      --hosts string         Comma separated list of hostnames to execute on (format [user@]host[:port]). User defaults to the current user. Port defaults to 22.
  -m, --maxflight int        Maximum number of concurrent connections. (default 50)
  -t, --timeout int          How many seconds may each individual call take? 0 for no timeout. (default 60)
  -g, --timeout_global int   How many seconds for all calls to take? 0 for no timeout. (default 600)
  -v, --verbose              Verbose output (INFO level).

Installation

Homebrew

  1. brew tap szabado/tools
  2. brew install szabado/tools/mssh

Build from source

This tool is built using Hermit, and fetches its own build tools as part of its build process. To build this from source:

  1. Download the source.
  2. Run ./bin/go build
  3. Put the resultant mssh binary in your PATH

About

A tool for running multiple commands and ssh jobs in parallel, and easily collecting the results

Resources

License

Stars

Watchers

Forks

Packages

No packages published