{"id":886,"date":"2012-01-18T09:21:56","date_gmt":"2012-01-18T14:21:56","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=886"},"modified":"2012-01-18T09:21:56","modified_gmt":"2012-01-18T14:21:56","slug":"ntp-on-rhel","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2012\/01\/ntp-on-rhel\/","title":{"rendered":"NTP on RHEL"},"content":{"rendered":"<p>I know there is a GUI for RHEL, but I still prefer to do these things via a command line.<\/p>\n<p>RHEL Setup NTPd<\/p>\n<p>To simply set the time to the time server (correct time one-off), use the following command:<br \/>\n<code>\/usr\/sbin\/ntpdate IP_or_ADDR_of_NTP_Server<\/code><\/p>\n<p>In my case it was this command and this result:<\/p>\n<blockquote><p>-bash-3.2# \/usr\/sbin\/ntpdate 10.4.0.253<br \/>\n18 Jan 08:16:02 ntpdate[13347]: step time server 10.4.0.253 offset 756.199630 sec<\/p><\/blockquote>\n<p>As you can see, this server was off by over 12 minutes!<\/p>\n<p>If you want to edit the NTP Servers List:<br \/>\n<code>nano (or vi) \/etc\/ntpd.conf<\/code><br \/>\nAdd the specific time server you require<br \/>\n<code>\/sbin\/service ntpd restart<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I know there is a GUI for RHEL, but I still prefer to do these things via a command line. RHEL Setup NTPd To simply set the time to the time server (correct time one-off), use the following command: \/usr\/sbin\/ntpdate IP_or_ADDR_of_NTP_Server In my case it was this command and this result: -bash-3.2# \/usr\/sbin\/ntpdate 10.4.0.253 18 &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2012\/01\/ntp-on-rhel\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">NTP on RHEL<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-886","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=886"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/886\/revisions"}],"predecessor-version":[{"id":887,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/886\/revisions\/887"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}