-
Notifications
You must be signed in to change notification settings - Fork 152
-
In parallel you can introduce a hostrange with {n..N} in the name or ip address
In ansible one can introduce ranges with [n:N] in the name or ip address
Is this possible in parallel-ssh? What is the syntax?
Beta Was this translation helpful? Give feedback.
All reactions
Thanks for the interest.
No. Generate the host list in python.
hosts = [f"192.168.1.{x}" for x in range(1,10)]
client = ParallelSSHClient(hosts)
Replies: 1 comment 2 replies
-
Thanks for the interest.
No. Generate the host list in python.
hosts = [f"192.168.1.{x}" for x in range(1,10)]
client = ParallelSSHClient(hosts)
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Thanks for your quick response, apparently backticks are accepted, which is also cool, see screenshot.
But I dont get the output
Beta Was this translation helpful? Give feedback.
All reactions
-
No idea what's been shown there. parallel-ssh
cmd line script does not come from this project.
If you have a question or a bug, please make a new question or raise an issue that shows some python code using this library.
There are no restrictions in what the cmd can be in the library.
Beta Was this translation helpful? Give feedback.