The free network tool iperf is among the more easy-to-use on the Internet today. Rick Vanover shows some frequently used commands in iperf that you can use for quick network testing.
In last week's blog, I mentioned how iperf can be used for quick and easy network tests through the Java front-end applet, Jperf. In this week's blog, I want to go through a few handy use cases for iperf via the command line. Before we get too far into these examples, a quick tip to use for future reference is that if you can build your command in the Jperf gui to get the command syntax built instead of command-line iteration trial and error.
Start an iperf server process
The first command line that would be a keeper is used to start an iperf server listener process for client connection. This is shown with the command below:
iperf.exe -s -P 2 -i 5 -p 5999 -f k
Click to enlarge.
Start an iperf client connection
The other half of iperf is the client that will make the connection to a listener. To launch a client connection to a server named s-network1.amcs.tld using port 5999 (the non-default used in the previous example) for 60 seconds with a 5-second display interval, enter the following command:
iperf.exe -c s-network1.amcs.tld -P 1 -i 5 -p 5999 -f B -t 60 -T 1
Click to enlarge.
You can see where this is going, simply make a .bat file of your standard preferred test and fill in the server name for frequent tests. Iperf can be downloaded from theSourceForge Web site.
No comments:
Post a Comment