Solved

I need to prove that the internet connection drops occasionally and probably just for a second

Posted on 2014-09-18
6
256 Views
Last Modified: 2014-09-19
I need a utility or batch file that simply pings and records the results with a timestamp.  I need to show the isp that the internet drops almost every night.  

So the log file would be like this:

09-18-2014 11:30:02 AM
reply from 8.8.8.8: bytes=32 time=46ms TTL=46
09-18-2014 11:30:02 AM
reply from 8.8.8.8: bytes=32 time=47ms TTL=46
09-18-2014 11:30:03 AM
reply from 8.8.8.8: bytes=32 time=46ms TTL=46
09-18-2014 11:30:02 AM
reply from 8.8.8.8: bytes=32 time=52ms TTL=46
09-18-2014 11:30:04 AM
reply from 8.8.8.8: bytes=32 time=46ms TTL=46
etc until I stop the process

so the batch file/ utility would record the time to the second then record ping results
it would be a bonus if the tracert would be recorded too. so I could actually show the isp where it is failing, but once i do the tracert, I can set several of these up to ping the individual hops...  In fact, if it was a batch file, i suppose I could just add lines for each hop.
0
Comment
Question by:kenlotterman
  • 3
  • 2
6 Comments
 
LVL 16

Expert Comment

by:choward16980
Comment Utility
ping -t PUBLIC_IPADDRESS > log.txt

Open in new window


ie:

ping -t 4.2.2.2 > log.txt

Then hit Ctrl+C when you wake up and open your log.txt file in notepad

If you have DSL as your service provider, this is actually pretty common.  Who is your provider and what service do you have?
0
 
LVL 16

Accepted Solution

by:
choward16980 earned 500 total points
Comment Utility
Sorry, this is more what you want with date and time stamp.  I'd be interested if anyone else knows how to suppress the file title when using the find command.  I'm assuming it's not native and requires for tokens.

:start
ping -n 1 4.2.2.2 > temp.txt
find /i "reply" temp.txt >> log.txt
find /i "request" temp.txt >> log.txt
echo %date% %time% >> log.txt
goto start

Open in new window


When you wake up, hit ctrl+C and you should have a hefty log.txt file filled with request denied or reply from.
0
 
LVL 28

Expert Comment

by:Jan Springer
Comment Utility
If you clear the interface counters connected to your provider, you should see a carrier transition counter increment for each drop.

A ping only shows that the reply was not received.  Pings are only the initial method of troubleshooting.  ICMP to a device has lower priority than data passing through the device.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:kenlotterman
Comment Utility
Thank you C Howard.
Jesper - you're a bit over my head.  I'll post back if the results are not convincing enough, start a new question, have you help me, and give you the points.
0
 
LVL 16

Expert Comment

by:choward16980
Comment Utility
No problemo.
0
 

Author Comment

by:kenlotterman
Comment Utility
Hey one more quick thing - is it easy to add an if/then to stop the process after say, twenty time outs?  If it was BASIC, I could do it...
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now