Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I stop iperf server when it finishes?

Once the client finishes the process is automatically closed. I would like to do the same thing in the server side, because I want to automatize some processes, but the server side finishes but remains open.

like image 638
Ander Galisteo Avatar asked Oct 05 '16 14:10

Ander Galisteo


People also ask

How do I end iPerf?

To stop the iPerf server process, press CTRL + c .

How do I kill iperf3 server?

In iperf3, you can just give the -1 parameter and it will close automatically. It only accepts one connection and it will exit when that is finished. Show activity on this post. In server side of iperf there is no -t option for time limitting.

How long does an iPerf test take?

The default test duration of Iperf is 10 seconds. You can override the default with the -t switch followed by the time in seconds the test should last.


1 Answers

use iperf option -t . So that it will stop after t seconds. Default iperf client timeout is 10 seconds. so it stops after that.

Try. Here both will stop after 10 seconds.

Server: iperf -s -t 10

Client: iperf -c <ipaddress> -t 10

like image 134
Rilwan Avatar answered Sep 21 '22 15:09

Rilwan