Ramblings of a Linux Geek.

Archive for February, 2008

Configuring NTPD in Solaris

by on Feb.09, 2008, under Operating System, Solaris

Add the following to vi /etc/inet/ntp.conf

driftfile /etc/ntp.drift
server 0.north-america.pool.ntp.org
server 1.north-america.pool.ntp.org
server 2.north-america.pool.ntp.org
server 3.north-america.pool.ntp.org

Then run following commands

touch /etc/ntp.drift
svcadm enable svc:/network/ntp
svcadm refresh svc:/network/ntp
svcadm restart svc:/network/ntp

To make sure the ntp daemon is started run the following command “svcs | grep ntp” if the service is running you should see something like the output below.

online 20:42:57 svc:/network/ntp:default

Also the output of “ntpq -pn” will show what time server you are using by the * next to it.

bash-3.2# ntpq -pn
remote refid st t when poll reach delay offset disp
+ 2 u 10 128 377 61.31 -0.120 1.08
* 2 u 78 128 377 61.33 0.359 0.50
- 2 u 90 512 377 62.55 8.937 1.10
+ 3 u 71 128 377 75.55 4.623 0.12

Link to the ntp pool group http://www.pool.ntp.org/

1 Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!