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
* iperfCiscoNetworkingMicrosoft DOS

Avatar of undefined
Last Comment
Member_2_7966113

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
oBdA

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Member_2_7966113

ASKER
Great. Thanks
Your help has saved me hundreds of hours of internet surfing.
fblack61