How to identify if a ping is progressing on a PC?

vchinnat

Right off the assembly line
Hi,

I wish to know is there anyway to find if the ping is progressing on PC? I need to automate a testcase in perl to check if the ping is progressing and do some cpu utilization when the ping is progressing.

Is there any alternate command to check if the ping is progressing other than "ping <ip_addr>" command?

C:\>ping -f -l 1472 google.com

Pinging google.com [74.125.224.200] with 1472 bytes of data:
Reply from 74.125.224.200: bytes=1472 time=239ms TTL=47
Reply from 74.125.224.200: bytes=1472 time=239ms TTL=47
Reply from 74.125.224.200: bytes=1472 time=239ms TTL=47
Reply from 74.125.224.200: bytes=1472 time=240ms TTL=47

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

I can get the statistics only after the execution of this command. I need to know if the ping is working when it is on progress.

Awaiting for your valuable reply.

Regards,
Vinoth
 

Neeraj J

Broken In
Hi vchinnat,

Your question is not very clear to me. But as per my understanding Ping with "-t" parameter ensure continuous ping. And to know stats of ping use parameter "Control+Break", this will not break ping sequence but show ping stats at that time. I don't know Perl & not good in programming, but using wscript.sendkeys("^C+{ENTER}") script line in VB do the same.
 
OP
V

vchinnat

Right off the assembly line
Hi,

Thanks for your prompt reply.

To be in crisp, I do a ping from cmd prompt, say "ping google.com", I see reply message like "Reply from 74.125.224.200: bytes=1472 time=239ms TTL=47" in the output.

Now is there any other way to check if the ping is progressing other than this output?


Thanks,
Vinoth
 
Top Bottom