pingi is a command line tool which is able to measure continuously the ping reply time.
The user has the possibility to choose the ping destination address or ip -d
, the ping
interval -i
in seconds and the file path -o
containing the detailed ping
measure records. In the following example, the script sends every 0.5 seconds a ping to the host www.srf.ch
.
The detailed results can be found in the file abcd.csv
.
> python pingi.py -d "www.srf.ch" -i 0.5 -o abcd.csv
pingi: www.srf.ch , interval [s]: 0.5
.......... 22:12:58 -> Success rate = 100.0 , Avg. ping reply [s] = 0.04225916862487793
.......... 22:13:04 -> Success rate = 100.0 , Avg. ping reply [s] = 0.039688634872436526
.......... 22:13:09 -> Success rate = 100.0 , Avg. ping reply [s] = 0.03984115918477376
...
After every 10th ping, the program prints an intermediate (trivial) statistic.
The script can be stopped by pressing the key q
.