How to Run Multiple Ping Commands in Parallel

0 Comments
Editor Ratings:
User Ratings:
[Total: 5 Average: 3.4]




This tutorial explains how to run multiple ping commands in parallel. You will be able to specify multiple web addresses or IP addresses that you want to ping, as well as you will be able to specify how many packets to send to each.

To achieve this, we will use a free software called MParallel. It is a Parallel Batch Processor Software. This is a command line software. Using this software, you can type all the ping commands on the command line, or you can even add them to a text file.

mparallel main

How to Run Multiple Ping Commands in Parallel:

First of all download this freeware in ZIP format from this link. Extract the contents to any folder and open the “ETC” folder from extracted folder. Here you will find the “MParallel.exe“. Now run the command window here (Click Shift + Right click on empty space >> Click on “Open Command Window Here”) and use any of the following method to run multiple ping commands in parallel.

You can batch ping multiple web addresses in one single command.

In the first example, let’s ping 2 websites in parallel. See the following command for that:

MParallel.exe --count=2 ping.exe -n 5 google.com : ping.exe -n 2 bing.com

In the command above, -n represents the number of packets to be sent to the particular web address. So, I am sending 5 packets to Google, and 2 to Bing.

(– count represents number of parallel instances of Mparallel that we want to run. To ping 2 websites in parallel, I have chosen to run 2 instances).

direct commands

In this second example you can write the ping commands in TXT file and call it from “MParallel.exe” command prompt.

You can write the multiple commands in single text file. You can call the ping commands written in this text file using MParallel.exe from the command prompt. For e.g. you can write the following example commands in the TXT document, as shown.

The content of “web.txt”:

ping.exe -n 5 google.com

ping.exe -n 8 bing.com

Now save this text file with any name in the same location where you extract the “MParallel.exe”. For e.g. the above text file is saved as “web.txt” in the same location where the “MParallel.exe” is, i.e. “in ETC folder”.

Open the command prompt and type the following command to call all the commands written in the TXT file.

MParallel.exe --count=2 --input=web.txt

When you run the above command, it will ping all the websites, and will show the response from them. See the screenshot below:

commands in text file

It pings the said web address for “n” number of times you set in the command. For example, in the above example bing.com is pinged 8 times, while google.com is pinged 5 times.

You can easily view the statistics of ping command on your screen that how many packets the ping command sent to the particular web address. It also shows received and lost packets.

You will get the Round Trip Time taken by Packets for sending and receiving for multiple addresses in Minimum, Maximum, and Average in milli-seconds on your output screen.

You will get the same output as in first example, but the benefit is that you can change any parameter in the input text file by using any text editor like Notepad.

You can also try Colasoft Ping Tool and WinPing software.

Final Words:

This is a pretty good tool that makes it very easy to run multiple ping commands in parallel, and ping multiple websites or IP addresses. The fact that it is totally free is a very nice icing on the cake.

You can get this freeware from here.

Know some other software that can run multiple ping commands in parallel? Let me know in the comments below.

Editor Ratings:
User Ratings:
[Total: 5 Average: 3.4]
Works With: Windows
Free/Paid: Free

Leave A Reply

 

Get 100 GB FREE

Provide details to get this offer