{"id":3750,"date":"2022-12-20T17:19:57","date_gmt":"2022-12-20T20:19:57","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/clockdiff-man8\/"},"modified":"2022-12-20T17:19:57","modified_gmt":"2022-12-20T20:19:57","slug":"clockdiff-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/clockdiff-man8\/","title":{"rendered":"CLOCKDIFF (man8)"},"content":{"rendered":"<h1 align=\"center\">CLOCKDIFF<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#WARNINGS\">WARNINGS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#REFERENCES\">REFERENCES<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a><br \/> <a href=\"#SECURITY\">SECURITY<\/a><br \/> <a href=\"#AVAILABILITY\">AVAILABILITY<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">clockdiff \u2212 measure clock difference between hosts<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"89%\">\n<p style=\"margin-top: 1em\"><b>clockdiff<\/b> [<b>\u2212o<\/b>] [<b>\u2212o1<\/b>] [<b>\u2212\u2212time\u2212format\u00a0<\/b><i>ctime\u00a0iso<\/i>] [<b>\u2212V<\/b>] {destination}<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>clockdiff<\/b> Measures clock difference between us and <i>destination<\/i> with 1 msec resolution using ICMP TIMESTAMP [2] packets or, optionally, IP TIMESTAMP option [3] option added to ICMP ECHO. [1]<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212o<\/b><\/p>\n<p style=\"margin-left:17%;\">Use IP TIMESTAMP with ICMP ECHO instead of ICMP TIMESTAMP messages. It is useful with some destinations, which do not support ICMP TIMESTAMP (f.e. Solaris <2.4).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212o1<\/b><\/p>\n<p style=\"margin-left:17%;\">Slightly different form of <b>\u2212o<\/b>, namely it uses three\u2212term IP TIMESTAMP with prespecified hop addresses instead of four term one. What flavor works better depends on target host. Particularly, <b>\u2212o<\/b> is better for Linux.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212T<\/b>, <b>\u2212\u2212time\u2212format<\/b> <i>ctime iso<\/i><\/p>\n<p style=\"margin-left:17%;\">Print time stamp in output either ISO\u22128601 format or classical ctime format. The ctime format is default. The ISO time stamp includes timezone, and is easier to parse.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212I<\/b><\/p>\n<p style=\"margin-left:17%;\">Alias of <b>\u2212\u2212time\u2212format<\/b> <i>iso<\/i> option and argument.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212h<\/b>, <b>\u2212\u2212help<\/b><\/p>\n<p style=\"margin-left:17%;\">Print help and exit.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212V<\/b>, <b>\u2212\u2212version<\/b><\/p>\n<p style=\"margin-left:17%;\">Print version and exit.<\/p>\n<h2>WARNINGS <a name=\"WARNINGS\"><\/a> <\/h2>\n<p style=\"margin-left:17%; margin-top: 1em\">\u2022 Some nodes (Cisco) use non\u2212standard timestamps, which is allowed by RFC, but makes timestamps mostly useless.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u2022 Some nodes generate messed timestamps (Solaris>2.4), when run <b>xntpd<\/b>. Seems, its IP stack uses a corrupted clock source, which is synchronized to time\u2212of\u2212day clock periodically and jumps randomly making timestamps mostly useless. Good news is that you can use NTP in this case, which is even better.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">\u2022 <b>clockdiff<\/b> shows difference in time modulo 24 days.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ping<\/b>(8), <b>arping<\/b>(8), <b>tracepath<\/b>(8).<\/p>\n<h2>REFERENCES <a name=\"REFERENCES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">[1] ICMP ECHO, RFC0792, page 14.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">[2] ICMP TIMESTAMP, RFC0792, page 16.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">[3] IP TIMESTAMP option, RFC0791, 3.1, page 16.<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>clockdiff<\/b> was compiled by Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>. It was based on code borrowed from BSD <b>timed<\/b> daemon.<\/p>\n<h2>SECURITY <a name=\"SECURITY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>clockdiff<\/b> requires CAP_NET_RAW capability to be executed. It is safe to be used as set\u2212uid root.<\/p>\n<h2>AVAILABILITY <a name=\"AVAILABILITY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>clockdiff<\/b> is part of <i>iputils<\/i> package.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  clockdiff \u2212 measure clock difference between hosts <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,855,4],"class_list":["post-3750","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-clockdiff","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3750"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3750\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}