Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #15279

Re: NTP client

Date 2012-06-14 10:39 -0400
From Gunter Herrmann <notformail0106@earthlink.net>
Newsgroups comp.lang.java.programmer
Subject Re: NTP client
References <de20892c-8be9-4954-bac4-0a6dcfa77cfc@googlegroups.com> <4fc8efff$0$6563$9b4e6d93@newsspool4.arcor-online.net> <6fqht75hhntgqpcec7hsvp0rh47ojfjei8@4ax.com>
Message-ID <4fd9f77e$0$6565$9b4e6d93@newsspool4.arcor-online.net> (permalink)
Organization Arcor

Show all headers | View raw


Hi!

Roedy Green wrote:
> in windows you spawn
> w32tm.exe /resync

In a corporate network you should have (at least) 2 servers that run
ntpd getting the time signals from multiple outside sources.
You should ask for permission to use these sources.
Then close the ntp port in the firewall for everyone except these
servers. All your other systems should get the time from your own
time servers.

On Unix/Linux boxes install ntpd and have it point to your
corporate time servers.

Sync your Windows domain controllers with your corporate ntp
servers, all computers in the domain will get their time from there.

Your windows systems that are not part of a domain should get their
time from your ntp servers.

To automate this I use a batch file to set/change the registry entries.

Here the content:

w32tm /register
w32tm /config /manualpeerlist:"Your corporate servers"
reg add HKLM\System\CurrentControlSet\Services\W32Time\Parameters /v "Period" /t REG_DWORD /d 0 /f
reg add HKLM\System\CurrentControlSet\Services\W32Time\Config /v "MaxNegPhaseCorrection" /t REG_DWORD /d 4294967295 /f
reg add HKLM\System\CurrentControlSet\Services\W32Time\Config /v "MaxPosPhaseCorrection" /t REG_DWORD /d 4294967295 /f

Setting the maximum correction to infinity makes sure that a
system with a bad CMOS battery is still synced.

Regards

Gunter

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

NTP client bob <bob@coolfone.comze.com> - 2012-06-01 06:50 -0700
  Re: NTP client Gunter Herrmann <notformail0106@earthlink.net> - 2012-06-01 12:38 -0400
    Re: NTP client Roedy Green <see_website@mindprod.com.invalid> - 2012-06-13 12:34 -0700
      Re: NTP client Gunter Herrmann <notformail0106@earthlink.net> - 2012-06-14 10:39 -0400
  Re: NTP client Roedy Green <see_website@mindprod.com.invalid> - 2012-06-01 14:26 -0700

csiph-web