Solved

Ping time stamp

Posted on 2002-03-12
6
6,248 Views
Last Modified: 2012-05-04
Hi

I am running the line Ping <Address> -t > Pingtest.txt from the command line of a WIN NT Server and I want to be able to add a Time stamp to each ping so I can look in the  log at a specified time and see what the ping was.

0
Comment
Question by:Richard_Eustace
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 3

Expert Comment

by:defore
ID: 6856261
ping 4.2.2.2 -t -s 4 > ping.txt

Thanks
Steven
0
 
LVL 1

Author Comment

by:Richard_Eustace
ID: 6856275
I tried

ping greenmile -t -s 4 > ping.txt

and got

Pinging greenmile.Kainos.com [10.0.4.139] with 32 bytes of data:

Reply from 10.0.4.139: bytes=32 time<10ms TTL=128

    Timestamp: 10.0.4.139 : 3406857986

Reply from 10.0.4.139: bytes=32 time<10ms TTL=128

    Timestamp: 10.0.4.139 : 3038021378


The number does not look like a time, I would lihe a time stamp like 12/03/2002 12:30:33
0
 

Accepted Solution

by:
JimmyPop earned 50 total points
ID: 6862423
Are you trying to get the date stamp on each ping reply?  I know NT has command line utils called 'date' and 'time' that will spit out the current date/time.  With the /t parameter (on either commandline util) you are not prompted for into.  With some crafty batch file work you could periodically record the time/date using this.
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 3

Expert Comment

by:CyberStretch
ID: 6865939
The timestamp you see, ie 3406857986, is in Universal Time; basically the way Unix determines time. To my knowledge, there is no switch available to the ping command that would convert it into "human readable" format.

Perhaps your best bet is to use:
date [enter] (displays current date)
time [enter] (displays current time)
ping greenmile -t (if you want a continuous ping)
time [enter] (displays current time)

Ping is basically used for measuring host response in milliseconds (1/1000 of a second). It would be impossible to timestamp anything that takes less that 1000ms since that would equate to less that 1 second; which is the maximum accuracy supported by system clocks. You would need something more accurate that would produce something like the following: 03/14/02 03:14:52.189, displaying the fractions of a second.
0
 
LVL 3

Expert Comment

by:CyberStretch
ID: 6866007
You may be interested in a utility such as Ping Plotter (http://www.pingplotter.com) to get the details you require.
0
 

Expert Comment

by:Gangavaram
ID: 21472912
I Would need  perl script for Ping with Date and time stamp
0

Featured Post

Don't miss ATEN at NAB Show April 24-27!

Visit ATEN at NAB Show to learn how our "Seamlessly Entertaining" solutions deliver fast, precise video streaming without delays for the broadcasting and media environment. ATEN will showcase its 16x16 Modular Matrix Switch (VM1600) and KVM Over IP Solution (KE6900 series).

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dell PowerConnect 2824 w/ two DHCP 6 54
cannot view videos at msnbc 12 69
IP range 6 65
SonicPoint N2 will not provision on SonicWall NSA220 4 20
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question