Continuous ping: how to use the continuous ping command?
Tools 2020-06-21 23:34:14
[if IE 9]>
Continuous ping under Windows, Linux and MacOS Windows, Linux and MacOS offer you all Ping as a network administration tool. We already told you about the ping command in one of our articles. In addition to this article, we would like to explain below how to use the continuous ping command . Summary "> Continuous ping under Windows, 7, 8 and 10 Continuous ping with Linux Continuous ping under MacOS Continuous ping on Windows, 7, 8 and 10 In the Windows environment, Ping sends by default four data packets to a remote computer whose identity you specify, either by its IP address or by the host name. If you want to test the connection between two computers permanently, you have the option "Continuous pinging . Proceed as follows to launch a continuous ping withec Windows 7, 8 or 10 . Step 1 : Open the Windows command prompt window. To do this, use the Windows + R key combination, and execute the CMD command. Step 2: then type the ping function, followed by the -t option and an IP address of your choice, before confirming everything with the [Enter] key. ping -t 126.96.36.199 Windows will then launch a continuous ping which it will loop. [if IE 9]> "style = " max- height: 400px; max-width: 99 %; ">
Ping continuously from a Wind computerows towards the IP address 188.8.131.52 For each incoming response packet, Ping registers an entry in Standard output (stdout) . If you have not set it up otherwise, this information is displayed directly in the terminal. Among the information collected, you have the IP address of the computer queried, the size of the return packet indicated in bytes, the response time in milliseconds (ms), as well as the TTL (Lifetime). Echo requests are sent every second to the remote computer, until you stop the program using the [SHIFT] + [C] keys. If you quit the Ping program, it will give you a summary of information (Ping statistics). [if IE 9]> " style = "max- height: 400px; max-width: 99%; ">
As soon as you stop the continuous ping using the keys [SHIFT] + [C], the program displays the ping statistics in the terminal console. If you wish, you can save this data in a text file. To do this, simply add the upper sign, followed by the name of the text file with its file extension. ping -t 93.184.216.p> logfile.txt If there is no file with this name, it will be created automatically.ple shown above, the ping test result is redirected to a .txt file, named logfile. This text file contains the information concerning the incoming data packets, as well as the statistics related to the ping test. [if IE 9]>
Redirect if you wish all the results of the continuous ping test towards a text file. Tip You will find an overview of the main CMD commands
in our reference article on the Windows prompt window. Continuous ping With linux With Linux, the Ping command line is configured default for looping . To execute the continuous ping command with Linux, proceed as follows. Step 1: open the console of your Linux distribution, for example under Ubuntu by typing [SHIFT] + [ALT] + [T] (Genome, KDE). Step 2: type the ping command followed by the address of the remote computer in the command line, and press the [Enter] key to confirm. ping 184.108.40.206 [if IE 9]>
Ping continuously from a Linux computer to the IP address 220.127.116.11 redirecting test results to a text file is done with Linux exactly as with Windows. ping 93.184.216.p> logfile.txt If you want to have the results of continuous ping with time stamp, use the command with the -D option. In this case, each response file will be preceded by a UNIX timestamp. ping -D 93.184.216.p> logfile.txt [if IE 9]>
Log file for continuous ping with UNIX timestamp If you do not want to loop ping under Linux, you must specify the number of pings using the -c option as shown in the example below . Ping -c 4 18.104.22.168 The remote computer with the IP address 22.214.171.124 is interrogated preciselynt four times before the program stops by itself. Advice You will find an presentation of the main Linux commands
in an article that we devote to the Linux console. Continuous ping on MacOS In a MacOS environment, the ping command line is also executed by continuous ping by default. Proceed from the following way to launch a continuous ping command with MacOS. Step 1: open the terminal. You will find the Mac terminal in the "Applications in the sub-folder" Utilitair Step 2: Execute the ping command with the address of the remote computer. ping 126.96.36.199 [if IE 9]> "style = " max- height: 400px; max-width: 99 %; ">
Continuous ping under MacOS performed on the IP address 188.8.131.52 figcaption > In a MacOS environment, the results are displayed in the same way as with Linux and Windows. ping 93.184.216.p> logfile.txt To run a ping test with a number of requests d specific echo, use as for Linux the ping command followed by the -c option. Ping -c 4 184.108.40.206 Note For more information on the ping command under Windows, Linux and MacOS, refer to the manual of your operating system To display the page of the user guide devoted to this command line, type the command man ping in the terminal.