How To: Write an ADSL stability checker in 5 seconds…

For the past week or so we have been having some stability problems with our Internet connection at home where it would be going up and down every thirty seconds or so (variable depending which direction you were holding your tongue).

We finally got some engineers out this morning and they were trying a few things and of course I had to keep jumping back onto the computer to test if it was working. In the end I decided it was much more fun just to write a quick program in PowerShell. Here is what I came up with.

$ping = new-object –type System.Net.NetworkInformation.Ping
for (;;) { $ping.Send(“www.google.com”).Status; sleep 5; }

Hey presto! The Telstra guys were suitably impressed😛

7 thoughts on “How To: Write an ADSL stability checker in 5 seconds…

  1. silky

    Now add something so that it resets the router if it’s noticeably dead and then I’d have something I can use at home🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s