28 Mar 2011

NTP on Solaris

I tried to unable NTP on a solaris machine. Here's how it works in a nutshell:
cp /etc/inet/ntp.server /etc/inet/ntp.conf
vi /etc/inet/ntp.conf

# comment those lines
# server 127.127.XType.0
# fudge 127.127.XType.0 stratum 0

# add those lines
# server list http://tf.nist.gov/tf-cgi/servers.cgi
server time-b.nist.gov

touch /var/ntp/ntp.drifts
svcadm restart svc:/network/ntp
svcs ntp
ntpq -p
date

No comments: