Link to home
Create AccountLog in
Avatar of Jim Metcalf
Jim MetcalfFlag for United States of America

asked on

Test connectivity over a 24 hour period

Possible network problem.  I want to run a ping for 12 hours or so that will export the output of the results into a text file or analyzing.  I also want each line item of the ping to have the time on it when it was run.  I have seen some examples online but they are not working for me.  would like to use cmd prompt but am open to powershell if that is a better option.
could someone show me an example of this?
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

You should know that 'ping' doesn't tell you that any other protocols like HTTP are working.  It does tell you that you have the basic connection working.  I've had a server that had nothing but 'ping' working.  No website, no email.
Avatar of Jim Metcalf

ASKER

we think the network is dropping but can't pinpoint the times... I think the ping might be a good first step to knowing
It well could be if you are actually losing the connection.  I always feel a need to point out that ping doesn't check anything else.
ASKER CERTIFIED SOLUTION
Avatar of Dean Chafee
Dean Chafee
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
when I run that .bat logic... I get a ton of line items popping up saying.
the process cannot access the file because it is being used by another process
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of Dr. Klahn
Dr. Klahn

If you have access to a linux machine (or a C compiler on the Windows system), try the code in this discussion.

https://www.experts-exchange.com/questions/29081562/perform-dns-query-programmatically.html
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.