Link to home
Start Free TrialLog in
Avatar of itnifl
itniflFlag for Norway

asked on

W32time still using local CMOS clock after NTP client setup

Good morning. I set up a NTP client on a windows 2012 computer by setting the following registry keys:
HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
Key: "Type" 
Value: "NTP" 
Type "REG_SZ"

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config
Key: "AnnounceFlags" 
Value "5" 
Type "DWORD"

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
Key "NtpServer" 
Value "$GlobalNTPServerAddress, 0x1" 
Type "REG_SZ"

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders
Key "NtpServer"
Value "0x1 $GlobalNTPServerAddress" 
Type "REG_SZ"

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient
Key "SpecialPollInterval"
Value "25" 
Type "DWORD"

HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config
Key "MaxNegPhaseCorrection" 
Value "3600" 
Type "DWORD"

Open in new window

$GlobalNTPServerAddress here is the IP-address I want to use to the NTP server.

I then adjust the Windows Time Service the way I want it:
sc triggerinfo w32time delete
sc triggerinfo w32time start/networkon stop/networkoff

Open in new window


Finally I restart the Time Services:
net stop w32time
net start w32time

Open in new window


Then I run the following commands with the following output:
User generated image
Seems like I am still using the local CMOS clock despite all the setup. That is at least what w32tm /query /source says.
Just to be sure I used the tool PortQueryUI to check that udp port 123 was open from the NTP Client to the NTP server, and it is.

I have also tried this as described here and then restart time services:
w32tm /config /manualpeerlist:MyAddressHere /syncfromflags:manual /reliable:yes /update

Open in new window


But the result is the same.

So how do I get my Win 2012 server set up as a ntp client correctly?
Avatar of reredok
reredok
Flag of Germany image

telnet your_configured_ntp_server 123 give reply?

You have non hypervisor i.e. vmware?

if so: deactivate ntp client on vmware configuration'; ntp client vmware forces "CMAOS CLOCK" on VM
Avatar of itnifl

ASKER

Telnet uses TCP, NTP uses UDP. I used PortQueryUI to check the UDP port. It checks out ok.
The Windows server is on a VMWare Hypervisor. There is no timesync setup between the host and the VM via vmware tools. I will look into the forcing of CMOS clock. If you have any links on the subject, please share.
ASKER CERTIFIED SOLUTION
Avatar of Frank Helk
Frank Helk
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of itnifl

ASKER

Checked with https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1318

Cannot see any information on vmware forcing local cmos clock.

There is no timesync via vmware set up, verified this with: vmwaretoolboxcmd.exe timesync status
Exe is found in the vmware tools folder.

I will take a better look at a different NTP client provider as suggested.
Hi ITNIFL,

Check the below video.

https://www.experts-exchange.com/videos/511/Windows-Server-2012-Configuring-NTP-Servers-for-Time-Synchronization.html

Hope the NTP server that you have chosen is functioning appropriately.
Avatar of itnifl

ASKER

Helli Ian Arakel and thank you for your reply, but these commands have already been attempted.
Avatar of itnifl

ASKER

Seems that the connectivity I thought was in order, was not in order at all. The cables in the rack were connected to all the wrong places. So the NTP client configuration was actually correct. w32tm /query /source always replies local CMOS clock if the NTP server is not available. But I will accept one answer here still, the most original one. Using a different ntp client then the Windows Time Service also pointed me in the right direction.