Skip to main content

Wrapper library over paramiko to allow remote execution of tasks. Supports parallel execution on multiple hosts

Project description

parallel-ssh
============

Small wrapper library over paramiko that allows for parallel execution of SSH commands on remote hosts and executing simple single host commands over SSH

.. image:: https://api.travis-ci.org/pkittenis/parallel-ssh.png?branch=master
:target: https://travis-ci.org/pkittenis/parallel-ssh

************
Installation
************
To install gevent you need the libevent-dev package installed. Instructions below are for apt-get systems, substitute with your own package manager if necessary.

::

$ sudo apt-get install libevent-dev
$ pip install parallel-ssh

************
Usage Example
************

>>> from pssh import ParallelSSHClient
>>> hosts = ['myhost1', 'myhost2']
>>> client = ParallelSSHClient(hosts)
>>> cmds = client.exec_command('ls -ltrh /tmp/aasdfasdf', sudo = True)
>>> print [client.get_stdout(cmd) for cmd in cmds]

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parallel-ssh-0.2.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file parallel-ssh-0.2.tar.gz.

File metadata

  • Download URL: parallel-ssh-0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for parallel-ssh-0.2.tar.gz
Algorithm Hash digest
SHA256 d0ac446977ecc59bc64a5915fc52c4f177189ad64a839b9ebcd361459993fd3e
MD5 746ea512cf1b8dc2952eabd6aeb50e8d
BLAKE2b-256 8ad452dc59d0a8974d73c608a97f4b4e14ecc0f4f22c4bc8a811ba9d75ab1ebb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page