Link to home
Avatar of Member_2_7966113
Member_2_7966113

asked on

How to append an output to existing file with DOS and IPerf

Hello Experts,

In the attached batch file I would like to run the three iperf commands:

C:\Users\..\iperf-3.1.3-win32\iperf3 -c 192.168.1.129 -i 1 -t 60 -u -b 1M > iperf-3.csv
C:\Users\..\iperf-3.1.3-win32\iperf3 -c 192.168.1.129 -i 1 -t 60 -u -b 2M > iperf-3.csv
C:\Users\..\iperf-3.1.3-win32\iperf3 -c 192.168.1.129 -i 1 -t 60 -u -b 3M > iperf-3.csv

You will notice that the first iperf commands runs with 1M bandwidth, the second runs with 2M and the third runs with 3M. They all write to a file called iperf-3.csv.

The problem is when I run all three commands in a batch file only the last output from the, C:\Users\..\iperf-3.1.3-win32\iperf3 -c 192.168.1.129 -i 1 -t 60 -u -b 3M > iperf-3.csv is included in the iperf3-.csv file.

Can someone show me how to configure the batch file so that all three outputs are included in the output file 'iperf-3.csv'.

Thank you

Regards
bandwidthtest.zip
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Member_2_7966113
Member_2_7966113

ASKER

Great. Thanks