Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.


Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.


Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.


Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Commands & Shells

Enable NTP Client on Solaris 11

Submitted by on October 7, 2014 – 8:27 pm One Comment

Just some quick instructions for configuring and enabling NTP client on Solaris 11.

Backup the existing ntp.conf file, if it exists:

if [ -r /etc/inet/ntp.conf ] ; then /bin/mv /etc/inet/ntp.conf /etc/inet/ntp.conf_`date +'%Y-%m-%d_%H%M%S'`

Create a new ntp.conf:
cat << EOF > /etc/inet/ntp.conf
driftfile /var/ntp/ntp.drift
statsdir /var/ntp/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable

Run time update once manually to verify connectivity:
# ntpdate
 7 Oct 20:02:34 ntpdate[25549]: step time server offset 153.036870 sec

Enable ntp client service and verify it is working:
svcadm enable ntp

root@solaris11:~# svcs | grep ntp
online         20:02:41 svc:/network/ntp:default

See what NTP client is doing:
root@solaris11:~# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
*    2 u   19   64  377   32.289   29.129   9.017
+ntp.awesomemari     3 u   21   64  377   22.788   18.035  15.603
xtime01.muskegon     2 u   13   64  377   33.524  -334.25  25.541
+sola-dal-09.ser  3 u   20   64  377   38.119   41.857  16.345


Print Friendly, PDF & Email

One Comment »

Leave a Reply

%d bloggers like this: