Can't get w32time to work

Red Squirrel

No Lifer
May 24, 2003
67,936
12,384
126
www.anyf.ca
I configured w32time on a DC by going net time /setsntp:time.windows.com and then i want to sync all the machines to the DC by pushing out a script to do the same but specify the DC.

For some reason this does not seem to work. When I force it by going w32tm /resync it just says this error:

Sending resync command to local computer...
The computer did not resync because no time data was available.


Why is this? I can ping the time source and our firewall does not block outgoing connections and even if it did, it should at least work locally.


 

Red Squirrel

No Lifer
May 24, 2003
67,936
12,384
126
www.anyf.ca
ok sorta got it working, it says it queries successfully, but the clock does not even change! I know as a fact that it is out of sync as I set it that way to test. I had to change a value in the registry to get it to "work". but now why wont the clock change? also how do i get the "windows time" tab to show up? I noticed at home I get that tab but on some PCs I don't.
 

Red Squirrel

No Lifer
May 24, 2003
67,936
12,384
126
www.anyf.ca
The main issue is when I do w32tm /resync i always get "The computer did not resync because no time data was available". Even locally, so I know it's not the firewall. I setted the time server using "net time /setsntp:time.windows.com". I will be putting that in the login script so all the PCs sync with the DC, once I get this to work properly. I just don't get why it's not working, this should be simple.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I will be putting that in the login script so all the PCs sync with the DC, once I get this to work properly. I just don't get why it's not working, this should be simple.

Domain members already sync with their DC automatically.

What does w32tm /monitor say?
 

Red Squirrel

No Lifer
May 24, 2003
67,936
12,384
126
www.anyf.ca
I'm getting somewhere. Seems you have to put an IP not a hostname, it does not seem to do DNS properly even though I can resolve the names I put.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Seeing as how my w32tm output had hostnames and I believe the default sync time source for Vista and W7 is "time.microsoft.com" I'm going to say that DNS names work just fine.
 

Red Squirrel

No Lifer
May 24, 2003
67,936
12,384
126
www.anyf.ca
could be something with our environment, but I could nslookup the name fine so it's odd. time.windows.com is actually not working either, it just sits there and times out. The w32tm has always been flaky, usually fails but sometimes works, but in our case it's more like 100% failure. IP seems to work. I'll have to try putting the ip for time.windows.com and see what happens. Tried the nist.gov sites as well, no go. Seems lot of people have trouble getting this to work. I don't even think it tries to connect, sometimes. I was packet sniffing it when it was failing and I never even saw it try to connect. Did filter for udp port 123.

Another thing I also noticed that's weird is how sometimes when you double click the clock there will be a "internet time" tab, it it only shows at random. My PC at home normally shows it, but now it's not showing it. Some of my windows server show it sometimes too.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
time.windows.com is actually not working either, it just sits there and times out.

Works fine here:

ntpdate -q time.windows.com
server 207.46.232.182, stratum 3, offset -0.005558, delay 0.11479
28 Jul 21:08:44 ntpdate[12360]: adjust time server 207.46.232.182 offset -0.005558 sec
 

Red Squirrel

No Lifer
May 24, 2003
67,936
12,384
126
www.anyf.ca
Originally posted by: Nothinman
time.windows.com is actually not working either, it just sits there and times out.

Works fine here:

ntpdate -q time.windows.com
server 207.46.232.182, stratum 3, offset -0.005558, delay 0.11479
28 Jul 21:08:44 ntpdate[12360]: adjust time server 207.46.232.182 offset -0.005558 sec

Sorry, I meant with w32tm. I've never had issues with Linux with any NTP server. At home my windows boxes sync fine with my Linux server as well. The ntp server seems fine I'm sure they have a huge redundant cluster considering how many queries per hour it must get.

It's something weird in our environment, just can't figure out what.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Sorry, I meant with w32tm. I've never had issues with Linux with any NTP server. At home my windows boxes sync fine with my Linux server as well. The ntp server seems fine I'm sure they have a huge redundant cluster considering how many queries per hour it must get.

I know you meant w32tm, but NTP is NTP. If time.windows.com doesn't work for you then you've got something on your network to figure out. NTP "just works", the only time I've seen domain time issues is when there's no root NTP source like time.windows.com, etc setup.
 

Red Squirrel

No Lifer
May 24, 2003
67,936
12,384
126
www.anyf.ca
Yeah but the windows client/server implimentation of ntp does not "just work" it seems to act up a lot and needs lot of tweaking which I'm trying to do. I've witnessed issues in other windows environments too. Another weird thing I just noticed, when I do w32tm /resync and it says it's successfull, the clock does not change. How do I fix that?
 

dphantom

Diamond Member
Jan 14, 2005
4,763
327
126
Originally posted by: RedSquirrel
Yeah but the windows client/server implimentation of ntp does not "just work" it seems to act up a lot and needs lot of tweaking which I'm trying to do. I've witnessed issues in other windows environments too. Another weird thing I just noticed, when I do w32tm /resync and it says it's successfull, the clock does not change. How do I fix that?

Why not put a sniffer on your network and see where NTP is failing? As nothinman said, NTP is NTP regardless of OS. There is an issue in your network, not with Microsofts NTP. As a consultant, I have worked literally dozens of network environments and NTP is simply not an issue unless inbound NTP is blocked. Otherwise, it does "just work".
 

Bashbelly

Member
Dec 12, 2005
111
0
0
download and install this on your time server.
http://www.greyware.com/softwa...c/agent/agent-free.asp

it adds itself to your control panel and provides a super nice GUI for all the w32tm commands.

just used this myself to figure out ntp problems at a site myself. Turns out it was misconfigured GPO for time service and also NTP inbound was blocked at the firewall.


edit. also check to see if the reliable flag is checked for your ntp server.
 

redbeard1

Diamond Member
Dec 12, 2001
3,006
0
0
If you have one Domain Controller, then follow the set External Time source directions. If you have more than one DC, then you should do this on the Schema Master. Then if things work like they are supposed to, all of the computers will get their time correction from the internal servers like they are supposed to. I have seen, in an enviroment with multiple non DC servers, that they did not pull the time properly. I then used the setntp command to point these servers to the main DC, with something like /setsntp:yourservername.work.local.

But as I said earlier, if things are working properly within the domain, any computer joined to the domain will get their time set from their DC's. Computers not joined to the domain will not get the time correction automatically, but you could also point them to the main DC.

MS Article
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |