GithubHelp home page GithubHelp logo

test-mass-forker-org-1 / paramgmt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from google/paramgmt

0.0 0.0 0.0 44 KB

A parallel SSH-based remote machine management system

License: Apache License 2.0

Shell 13.50% Python 86.50%

paramgmt's Introduction

ParaMgmt - Parallel Management

Disclaimer

This is not an official Google product. This project was created by Nic McDonald at Google.

Summary

ParaMgmt is a python package designed to ease the burden of interacting with many remote machines via SSH. The primary focus is on parallelism, good error handling, automatic connection retries, and nice viewable output. The abilities of ParaMgmt include running local commands, running remote commands, transferring files to and from remote machines, and executing local scripts on remote machines. This package includes command-line executables that wrap the functionality provided by the Python package.

Install

ParaMgmt is compatible with both Python2.7+ and Python3.x. I personally recommend Python3, so the following installation example will be for that. If you insist on using Python2, substitute pip3 with pip2 and python3 with python2. If you want ParaMgmt installed in both, install it in Python2 then in Python3. The command-line executables will then use the latter. The installer requires the setuptools package.

Both installations methods below will install a Python package called paramgmt as well as 6 command-line executables: rhosts, lcmd, rcmd, rpush, rpull, and rscript.

Python package manager (PIP)

Install globally:

sudo pip3 install git+https://github.com/google/paramgmt.git

Install locally:

pip3 install --user git+https://github.com/google/paramgmt.git

Source installation

Install globally:

sudo python3 setup.py install

Install locally:

python3 setup.py install --user

Uninstall

The following command will uninstall the paramgmt Python package and the command-line executables.

sudo pip3 uninstall paramgmt

Test

Create a hosts file

cat<<EOF >> hosts.txt
tux.penguin.com
myserver
192.168.200.2
EOF

This command tests the paramgmt Python package.

python3 -m paramgmt -f hosts.txt -r 3

This command tests the command-line executables.

test/test.sh hosts.txt 3

Usage

Tutorial here: https://nicisdigital.wordpress.com/2015/06/23/paramgmt-interacting-with-thousands-of-servers-over-ssh-part-1/

paramgmt's People

Contributors

nicmcd 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.