ping testing

I have a need to ping multiple devices in multiple sites on a daily basis. I also need to record the results, so we can tell if equipment is on-line and if response times are deteriorating. Can anyone tell me how to set up a script or file to do them all at once from a command prompt in Windows? (Go easy on me, I'm ...

Everything New Technology 1823 This topic was started by ,


data/avatar/default/avatar29.webp

1 Posts
Location -
Joined 2004-08-27
I have a need to ping multiple devices in multiple sites on a daily basis. I also need to record the results, so we can tell if equipment is on-line and if response times are deteriorating. Can anyone tell me how to set up a script or file to do them all at once from a command prompt in Windows?
(Go easy on me, I'm not an expert at command prompt issues)
 
Thanks. John

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


data/avatar/default/avatar36.webp

193 Posts
Location -
Joined 2000-12-26
you can use "ping host >test.txt"(without the quotes of course)
 
The results of the command will be printed on the file named test.txt
 
For multiple files create a batch file (.bat) and write as many ping commands you want like the one up followed by carriage return.e.g.
"ping host1 >test1.txt"
"ping host2 >test2.txt"
"ping host3 >test3.txt"
 
Then all you have to do is run the batch file from the command prompt and you're done.
 
The only thing i haven't managed to find yet is how to append information to the files created(every time you run the command with the same filename specified the file is overwriten).
 
I'll ask some guru's at work and i might come up with the answer soon!

data/avatar/default/avatar36.webp

193 Posts
Location -
Joined 2000-12-26
you can use "ping host >test.txt"(without the quotes of course)
 
The results of the command will be printed on the file named test.txt
 
For multiple files create a batch file (.bat) and write as many ping commands you want like the one up followed by carriage return.e.g.
"ping host1 >test1.txt"
"ping host2 >test2.txt"
"ping host3 >test3.txt"
 
Then all you have to do is run the batch file from the command prompt and you're done.
 
The only thing i haven't managed to find yet is how to append information to the files created(every time you run the command with the same filename specified the file is overwriten).
 
I'll ask some guru's at work and i might come up with the answer soon!

data/avatar/default/avatar06.webp

286 Posts
Location -
Joined 2001-07-17
Originally posted by thymios:

Quote:The only thing i haven't managed to find yet is how to append information to the files created(every time you run the command with the same filename specified the file is overwriten). 
I'll ask some guru's at work and i might come up with the answer soon!
 
You just need to add a second > like so:
 
ping -n 5 xxx.xxx.xxx.xxx >> C:\ping.txt
 
 
That will keep adding to the log without overwriting it.
 
- Lotus