So today I came across an error wherein I was unable to get NTP running.
I started the service via svcadm like this:
# svcadm restart network/ntp
When I ran 'ntpq -p' to check the status I got the below error:
# ntpq -p
No association ID's returned
The configuration file looked good & had entries for the relevant NTP servers.
# cat /etc/inet/ntp.conf
server ntp1.vodafone.com.au
server ntp2.vodafone.com.au
server ntp3.vodafone.com.au
server ntp4.vodafone.com.au
server ntp5.vodafone.com.au
I started the service via svcadm like this:
# svcadm restart network/ntp
When I ran 'ntpq -p' to check the status I got the below error:
# ntpq -p
No association ID's returned
The configuration file looked good & had entries for the relevant NTP servers.
# cat /etc/inet/ntp.conf
server ntp1.vodafone.com.au
server ntp2.vodafone.com.au
server ntp3.vodafone.com.au
server ntp4.vodafone.com.au
server ntp5.vodafone.com.au
I then did a manual sync with one of the NTP server listed in the file & that did the trick.
# ntpdate -u ntp1.vodafone.com.au
25 Apr 14:55:05 ntpdate[49624]: adjust time server 10.105.138.4 offset 0.007227 sec
After the manual sync all five NTP servers were detected & were showing up in the output of ntpq -p:
# ntpq -p
remote refid st t when poll reach delay offset disp
====================================================================
-ntp1.vodafone.c .GPS. 1 u 56 64 77 0.34 2.185 376.19
-ntp2.vodafone.c .GPS. 1 u 56 64 77 13.17 2.123 376.25
*ntp3.vodafone.c .GPS. 1 u 56 64 77 17.26 2.234 376.25
+ntp4.vodafone.c .GPS. 1 u 56 64 77 19.07 2.289 376.19
+ntp5.vodafone.c .GPS. 1 u 56 64 77 46.33 2.268 376.21
No comments:
Post a Comment