Code: Select all
Linux centos7app2 3.10.0-327.36.2.el7.x86_64 #1 SMP Mon Oct 10 23:08:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Here is my cron job setting:
<CODE>
* * * * * /bin/ping -i 2 -c 30 172.16.43.129 >> /var/log/ping.log
59 23 1 * * rm /var/log/ping.log
</CODE>
172.16.43.129 is my default gateway IP, my local IP address is 172.16.43.132
Here I have attached my messages log and ping.log(used command to filter -- cat /var/log/ping.log | grep "packet loss")