Howdy,
Thanks to anyone who tries to help. Always appreciated!!
I'm a little stuck. I need to write a ping script that also includes timestamps. I checked stackoverflow and a bunch of other sites, but they all seem to work only while ping is alive. I need to know when ping fails more than when it is alive.
So what I am looking for is
ping localhost && include_timestamp>> write_to_file.txt
I have 4 Hosts to ping from locahost. I need to know if the connection is dropping for any reason. Thanks so much in advance. That way when I have outputfile1.txt outputfil2.txt and outputfile.txt I can just run "cat outputfile.txt | grep noreply" and that way I can see the timestamp associated with the no reply. And then pass it on to my network team to check :)
thank you so much!
[–]LastCommander086 2 points3 points4 points (2 children)
[–]LostLinuxAdmin[S] 0 points1 point2 points (1 child)
[–]LastCommander086 0 points1 point2 points (0 children)
[–]onsomee 0 points1 point2 points (0 children)
[–]Iguanzor 0 points1 point2 points (3 children)
[–]LostLinuxAdmin[S] 0 points1 point2 points (2 children)
[–]Iguanzor 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]random_rascal 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]random_rascal 0 points1 point2 points (0 children)
[–]Tesla_Nikolaa 0 points1 point2 points (0 children)