<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Powershell</title>
	<atom:link href="https://www.project34.net/category/software/powershell/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.project34.net</link>
	<description></description>
	<lastBuildDate>Fri, 10 Jan 2020 19:53:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Ping with timestamp</title>
		<link>https://www.project34.net/2020/01/10/ping-with-timestamp/</link>
		
		<dc:creator><![CDATA[Maikel]]></dc:creator>
		<pubDate>Fri, 10 Jan 2020 19:53:01 +0000</pubDate>
				<category><![CDATA[Powershell]]></category>
		<guid isPermaLink="false">http://www.project34.net/?p=184</guid>

					<description><![CDATA[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 a couple of times without any warning. The internet provider sees nothing wrong with the modem. A mechanic needs to come by, but until then&#8230;]]></description>
										<content:encoded><![CDATA[<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 a couple of times without any warning.</p>
<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>
<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 modem 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>
<p>Thanks to the blog of: https://www.raymond.cc/blog/timestamp-ping-with-hrping/, i&#8217;m running a ping command preceded with a time stamp:<br />
Ping From PowerShell:</p>
<pre class="lang:ps decode:true">Ping.exe -t 192.168.178.1 | ForEach {“{0} – {1}” -f (Get-Date),$_}
Ping.exe -t 8.8.8.8 | ForEach {“{0} – {1}” -f (Get-Date),$_}
</pre>
<p>With this you get something like this:</p>
<pre class="lang:batch decode:true ">1/10/2020 8:51:05 PM – Reply from 8.8.8.8: bytes=32 time=19ms TTL=55
1/10/2020 8:51:06 PM – Reply from 8.8.8.8: bytes=32 time=11ms TTL=55
1/10/2020 8:51:07 PM – Reply from 8.8.8.8: bytes=32 time=12ms TTL=55
1/10/2020 8:51:08 PM – Reply from 8.8.8.8: bytes=32 time=12ms TTL=55
1/10/2020 8:51:09 PM – Reply from 8.8.8.8: bytes=32 time=21ms TTL=55
1/10/2020 8:51:10 PM – Reply from 8.8.8.8: bytes=32 time=28ms TTL=55
1/10/2020 8:51:11 PM – Reply from 8.8.8.8: bytes=32 time=11ms TTL=55</pre>
<p>That works like a charm!!</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
