Solved

Ping time stamp

Posted on 2002-03-12
6
6,243 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
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Application timeout question 2 47
Unmanaged Switches for Optimized Network Speeds 7 50
not able to to ping server on a switch 1 33
Cisco Edge Routers for BGP 6 49
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

861 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