1. OpenSolaris/ntpd

1.1. Background

To configure ntpd on OpenSolaris

1.2. Setting correct time

ntpdate time1.stupi.se

1.3. /etc/inet/ntp.conf

There is an example in the /etc/inet/ntp.server file!

# Either a peer or server.  Replace "XType" with a value from the
# table above.
server time1.stupi.se

enable auth monitor
driftfile /var/ntp/ntp.drift
statsdir /var/ntp/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable

keys /etc/inet/ntp.keys
trustedkey 0
requestkey 0
controlkey 0


# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery

# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1

1.4. Enable ntpd

svcadm enable ntp

1.5. Checking that ntpd works

root@sungirl:/etc/inet# ntpq -p
     remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
 ntp.skola.skell 193.180.154.75   2 u   32   64    7     0.12   58.149 3876.74


CategoryOpensolaris

OpenSolaris/ntpd (last edited 2009-05-26 23:46:04 by JanåkeRönnblom)