Reading time: 2 minutes
Configuring an NTP client in Solaris 11
It is really easy to configure an NTP client on a plain standard Solaris 11 (that said it isn’t more difficult on Solaris 10 … it’s the same procedure). So i will just give a very short walkthrough.
At first you have to create a config file. You can edit
/etc/inet/ntp.client, edit it and copy it to
I’m prefering using 4 time servers. I think you could either use 1 or 4 ntp servers. Never use 2. And don’t use three, as when one fails, you have two time servers. And as i said, never use two. Why? An old saying goes: You never know how late it is when you have two clocks. I suggest reading the pool.ntp.org website for choosing a pool as there are continental and country-wide pools as well that may result in a more precise time. As Brian correctly stated in the comments, choosing a pool with servers containing only servers near you can really influence the precision of the time. So for example when you are living in the germany, you would use
0.de.pool.ntp.org for example, when you are living in the United states you would use
Now we add some additional configuration information. It’s more or less a copy of the stuff in </code>/etc/inet/ntp.client</code>:
For a production environment, please consider the information in DocID 1663620.1.
As you surely know, the ntp daemon doesn’t synchronize time, when the time offset between time on the client and the time on the server is too large. So doing a ntpdate to initially force a time sync is a good idea:
Now we just have to enable ntp via SMF
And voila, one line has a *. NTP is starting to do it’s job: