How can I perform a ping every X minuts and check the response time?

Posted by Profete162 on Super User See other posts from Super User or by Profete162
Published on 2011-10-11T07:02:21Z Indexed on 2012/06/13 4:43 UTC
Read the original article Hit count: 237

Filed under:
|
|

I am currently working in a big company and we have serious latency issues. This is happening in a process control system, and is unacceptable (Open a valve sometimes take 2 minuts before command start)

The Network team seems very lazy and I want to check when they say "everything alright on the network".

So, I want to create a loop that ping the server and write the result in a text file.

I am not a batch expert, but do you think this code is correct to use?

@ECHO OFF

:LOOPSTART

time /T
ping xxx.xx.x.x  -t >> filename.txt
sleep -m 3000

GOTO LOOPSTART

© Super User or respective owner

Related posts about Windows

Related posts about command-line