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
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
==================================================================  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.

No comments:

Post a Comment