iPerf 3 Workflow with JSON output

iPerf 3 Workflow with JSON output

I have been playing with iPerf3 for site to site bandwidth testing and have found out a number of interesting things like some firewalls (FortiGate) and NAS's (QNAP) can run an iPerf server endpoint and iPerf3 has a JSON output format. What I would like to do is create a workflow that I can trigger on demand to a particular site with one of the above end points to run a site to site bandwidth test.

I can envision the workflow being something like the following.

If the endpoint is listening on TCP port 5202 (default) then trigger a default 10 second iPerf test from the OpManager server to that endpoint and show the results.

While the QNAP iPerf server runs continually there may have to be an additional step to SSH into the FortiGate firewall and run the iPerf server.