fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to run tasks in parallel with different parameters?


From: Vasmi Abidi
Subject: How to run tasks in parallel with different parameters?
Date: Thu, 2 Dec 2021 22:31:50 -0800

Hi,
   How can I run commands in parallel on multiple remote targets, but with different parameters?
fabric version 2.6.0

Specifically, I want to run the following in parallel:
      on host1: "iperf3 -c 192.168.20.2"
      on host2: "iperf3 -c 192.168.20.3"

 With fabric1, I could do the above with env.host_data[env.host]
 How can I do it with fabric2?

result = ThreadingGroup(host1, host2, user=username, connect_kwargs=kw).run("iperf3 -c <dst_ip>")

Is there a way to pass in different values of <dst_ip> to host1 and host2?

thanks,
Vasmi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]