Configuring NTP in Solaris 10

por | 7 mayo, 2010

cp /etc/inet/ntp.server /etc/inet/ntp.conf

edit the ntp.conf file.

For an undisciplined local clock:

change `server 127.127.XType.0`
to `server 127.127.1.0′
comment out `fudge 127.127.XType.0 stratum 0`

Syncing to an external NTP server:

(see NTP.Servers Web for a list of public time servers)

change `server 127.127.XType.0`
to `server externel time server`
(where externel time server is the IP or hostname of the
time server you wish to sync to)

you may add multiple external servers here, in this format:

server externel time server1
server externel time server2
server externel time server3

comment out `fudge 127.127.XType.0 stratum 0`

touch /var/ntp/ntp.drift
svcadm enable svc:/network/ntp

# table above.
server time-a.nist.gov
server nist1-ny.ustiming.org
server time-a.timefreq.bldrdoc.gov
#fudge 127.127.XType.0 stratum 0
broadcast 224.0.1.1 ttl 4
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

—————————————-
Configuring an NTP Client in Solaris 10:
—————————————-

cp /etc/inet/ntp.client /etc/inet/ntp.conf
svcadm enable svc:/network/ntp