赞
踩
Solaris 8/9 NTP Configuration Process
NTP Server
NTP Client
(1)
[1] Edit ntp.conf
root@TESTMACHINE # cd /etc/inet
root@TESTMACHINE # ls
datemsk.ndpd
hosts
inetd.conf
ipnodes
ipsecinit.sample
mipagent.conf-sample
root@TESTMACHINE # vi ntp.conf
# @(#)ntp.server
#
# /etc/inet/ntp.server
#
# An example file that could be copied over to /etc/inet/ntp.conf and
# edited; it provides a configuration template for a server that
# listens to an external hardware clock, synchronizes the local clock,
# and announces itself on the NTP multicast net.
#
# This is the external clock device.
# recognized by xntpd 3-5.93e:
#
# XType Device
# -------------------------------------------------------
#
#
#
#
#
#
#
#
#
# 10
# 11
# 12
# 13
# 15
# 17
# 18
# 19
# 20
# 22
# 23
# 24
# 25
# 26
# 27
#
# * All TrueTime receivers are now supported by one driver, type 5.
#
#
#
# Some of the devices benefit from "fudge" factors.
# documentation.
# Either a peer or server.
# table above.
server 127.127.1.0
fudge 127.127.1.0
#broadcast 10.87.0.0
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
[2] Stop/Start NTP Service
root@TESTMACHINE # /etc/init.d/xntpd start
root@TESTMACHINE # /etc/init.d/xntpd stop
(2)
[1] Edit ntp.conf
root@testserver01 # cd /etc/inet
root@testserver01 # ls
datemsk.ndpd
hosts
ike
inetd.conf
ipnodes
ipsecinit.sample
mipagent.conf-sample
root@testserver01 # vi ntp.conf
# ident "@(#)ntp.client 1.3
#
# /etc/inet/ntp.client
#
# An example file that could be copied over to /etc/inet/ntp.conf; it
# provides a configuration for a host that passively waits for a server
# to provide NTP packets on the ntp multicast net.
#
server 10.87.0.9
#multicastclient 10.87.0.0
driftfile /var/ntp/ntp.drift
[2] Stop/Start NTP Service
root@testserver01 #/etc/init.d/xntpd start
root@testserver01 # /etc/init.d/xntpd stop
server 10.87.0.9, stratum 11, offset -0.000428, delay 0.02727
[5]Stop Auto-Sync,Start Manual-Sync:
root@testserver01 # ntpdate 10.87.0.9
root@testserver01 # ps -ef|grep ntp
root@testserver01 # kill -9 9988
root@testserver01 # ps -ef|grep ntp
root@testserver01 # ntpdate 10.87.0.9
root@testserver01 # ps -ef|grep ntp
root@testserver01 # ntpdate 10.87.0.9
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。