Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ping command arguements 1

Status
Not open for further replies.

thorn312

Technical User
Sep 17, 2002
19
US
I have to generate data on network latency. At the client's request they want a series of pings and trace routes taken between one of their user populations on the East Coast and the proposed dat center on the West Coast.

at this point I can ping and send the results to a text file.
C:\ping HOST IP >c:\testfile.txt

The problem is that each time I run the command it over writes the previous data. I need it to append. i have tried adding /append or append before and after the output file name.

Thanks for your help
 
C:\ping HOST IP >>c:\testfile.txt

To append, you would use 2 ">" like above.
 
Thanks a lot. It works for my trace routes also.
 
Incidentally, if you want a larger sample of data, you can use:

ping -n 50 HOST IP >> c:\testfile.txt

Which would give you 50 ping replies, rather than the default 4.

You could also use the -t switch, which will collect data indefinitely, until you press CTRL+C at the keyboard.

Hope that helps a little...

Allen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top