cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2414
Views
10
Helpful
5
Replies

Timestamp ping option - solicit

lorenzomot
Level 1
Level 1
Timestamp ping option

Hello everyone,

 

i was wondering if there is a method to have a verbose output of the ping with the timestamp related.

As you can see, i mean an output like this:

 

14:35:43 2018-4-24 DST    Reply from 8.8.8.8: bytes=56 Sequence=1 ttl=54 time=20 ms
14:35:44 2018-4-24 DST    Reply from 8.8.8.8: bytes=56 Sequence=2 ttl=54 time=22 ms
14:35:44 2018-4-24 DST    Reply from 8.8.8.8: bytes=56 Sequence=3 ttl=54 time=19 ms
14:35:45 2018-4-24 DST    Reply from 8.8.8.8: bytes=56 Sequence=4 ttl=54 time=20 ms
14:35:45 2018-4-24 DST    Reply from 8.8.8.8: bytes=56 Sequence=5 ttl=54 time=20 ms

 

Trying to search in the extend command filed of the ping options, i found this:

Loose, Strict, Record, Timestamp, Verbose[none]: timestamp

So i compiled the information like this:

 

ping                

Protocol [ip]:

Target IP address: 8.8.8.8

Repeat count [5]: 1000

Datagram size [100]: 1400

Timeout in seconds [2]:

Extended commands [n]: y

Source address or interface:

Type of service [0]:

Set DF bit in IP header? [no]:

Validate reply data? [no]:

Data pattern [0xABCD]:

Loose, Strict, Record, Timestamp, Verbose[none]: timestamp

Number of timestamps [ 9 ]:

Loose, Strict, Record, Timestamp, Verbose[TV]:

Sweep range of sizes [n]:

Type escape sequence to abort.

Sending 1000, 1400-byte ICMP Echos to 8.8.8.8, timeout is 2 seconds:

Packet has IP options:  Total option bytes= 40, padded length=40

Timestamp: Type 0.  Overflows: 0 length 40, ptr 5

  >>Current pointer<<

  Time= 02:00:00.000 summertime (00000000)

  Time= 02:00:00.000 summertime (00000000)

  Time= 02:00:00.000 summertime (00000000)

  Time= 02:00:00.000 summertime (00000000)

  Time= 02:00:00.000 summertime (00000000)

  Time= 02:00:00.000 summertime (00000000)

  Time= 02:00:00.000 summertime (00000000)

  Time= 02:00:00.000 summertime (00000000)

  Time= 02:00:00.000 summertime (00000000)

 

Request 0 timed out

Request 1 timed out

Request 2 timed out

Request 3 timed out

Request 4 timed out

Request 5 timed out

Request 6 timed out

Request 7 timed out

Request 8 timed out

Request 9 timed out

Request 10 timed out

 

The output is not what i wanted.

I don't know what to insert as value Number of timestamps. I left it as the standard (9) but the result is strange. Moreover the ping failed.

Can anyone help me?

Thank you so much for the support.

Bye

 

Lorenzo

1 Accepted Solution

Accepted Solutions

To my knowledge, there is no way to do that. You could do something with ACL logging, or debug is packet detail to get a time stamp. What are you trying to accomplish?

Please mark helpful posts.

View solution in original post

5 Replies 5

Alex Pfeil
Level 7
Level 7
Timestamp is used to measure roundtrip time to particular hosts. It is not used to put the time of the ping.

Please rate helpful posts.

Hello Alex, Thank you. Can you please show me an example?
Is there another way to have an output like the one mentioned above?
Thank you

To my knowledge, there is no way to do that. You could do something with ACL logging, or debug is packet detail to get a time stamp. What are you trying to accomplish?

Please mark helpful posts.

I need to keep a ping open for hours and need to know at what specific minute and seconds it dropped packets, whether it drops :)
By the way thank you

Lorenzo

You can use an IP SLA. You can then see what time the last time that it failed was. You can also setup some free ping monitoring tools that will do this from a computer or server. You would just search for free ping monitor and there are a few. One of them definitely will tell you when it failed.

Thanks!
Review Cisco Networking for a $25 gift card