Internet Cut-Outs & When They Happen

  • Contingent
  • Novice
  • Novice
  • Contingent
  • Posts: 25
  • Loc: Wisconsin

Post 3+ Months Ago

Hi, I was wondering if there is a way to find out WHEN a loss of internet occurred, ala while I was asleep, away, the internet goes down, I could find out when. Just curious. A 30 minute google session hasn't turned up anything.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Zealous
  • Guru
  • Guru
  • User avatar
  • Posts: 1241
  • Loc: Sydney

Post 3+ Months Ago

you could use network monitoring software and then have it write a log. Better yet any good router will have logs on it and the better ones are when it logs the connection completely.

Log into your router and check your logs and look at the timestamps and check for something like pppoe down and then as you read through it should ask for reconnection and connected again and speed test should show after.

If your router does not have logs as described above then we would need to find some network monitoring software that logs your connection.
  • lucassix
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2350
  • Loc: Indiana

Post 3+ Months Ago

A batch file like this should work, change the 30 to whatever floats your boat. You can just let it sit there minimized and it will keep logging until you kill it.

Code: [ Select ]
@echo off
echo Internet test batch file
echo Test will run every 30 seconds
echo Results will be saved to c:\netlog.txt
echo Old logs will be overwritten
echo Press CONTROL+C to terminate
echo.
echo. > c:\netlog.txt
echo. > c:\netlog.old
echo. > c:\break.tmp
:begin
del c:\netlog.old
ren c:\netlog.txt netlog.old > nul
echo -Testing internet connection %date% at %time%
echo -Testing internet connection %date% at %time% > c:\stamp.tmp
ping 4.2.2.2 -n 1 |find "TTL=" && goto up
:down
echo -Internet connection appears to be down
echo -Internet connection appears to be down > c:\result.tmp
goto log
:up
echo -Internet connection appears to be up
echo -Internet connection appears to be up > c:\result.tmp
:log
echo.
copy c:\stamp.tmp + c:\result.tmp + c:\break.tmp c:\netlog.new > nul
copy c:\netlog.old + c:\netlog.new c:\netlog.txt > nul
ping 127.0.0.1 -n 30 > nul
echo.
echo.
goto begin
  1. @echo off
  2. echo Internet test batch file
  3. echo Test will run every 30 seconds
  4. echo Results will be saved to c:\netlog.txt
  5. echo Old logs will be overwritten
  6. echo Press CONTROL+C to terminate
  7. echo.
  8. echo. > c:\netlog.txt
  9. echo. > c:\netlog.old
  10. echo. > c:\break.tmp
  11. :begin
  12. del c:\netlog.old
  13. ren c:\netlog.txt netlog.old > nul
  14. echo -Testing internet connection %date% at %time%
  15. echo -Testing internet connection %date% at %time% > c:\stamp.tmp
  16. ping 4.2.2.2 -n 1 |find "TTL=" && goto up
  17. :down
  18. echo -Internet connection appears to be down
  19. echo -Internet connection appears to be down > c:\result.tmp
  20. goto log
  21. :up
  22. echo -Internet connection appears to be up
  23. echo -Internet connection appears to be up > c:\result.tmp
  24. :log
  25. echo.
  26. copy c:\stamp.tmp + c:\result.tmp + c:\break.tmp c:\netlog.new > nul
  27. copy c:\netlog.old + c:\netlog.new c:\netlog.txt > nul
  28. ping 127.0.0.1 -n 30 > nul
  29. echo.
  30. echo.
  31. goto begin
  • Contingent
  • Novice
  • Novice
  • Contingent
  • Posts: 25
  • Loc: Wisconsin

Post 3+ Months Ago

That's mighty fine of you, I have 1 more question, are you able to log the system time as well? I was focusing on the TIME it went down, it is very obvious my wireless went down, but when is the valuable information I seek to measure.

Also I'm not very familiar with batch files. What would I do to run this on my laptop?
  • lucassix
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2350
  • Loc: Indiana

Post 3+ Months Ago

Yes, every 30 seconds this script will log the date, time, and whether or not it can ping out. To use it, copy everything in the code section without the line numbers and then paste it into notepad. Go to save as, type - all files, and save it as something like nettest.bat on your desktop. All that is important is that it is saved as a .bat file and not a .txt file.

Then just run the newly created file and it will keep logging until you exit out of it. The results will be at c:\netlog.txt

You can open that log in notepad and search for the word "down" to see if the internet connection stopped working at any time.

Every time you run the file it will erase the old log and start over so if you want to save the log, be sure to copy/move it to another location before the next time you run the script.

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 122 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.