Solved

Monitor internet access outtage

Posted on 2011-03-15
7
366 Views
Last Modified: 2012-08-14
I have a computer which connects to the internet via a LAN ADSL-modem-router.
Since a change of ISP, I have reasons to suspect that outtages occur more frequently than before. However, some of these outtages could be micro in duration.
Could the experts suggest a software utility that I can install on this computer to monitor and log these outtages for say 2-3 days 24/7?
Thanks.
0
Comment
Question by:garychu
  • 3
  • 2
  • 2
7 Comments
 
LVL 5

Expert Comment

by:paulqna
ID: 35142031
What type of adsl modem do you have? Most likely you can enable some sort of logging in that modem from which you can extract the info you want.

Or you can use a ping loop (unix/linux/mac/bsd systems):

while true; do echo "$(date): $(ping -c 1 8.8.8.8|grep from)" >>~/internet_monitor.log; done
0
 

Author Comment

by:garychu
ID: 35142424
Thanks, paulqna.
The adsl modem used does not provide traffic or status logging.
The OS of the computer is Windows XP Pro SP3.
How do I do a ping loop with a Windows OS?
0
 
LVL 5

Expert Comment

by:paulqna
ID: 35142628
With the sh.exe from this site. But then make sure the directory where you extract these files is included in your system's PATH variable.

On windows the -c flag from ping is -n I think.
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 38

Expert Comment

by:Aaron Tomosky
ID: 35142843
Ping -t is looping until you stop it
0
 

Author Comment

by:garychu
ID: 35144590
Link to sh.exe is not good.
Meanwhile;
1) Should I not have to ping to at least 2 separate remote hosts immediately one after another?
Failure to reply from just one could indicate a problem at the destination host end. Not conclusive proof of outtage.
2)Is it possible to only selectively log failures rather than everything?
0
 
LVL 38

Assisted Solution

by:Aaron Tomosky
Aaron Tomosky earned 200 total points
ID: 35144694
Pinging a dns server like 8.8.8.8 or 4.2.2.2 is probably a safe test. They don't really go down.
0
 
LVL 5

Accepted Solution

by:
paulqna earned 300 total points
ID: 35144914
this one does work (slow but works)...

you would need some script that only logs something if the result from this is "1 1":
ping -c 1 -n 8.8.8.8 |gawk '/transmitted/{print $1" "$4}'
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Many times we come across a slowness or instability between two hosts, and almost always we blame the poor networking guys, just because they're an easy target.  Sometimes we forget that other factors including disk bottlenecks, CPU …
The Cisco RV042 router is a popular small network interfacing device that is often used as an internet gateway. Network administrators need to get at the management interface to make settings, change passwords, etc. This access is generally done usi…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question