04-24-2018 05:38 AM - edited 03-05-2019 10:19 AM
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
Unfortunately trying to search in the extend command filed of the ping options, i can't find the way to do that.
Thank you so much for the support.
Bye
Lorenzo
04-25-2018 07:50 AM
Hello Lorenzo,
I think you can do it, try this way:
ping
Protocol [ip]:
Target IP address: 1.1.1.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 192.168.3.1
Type of service [0]:
Set DF bit in IP header? [no]: n
Set DF bit in IP header? [no]: n
Validate reply data? [no]: n
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]: timestamp
Please do not forget to rate/mark useful post.
Best Regards,
04-28-2018 12:51 AM
Hello,
i tried the way you told:
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 in advance
Lorenzo
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide