Knowledge Base : Configure NTP in solaris

Configure NTP in Solaris 11

root@sol5:~# echo „server 0.pool.ntp.org“ > /etc/inet/ntp.conf
root@sol5:~# echo „server 1.pool.ntp.org“ >> /etc/inet/ntp.conf
root@sol5:~# echo „server 2.pool.ntp.org“ >> /etc/inet/ntp.conf
root@sol5:~# echo „server 3.pool.ntp.org“ >> /etc/inet/ntp.conf
root@sol5:~# cat /etc/inet/ntp.conf
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server 3.pool.ntp.org
root@sol5:~# echo „driftfile /var/ntp/ntp.drift“ >> /etc/inet/ntp.conf
root@sol5:~# echo „statsdir /var/ntp/ntpstats/“ >> /etc/inet/ntp.conf
root@sol5:~# echo „filegen peerstats file peerstats type day enable“ >> /etc/inet/ntp.conf
root@sol5:~# echo „filegen loopstats file loopstats type day enable“ >> /etc/inet/ntp.conf
root@sol5:~# ntpdate 0.pool.ntp.org
30 Mar 15:59:16 ntpdate28449: step time server 212.18.3.18 offset -42.049733 sec
root@sol5:~# svcadm enable ntp
root@sol5:~# ntpq -p
remote refid st t when poll reach delay offset jitter

ntp.checon.net .INIT. 16 u – 64 0 0.000 0.000 0.000
rv1193.1blu.de 195.145.119.188 2 u 6 64 1 18.464 -4.038 0.000
himalia.mysnip. 130.133.1.10 2 u 5 64 1 26.626 -1.965 0.000
ns1.bvc-cloud.d 192.53.103.104 2 u 5 64 1 26.665 -6.475 0.000

see: Article on c0t0d0s0