Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 376
  • Last Modified:

Monitor internet access outtage

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
garychu
Asked:
garychu
  • 3
  • 2
  • 2
2 Solutions
 
paulqnaCommented:
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
 
garychuAuthor Commented:
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
 
paulqnaCommented:
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Aaron TomoskyTechnology ConsultantCommented:
Ping -t is looping until you stop it
0
 
garychuAuthor Commented:
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
 
Aaron TomoskyTechnology ConsultantCommented:
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
 
paulqnaCommented:
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now