Pages

Thursday, August 4, 2011

Configuring NTP in Solaris 10

First, go to /etc/inet and create ntp.conf. Define your NTP server and a place for the drift file:

# cd /etc/inet
# vi ntp.conf
server 172.16.10.51
driftfile /var/ntp/ntp.drift

Then start the NTP client:

# svcadm enable ntp

Check if it is running:

# pgrep -fl ntp
19907 /usr/lib/inet/xntpd
# ntpq -p
      remote       refid st t when poll reach delay offset    disp
================================================================== 172.16.10.51 172.16.0.99  2 u   20   64     1  0.35  3.099 15875.0


After that your Solaris server will have the same time like the NTP server.