Discussion Locked

Beaking the data received from Ping

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

One thing I would like to inquire....is there a way, that I break the result I get frm the ping response......Eg. the following ping response

Pinging 216.32.74.52 with 32 bytes of data:

Reply from 216.32.74.52: bytes=32 time=751ms TTL=243
Reply from 216.32.74.52: bytes=32 time=707ms TTL=243
Reply from 216.32.74.52: bytes=32 time=769ms TTL=243
Reply from 216.32.74.52: bytes=32 time=845ms TTL=243

Ping statistics for 216.32.74.52:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 707ms, Maximum = 845ms, Average = 768ms

How can I break the result into minimum, maximum, and average, and display the result on the screen....Can anybody help?

I would appreciate if you mail me the reply at my e-mail ID
Thanx
Rajiv,
rajivw@123india.com

11 replies

by aaron_lvs_it

Although I am not completely clear on what you are trying to do, this may help. At the command line, type:

ping -?

and push enter. That will give you a list of additional commands you can use with ping. Unfortunately, I did not see anythingthat would accomplish what I think you are trying to do. Good luck, and I hope this helps.

by gary_w

try this, create a batch file with the following lines:

:: ping and save the output
ping machine > ping.out

:: pull out the line you are looking for
find "Minimum" ping.out

This should get you staretd anyway.

Gary

by estebandelatorre

If you have a Netware server with tcp instaled you are ready!
Simple load ping ate the console prompt, fill the ip address and the time between ping's (not to hog) and you will obtain a detail statics.

This discussion is closed to new replies.