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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A simple one - How do i log ping responses?

Status
Not open for further replies.

Cat1

Technical User
Jul 14, 2002
73
GB
Hi,

I have a server on one side of the road, a server on the other, and a laser linking the two together via 100mbps connection.

I'm testing the availability of the connection by pinging -t to the server over the road -what's the best way to log this? Do i use Netmon? Perfmon? & will this show when requests time out?? or should i ping to a file?

thanks.
 
The following command will log all of the ping results to a text file.

ping -t xxx.xxx.xxx.xxx > c:\log.txt
 
Is there a way of logging it to include times/dates? I'm trying to prove that the connection we have is dodgy, so i need to have that information in there too i guess....
 
A good product is Whatsup Gold at It can be setup to monitor a bunch if ip addresses and ping them to see if they are still up, say every minute, 5 minutes, whatever you decide. It will also notify you when a ping fails, by pager, email, etc. Just set it up to ping and then email when the link goes down and up. Your emails will have date time stamps on them.

Dave
 
Heres a better and a free solution than the Whatsup Gold.

First create a text file (yourfile.txt) in any directory you want to use say c:\temp

Create a batch file with the following:

Time /t >>c:\temp\yourfile.txt
ping ipaddress >>yourfile.txt

Create a scheduled job to run the batch file how every often you like.

notice the >> this tells it to log to the file but append it to the file so you will get an ongoing log that looks like this:


3:31p


Pinging edcwfd01.lyondell.com [161.16.155.141] with 32 bytes of data:

Reply from 161.16.155.141: bytes=32 time<10ms TTL=125
Reply from 161.16.155.141: bytes=32 time<10ms TTL=125
Reply from 161.16.155.141: bytes=32 time<10ms TTL=125
Reply from 161.16.155.141: bytes=32 time<10ms TTL=125

Ping statistics for 161.16.155.141:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top