Compatible Support Forums: ping testing

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ping testing

#1 User is offline   JohnDG 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 27-August 04

Posted 27 August 2004 - 06:47 PM

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
0

#2 User is offline   thymios 

  • member
  • Group: Members
  • Posts: 193
  • Joined: 26-December 00

Posted 27 August 2004 - 08:41 PM

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!
0

#3 User is offline   thymios 

  • member
  • Group: Members
  • Posts: 193
  • Joined: 26-December 00

Posted 27 August 2004 - 08:43 PM

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!
0

#4 User is offline   Lotus 

  • enthusiast
  • Group: Members
  • Posts: 286
  • Joined: 17-July 01

Posted 27 August 2004 - 11:19 PM

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

0

#5 User is offline   vimal09 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 10-February 11

Posted 10 February 2011 - 11:30 AM

You can also check the ping here http://www.whoisxy.com/ping.aspx .It's free service.This will help you to test the connection.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users