Questions tagged [parallel-ssh]

19 questions
0
votes
1 answer

Python parallel-ssh run_command does not timeout when using pssh.clients

I have the following code: from pssh.clients import ParallelSSHClient #------------------------------------------------- hosts = [ IP1, IP2, ... IPn] host_config = { dict containing userid & passwd for each host } clients =…
Gopal
  • 7
  • 4
0
votes
2 answers

how to execute and monitor a long-running process remotely and view output before completion

how can I execute a process on a remote machine and view the standard output before the process exits? ssh is ideal but only reports output once the remote command has completed. an example python script like this: #!/usr/bin/python3 import…
Marc Compere
  • 290
  • 4
  • 17
0
votes
3 answers

How to execute 'su' command using parallel-ssh

I want to log in to two hosts using parallel-ssh and execute su command. Then I want to confirm that I am the root user by printing out whoami Code: hosts = ['myHost1', 'myHost2'] client = ParallelSSHClient(hosts, user='myUser',…
kukis
  • 4,489
  • 6
  • 27
  • 50
0
votes
1 answer

Parallel-SSH - how to close ssh channel after a certain time?

Ok, so it's possible that the answer to this question is simply "stop using parallel-ssh and write your own code using netmiko/paramiko. Also, upgrade to python 3 already." But here's my issue: I'm using parallel-ssh to try to hit as many as 80…
1
2