{"id":184,"date":"2020-01-10T20:53:01","date_gmt":"2020-01-10T19:53:01","guid":{"rendered":"http:\/\/www.project34.net\/?p=184"},"modified":"2020-01-10T20:53:01","modified_gmt":"2020-01-10T19:53:01","slug":"ping-with-timestamp","status":"publish","type":"post","link":"https:\/\/www.project34.net\/index.php\/2020\/01\/10\/ping-with-timestamp\/","title":{"rendered":"Ping with timestamp"},"content":{"rendered":"<p>I&#8217;m having issues with my internet connection lately. My modem seems to reset it self from time to time. It can work days without issues and then it starts to reset\u00a0a couple of times without any warning.<\/p>\n<p>The internet provider sees nothing wrong with the modem. A mechanic needs to come by, but until then i want to be able to monitor the device.<\/p>\n<p>I&#8217;ve installed LibreNMS to monitor my connection. Every 5 minutes it checks by sending a ping to the router and another test is to ping 8.8.8.8 (one of the dns servers of google). It works like a charm. But sometimes the\u00a0modem is restarted within 5 minutes. When i&#8217;m behind my PC i&#8217;ve started to run the ping command, and that works fine, only one thing annoyed me: I can&#8217;t see when the ping command tries to send an ping to the devices.<\/p>\n<p>Thanks to the blog of:\u00a0https:\/\/www.raymond.cc\/blog\/timestamp-ping-with-hrping\/, i&#8217;m running\u00a0a ping command preceded with a time stamp:<br \/>\nPing From PowerShell:<\/p>\n<pre class=\"lang:ps decode:true\">Ping.exe -t\u00a0192.168.178.1 | ForEach {\u201c{0} \u2013 {1}\u201d -f (Get-Date),$_}\r\nPing.exe -t\u00a08.8.8.8 | ForEach {\u201c{0} \u2013 {1}\u201d -f (Get-Date),$_}\r\n<\/pre>\n<p>With this you get something like this:<\/p>\n<pre class=\"lang:batch decode:true \">1\/10\/2020 8:51:05 PM \u2013 Reply from 8.8.8.8: bytes=32 time=19ms TTL=55\r\n1\/10\/2020 8:51:06 PM \u2013 Reply from 8.8.8.8: bytes=32 time=11ms TTL=55\r\n1\/10\/2020 8:51:07 PM \u2013 Reply from 8.8.8.8: bytes=32 time=12ms TTL=55\r\n1\/10\/2020 8:51:08 PM \u2013 Reply from 8.8.8.8: bytes=32 time=12ms TTL=55\r\n1\/10\/2020 8:51:09 PM \u2013 Reply from 8.8.8.8: bytes=32 time=21ms TTL=55\r\n1\/10\/2020 8:51:10 PM \u2013 Reply from 8.8.8.8: bytes=32 time=28ms TTL=55\r\n1\/10\/2020 8:51:11 PM \u2013 Reply from 8.8.8.8: bytes=32 time=11ms TTL=55<\/pre>\n<p>That works like a charm!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m having issues with my internet connection lately. My modem seems to reset it self from time to time. It can work days without issues and then it starts to reset\u00a0a couple of times without&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40],"tags":[],"class_list":["post-184","post","type-post","status-publish","format-standard","hentry","category-powershell"],"_links":{"self":[{"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/posts\/184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/comments?post=184"}],"version-history":[{"count":2,"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/posts\/184\/revisions"}],"predecessor-version":[{"id":186,"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/posts\/184\/revisions\/186"}],"wp:attachment":[{"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/media?parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/categories?post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.project34.net\/index.php\/wp-json\/wp\/v2\/tags?post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}