Avatar of Xeronimo
Xeronimo
Flag for Luxembourg asked on

PDC not syncing to external NTP!?

I'm trying to get my DC (with the PDC Emulator role) to sync its time to an external NTP server but it simply doesn't stick!? It simply continues to use the local CMOS clock as a source??

I've executed these commands: https://community.spiceworks.com/how_to/65413-configure-dc-to-synchronize-time-with-external-ntp-server

I've tested this: w32tm /stripchart /computer:NTPServerNameOrIP /dataonly /samples:x and I get answers back

But the PDC simply doesn't keep the external NTP server as a source and thus doesn't synchronize the time correctly ... what's up with this!?

Thanks!
Windows Server 2012Active Directory

Avatar of undefined
Last Comment
Pete Long

8/22/2022 - Mon
Dr. Klahn

But the PDC simply doesn't keep the external NTP server as a source

Does this happen while the system is still running, or after a reboot?

Have you examined the Registry after setting the server parameters to confirm that the Registry has been set?

Is the Windows Time Service set to run at startup?
Pete Long

If you run the resync command do either of the correct Even ID's show up in the Event Log?

See my post here
Windows – Setting Domain Time



Pete
Xeronimo

ASKER
Pete:

I've done what's described on that page you've linked to and I get this in the event viewer:

EventID 12: Time Provider NtpClient: This machine is configured to use the domain hierarchy to determine its time source, but it is the AD PDC emulator for the domain at the root of the forest, so there is no machine above it in the domain hierarchy to use as a time source. It is recommended that you either configure a reliable time service in the root domain, or manually configure the AD PDC to synchronize with an external time source. Otherwise, this machine will function as the authoritative time source in the domain hierarchy. If an external time source is not configured or used for this computer, you may choose to disable the NtpClient.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Xeronimo

ASKER
Pete Long

>>I've done what's described on that page you've linked to and I get this in the event viewer:

is UDP port 123 open on your firewall? Did you see Event ID 37 and 35.
Xeronimo

ASKER
Wait, I missed something ... after the resync command I get an error: 'the computer did not resync because no time data was available'.

UDP port 123 is open on the main firewall, will have to check on Windows firewall on the server ...
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Xeronimo

ASKER
I've added an inbound and an outbound rule for port 123 but that doesn't seem to help ...

Also, this still works: w32tm /stripchart /computer:NTPServerNameOrIP /dataonly /samples:x  and I see the NTP requests on my firewall.

The problem seems to be that the DC doesn't know where to look for time data even though I have entered those other commands ...
Pete Long

>>I've added an inbound and an outbound rule for port 123 but that doesn't seem to help ...

You only need an outbound rule from the PDC, allow to anywhere (for now)

Then issue the same command I posted on my site including the NTP server (Manchester university - I always use this, its always up, and we can change it later if you like)

Then, Check the server server is not getting time settings from Group Policy (see link above)
Xeronimo

ASKER
I've executed w32tm /config /manualpeerlist:ntp2d.mcc.ac.uk /syncfromflags:manual /reliable:yes /update on the PDC and it tells me: 'the command completed successfully'.

But when I execute w32tm /query /configuration it is still pointing to local sources ...

Here's a log file though, maybe that'll help you?

Group Policy elements are on 'not configured'
w32time.log
Your help has saved me hundreds of hours of internet surfing.
fblack61
Xeronimo

ASKER
I keep getting this error in the Event Viewer: Time Provider NtpClient: This machine is configured to use the domain hierarchy to determine its time source, but it is the AD PDC emulator for the domain at the root of the forest, so there is no machine above it in the domain hierarchy to use as a time source. It is recommended that you either configure a reliable time service in the root domain, or manually configure the AD PDC to synchronize with an external time source. Otherwise, this machine will function as the authoritative time source in the domain hierarchy. If an external time source is not configured or used for this computer, you may choose to disable the NtpClient.
Pete Long

Is this a virtual server? Make sure either VMware tools or whatever the Microsoft equiv is called is NOT set to sync time from the Hypervisor.

lets make sure its set to defaults

Configure authorative time server on the PDC role holder server below is the KB article for the same.
http://support.microsoft.com/kb/816042
Make sure that below parameters are set correctly on PDC Server.
1.Change the server type to NTP
2.Set AnnounceFlags to 5
3.Enable NTPServer
4.Specify the time sources.eg time.windows.com,0x1 or pool.ntp.org,0x1
5Configure other paratmeters as well.
Restart the windows time service.Ran w32tm /resync /rediscover command.
Check the system log you will get event id 35 and 37 related to time sync.
Xeronimo

ASKER
Yes, it's a VMWare virtual server ... gonna check the tools then
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Xeronimo

ASKER
Hm, the time of the VM is not being synchronized with the host.
Xeronimo

ASKER
I've done all of those things again ... I'm still getting the 'the computer did not resync because no data was available'.

w32tm /query /configuration still points to local sources ... not the external NTP servers!?
Xeronimo

ASKER
that PNG file seems corrupt?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Pete Long

take 2
I forced that to happen by blocking UDP 123 on the firewall

UDP-123-Blocked
Pete Long

try NTP tools if you get no received packets like this then thats your problem

ntp tool
Pete Long

Look what happens when I take that firewall rule out and open udp 123

Boom
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Xeronimo

ASKER
Pete: that's what I'm getting when I use NTPTool!

But I still get the 'the computer did not resync because no time data was available' when trying to execute 'w32tm /resync' ...
Xeronimo

ASKER
I think I'll simply give up on this issue ... I've now enabled NTP Sync on the VMWare host and it's syncing its (correct!) time to the VMs of the Domain Controllers using VMWare tools.
Pete Long

Thats not a good solution one dodgy host CMOS battery and your Domain controllers can start tombstoning each other :(
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Xeronimo

ASKER
Hm ... yeah, good point ... but I don't seem to be able to get time to sync on my ADs!?
ASKER CERTIFIED SOLUTION
Pete Long

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Xeronimo

ASKER
Yessssssssssss, it has finally worked! The problem was that there was a 'default group policy' that contained bad parameters for all that NTP stuff. I've removed those parameters and then applied your article and everything works fine now :)

Thanks again! That Resultant Set of Policy was key!
Pete Long

OK - Im putting together how to configure the PDC via GPO as we speak :)
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Pete Long