Parallel ssh
- parallel-ssh
- pip install parallel-ssh
examples/net/parallel_ssh.py
from pssh import ParallelSSHClient hosts = ['myhost1', 'myhost2'] client = ParallelSSHClient(hosts) output = client.run_command('ls -ltrh /tmp/', sudo=True)
from pssh import ParallelSSHClient hosts = ['myhost1', 'myhost2'] client = ParallelSSHClient(hosts) output = client.run_command('ls -ltrh /tmp/', sudo=True)