Git Product home page Git Product logo

mssh's Introduction

mssh, mcmd

Tools for running multiple commands and ssh jobs in parallel, and easily collecting the result

Usage

mssh -r host01,host02,host03 "uname -r" -c

Usage: mssh [options]
    -r, --range RANGE                Requires a configured Range::Client. Use --hostlist if you do not use range
        --hostlist x,y,z             List of hostnames to execute on
    -f, --file FILE                  List of hostnames in a FILE use (/dev/stdin) for reading from stdin
    -m, --maxflight 50               How many subprocesses? 50 by default
    -t, --timeout 60                 How many seconds may each individual process take? 0 for no timeout
    -g, --global_timeout 600         How many seconds for the whole shebang 0 for no timeout
    -c, --collapse                   Collapse similar output 
    -v, --verbose                    verbose 
    -d, --debug                      Debug output
    

Installing

mssh is a rubygem: gem install mssh. http://rubygems.org/gems/mssh

BUGS/TODO

  • Optionally Incorporate stderr into -c, with $?
  • allow commandline manipulation of ssh args
  • factor out redundancy between bin/mssh and bin/mcmd (cli module?)
  • incorporate range / foundation lookup syntax for -r
  • json output mode
  • to-file output mode
  • lots of rough spots, not super slick yet
  • needs testing real bad. 0.1 release

mssh's People

Contributors

brianip avatar cuzelac avatar eam avatar elkhanzade avatar grierj avatar jackdanger avatar jakewharton avatar jcesario avatar syamp avatar xaviershay avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.