Friday, January 20, 2012

Retrive Remote Time Stamp with Ping

The ping command can be used identity remote time of a remote host.
Command in Linux is

ping -T tsonly example.com

kasun@katalyst ~$ ping -T tsonly rt.com -c 2
PING rt.com (62.213.111.201) 56(124) bytes of data.
64 bytes from 62.213.111.201: icmp_req=1 ttl=44 time=329 ms
TS:  29077018 absolute
 4
 -4
 1637957848 absolute not-standard
 101
 29
 -11
 38
 2
Unrecorded hops: 3

64 bytes from 62.213.111.201: icmp_req=2 ttl=44 time=487 ms
TS:  29078020 absolute
 11
 3
 1637757308 absolute not-standard
 101
 6
 -13
 38
 1
Unrecorded hops: 4


--- rt.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 329.485/408.507/487.529/79.022 ms

 

No comments: