[CentOS] Re: NTP server
Jason Ross
jross at medvoice.com
Fri Feb 1 21:39:50 UTC 2008
On Fri, 2008-02-01 at 13:29 -0800, John R Pierce wrote:
> Scott Silva wrote:
> > on 2/1/2008 12:03 PM Dennis McLeod spake the following:
> >> XP command line:
> >>
> >> net time \\servername returns what?
> >>
> >> Perhaps the response will give a clue.
> >>
> >>
> >> To set it:
> >>
> >> net time \\servername /set /yes
> > Net time is only used to set time from a domain controller, not an ntp
> > server.
> > They use two completely different protocols.
>
>
> however,
>
> NET TIME /SETSNTP:ip-of-ntp-server
>
> WILL set the windows 'internet time' server IP.
>
> NET TIME /QUERYSNTP
>
> will show the current 'internet time' server(s).
>
> note that the default Windows NTP client is really braindead, it just
> 'sets' the system clock once a day, its not a proper NTP
> implementation. for most users, this is fine, but realize oddities can
> happen like the clock being set back a few seconds such that a given
> time happens twice.
Very true.
You can modify the time interval by editing your registry.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time
\TimeProviders\NtpClient]
"SpecialPollInterval"=dword:00001c20
This will set it to update every two hours. The dword can be modified to
set it for 1 hour to whatever.
-jason
More information about the CentOS
mailing list