kenlotterman
asked on
I need to prove that the internet connection drops occasionally and probably just for a second
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
ASKER
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.
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.
No problemo.
ASKER
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...
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?