0
I have set up ntpd on CENTOS, I am trying to get it to pull time from a Windows domain contoller
if i run the command:
ntpdate dc3.mydomaain.local
this works fine and updates the host with the correct time
but in the /etc/ntp.conf I have set:
server dc3.mydomain.local
but the time never updates, it always stays on the incorrect time (it seems to be pulling time from the ESXi host on reboot unless i set it with ntpdate) I have unticked the box to get the time from the host.
NTPD is running
-bash-3.2# service ntpd status
ntpd (pid 4182) is running...
any way i can check why ntpd is not pulling the time, when ntpdate works fine?
any other tips on ow to get my centos box pulling time from my DC?
update: here is the output of:
ntpq -pcrv
please note that the ip address show is the ip of DC1, yet DC3 is the only ntp server listed in the ntp.conf
ntpq -pcrv
-bash-3.2# ntpq -pcrv
remote refid st t when poll reach delay offset jitter
==============================================================================
dc3.domai 10.1.1.2 2 u 29 64 377 0.567 -4263.4 10.392
assID=0 status=c011 sync_alarm, sync_unspec, 1 event, event_restart,
version="ntpd 4.2.2p1@1.1570-o Mon Dec 9 14:38:21 UTC 2013 (1)",
processor="i686", system="Linux/3.10.23-xxxx-std-ipv6-32", leap=11,
stratum=16, precision=-20, rootdelay=0.000, rootdispersion=2356.905,
peer=0, refid=INIT,
reftime=00000000.00000000 Thu, Feb 7 2036 17:28:16.000, poll=6,
clock=d81ce655.d5ce975b Mon, Nov 24 2014 10:03:49.835, state=1,
offset=0.000, frequency=-0.140, jitter=0.001, noise=0.001,
stability=0.000, tai=0
-bash-3.2# date
You can use
ntpq
andntpstat
to check the status ofntpd
. – pabouk – 2014-11-22T11:57:37.997Post the output of
ntpq -pcrv
when the box is up and ntpd is running and not working correctly. – dfc – 2014-11-22T20:43:21.177