{"id":412,"date":"2016-09-15T21:54:30","date_gmt":"2016-09-15T20:54:30","guid":{"rendered":"http:\/\/www.adienicholls.co.uk\/blog\/?p=412"},"modified":"2017-03-11T07:44:53","modified_gmt":"2017-03-11T07:44:53","slug":"configure-client-network-time-ntp","status":"publish","type":"post","link":"http:\/\/www.adienicholls.co.uk\/blog\/configure-client-network-time-ntp\/","title":{"rendered":"Configure Client Network Time (NTP)"},"content":{"rendered":"<p><a href=\"https:\/\/www.cs.cmu.edu\/~help\/networking\/ntp.html\" target=\"_blank\">Information directly copied from : https:\/\/www.cs.cmu.edu\/~help\/networking\/ntp.html &#8211; <\/a><\/p>\n<p>for quic ref&#8230;<\/p>\n<h2 id=\"windows7\">\u00a0Windows 7<\/h2>\n<p>Windows 7 systems benefit from using the full set of NTP servers, but cannot be configured to obtain NTP server information from DHCP. Because the control panel does not allow setting multiple servers, settings on these systems must be verified and changed from a command prompt. Systems which are members of the SCS domain will receive NTP configuration via domain group policy and should not be reconfigured.<\/p>\n<p><!--more--><\/p>\n<p><b>To verify the NTP server list:<\/b><\/p>\n<ol>\n<li>Click on the Windows button<\/li>\n<li>In the &#8220;Search programs and files&#8221; box, type <kbd>cmd<\/kbd> and press Enter.<\/li>\n<li>If necessary, select <b>cmd<\/b> from the list of search results.<\/li>\n<li>In the command prompt window, enter <kbd>w32tm \/query \/peers<\/kbd><\/li>\n<li>Check that an entry is shown for each of the servers listed above.<\/li>\n<\/ol>\n<p><b>To manually configure the list of NTP servers:<\/b><\/p>\n<ol>\n<li>Click on the Windows button<\/li>\n<li>In the &#8220;Search programs and files&#8221; box, type <kbd>cmd<\/kbd><\/li>\n<li>Right-click on <b>cmd<\/b> in the list of search results.<\/li>\n<li>Select <b>Run as administrator<\/b><\/li>\n<li>Select <b>Yes<\/b> in the UAC dialog.<\/li>\n<li>In the command prompt window, enter <kbd>w32tm \/config \/update \/manualpeerlist:\"NEW-PARSLEY.SRV.CS.CMU.EDU NEW-SAGE.SRV.CS.CMU.EDU NEW-ROSEMARY.SRV.CS.CMU.EDU CORIANDER.SRV.CS.CMU.EDU FENNEL.SRV.CS.CMU.EDU PAPRIKA.SRV.CS.CMU.EDU\"<\/kbd><\/li>\n<li>Enter <kbd>w32tm \/query \/peers<\/kbd><\/li>\n<li>Check that an entry is shown for each of the servers listed above.<\/li>\n<\/ol>\n<h2 id=\"windows8\">Windows 8<\/h2>\n<p>Windows 8 systems benefit from using the full set of NTP servers, but cannot be configured to obtain NTP server information from DHCP. Because the control panel does not allow setting multiple servers, settings on these systems must be verified and changed from a command prompt. Systems which are members of the SCS domain will receive NTP configuration via domain group policy and should not be reconfigured.<\/p>\n<p><b>To verify the NTP server list:<\/b><\/p>\n<ol>\n<li>Hold the windows key and press <kbd>X<\/kbd> to bring up the Power User menu.<\/li>\n<li>Select <b>Command Prompt<\/b><\/li>\n<li>In the command prompt window, enter <kbd>w32tm \/query \/peers<\/kbd><\/li>\n<li>Check that an entry is shown for each of the servers listed above.<\/li>\n<\/ol>\n<p><b>To manually configure the list of NTP servers:<\/b><\/p>\n<ol>\n<li>Hold the windows key and press <kbd>X<\/kbd> to bring up the Power User menu.<\/li>\n<li>Select <b>Command Prompt (Admin)<\/b><\/li>\n<li>Select <b>Yes<\/b> in the UAC dialog.<\/li>\n<li>In the command prompt window, enter <kbd>w32tm \/config \/update \/manualpeerlist:\"NEW-PARSLEY.SRV.CS.CMU.EDU NEW-SAGE.SRV.CS.CMU.EDU NEW-ROSEMARY.SRV.CS.CMU.EDU CORIANDER.SRV.CS.CMU.EDU FENNEL.SRV.CS.CMU.EDU PAPRIKA.SRV.CS.CMU.EDU\"<\/kbd><\/li>\n<li>Enter <kbd>w32tm \/query \/peers<\/kbd><\/li>\n<li>Check that an entry is shown for each of the servers listed above.<\/li>\n<\/ol>\n<h2 id=\"macos\">MacOS X<\/h2>\n<p>MacOS X systems currently cannot be configured to obtain NTP server information from DHCP. Systems which are enrolled in the SCS Facilities JSS service receive correct NTP configuration via that service and should not be reconfigured. Other systems must be configured manually. <b>To verify the NTP server list setting:<\/b><\/p>\n<ol>\n<li>Open System Preferences<\/li>\n<li>Click <b>Date &amp; Time<\/b><\/li>\n<li>Click on the <b>Date &amp; Time<\/b> tab.<\/li>\n<li>Verify that <b>Set Date &amp; Time automatically<\/b> is checked.<\/li>\n<li>In the server name field, enter <kbd>NEW-PARSLEY.SRV.CS.CMU.EDU NEW-SAGE.SRV.CS.CMU.EDU NEW-ROSEMARY.SRV.CS.CMU.EDU CORIANDER.SRV.CS.CMU.EDU FENNEL.SRV.CS.CMU.EDU PAPRIKA.SRV.CS.CMU.EDU<\/kbd><\/li>\n<\/ol>\n<h2 id=\"debian\">Debian, Ubuntu<\/h2>\n<p>Debian and Debian-derived systems, including Ubuntu, will use NTP servers from DHCP by default when DHCP is used without NetworkManager. If NTP servers from DHCP are being used, they will be listed in the file <code>\/var\/lib\/ntp\/ntp.conf.dhcp<\/code>. If that file does not exist, then NTP servers are not being obtained from DHCP.<\/p>\n<p>Unfortunately, Ubuntu systems use use NetworkManager by default, and there is a bug which prevents NTP configuration from being updated in this case. Systems running the Facilities-supported Dragon Ubuntu 12.04 or 14.04 contain a fix for this problem. On systems which are not Facilities-supported, one of two workarounds is required. Either the list of servers may be configured manually, or a simple script may be installed to enable automatic operation.<\/p>\n<p><b>To manually configure the list of NTP servers<\/b>, edit the file <code>\/etc\/ntp.conf<\/code>. Remove or comment out any lines beginning with the keywords &#8220;server&#8221; or &#8220;peer&#8221;, and replace them with the lines shown below. Then run <kbd>service ntp restart<\/kbd>.<\/p>\n<pre>  server new-parsley.srv.cs.cmu.edu  iburst\r\n  server new-sage.srv.cs.cmu.edu     iburst\r\n  server new-rosemary.srv.cs.cmu.edu iburst\r\n  server coriander.srv.cs.cmu.edu    iburst\r\n  server fennel.srv.cs.cmu.edu       iburst\r\n  server paprika.srv.cs.cmu.edu      iburst\r\n<\/pre>\n<p><b>To enable automatic NTP configuration when using NetworkManager<\/b>, you can apply a workaround similar to that used on Facilities-supported Ubuntu platforms. This is done by installing a NetworkManager dispatcher script which triggers automatic update of NTP configuration whenever a DHCP lease is obtained. Note this method will not work on older versions of Ubuntu, including Ubuntu 10.04, because they lack the required script to correctly update the NTP server configuration. To apply this workaround, install the following shell script as <code>\/etc\/NetworkManager\/dispatcher.d\/05ntp<\/code>:<\/p>\n<pre>#!\/bin\/sh\r\n\r\nif [ \"$2\" = \"up\" -a -n \"${DHCP4_NTP_SERVERS}\" ] ; then\r\n  export reason=BOUND\r\n  export new_ntp_servers=\"${DHCP4_NTP_SERVERS}\"\r\n  sh \/etc\/dhcp\/dhclient-exit-hooks.d\/ntp\r\n\r\nelif [ \"$2\" = \"dhcp4-change\" -a -n \"${DHCP4_NTP_SERVERS}\" ] ; then\r\n  export reason=RENEW\r\n  export new_ntp_servers=\"${DHCP4_NTP_SERVERS}\"\r\n  sh \/etc\/dhcp\/dhclient-exit-hooks.d\/ntp\r\n\r\nelif [ \"$2\" = \"down\" ] ; then\r\n  export reason=STOP\r\n  sh \/etc\/dhcp\/dhclient-exit-hooks.d\/ntp\r\nfi\r\n\r\nexit 0\r\n<\/pre>\n<p>After installing the NetworkManager dispatcher script, you will need to perform one of the following actions to update NTP settings. <b>Warning:<\/b> Taking any of these actions will also result in a disruption of network access.<\/p>\n<ul>\n<li>Disable and then re-enable the network interface, using either <b>nmcli<\/b> or the NetworkManager applet menu. Note that the menu location and appearance will vary depending on the Ubuntu version and desktop environment in use.<\/li>\n<li>Restart NetworkManager by entering the command <kbd>service network-manager restart<\/kbd><\/li>\n<li>Reboot the system.<\/li>\n<\/ul>\n<h2 id=\"fedora\">Fedora, RHEL<\/h2>\n<p>Fedora and its derivatives, including RHEL, will use NTP servers from DHCP by default when DHCP is used. For this to work, the setting <code>PEERNTP=NO<\/code> must <b>not<\/b> be present in <code>\/etc\/sysconfig\/network<\/code>, or in the interface-specific file <code>\/etc\/sysconfig\/network-scripts\/ifcfg-<i>DEV<\/i><\/code>, where <i>DEV<\/i> is the interface name.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Information directly copied from : https:\/\/www.cs.cmu.edu\/~help\/networking\/ntp.html &#8211; for quic ref&#8230; \u00a0Windows 7 Windows 7 systems benefit from using the full set of NTP servers, but cannot be configured to obtain NTP server information from DHCP. Because the control panel does not allow setting multiple servers, settings on these systems must be verified and changed from &hellip; <a href=\"http:\/\/www.adienicholls.co.uk\/blog\/configure-client-network-time-ntp\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Configure Client Network Time (NTP)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"_links":{"self":[{"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/posts\/412"}],"collection":[{"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=412"}],"version-history":[{"count":2,"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/posts\/412\/revisions"}],"predecessor-version":[{"id":438,"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/posts\/412\/revisions\/438"}],"wp:attachment":[{"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=412"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}