NTP 서버 셋팅하기
-----------------------------------
SERVER 셋팅
cp /etc/inet/ntp.server /etc/inet/ntp.conf
vi /etc/inet/ntp.conf
server 127.127.XType.0 fudge 127.127.XType.0 stratum 0 라고 되어 있는 내용을 다음과 같이 수정 server 127.127.1.0 fudge 127.127.1.0 stratum 0 |
ls /var/ntp/ntp.drift 파일이 있는지 확인
없다면 파일생성 touch /var/ntp/ntp.drift
/etc/init.d/xntpd start
( 솔라리스 10일 경우 svcadm -v enable ntp)
# ps -ef | grep ntp ...
# snoop | grep -i
--------------------------------------
CLEINT 셋팅
cp /etc/inet/ntp.client /etc/inet/ntp.conf
vi /etc/inet/ntp.conf
multicastclient 1.1.1.1 (앞전에 설치했던 NTP 서버 IP) |
date 0101012007
2007년 1월 1일 월요일 오전 01시 20분 00초
/etc/init.d/xntpd start
( 솔라리스 10일 경우 svcadm -v enable ntp)
# ps -ef | grep ntp
# date 서버와 동기되었는지 확인
NTP 셋팅 제거
-------------------------------------------
SERVER
/etc/init.d/xntd stop
( 솔라리스 10일 경우 svcadm disable ntp )
ps -ef | grep ntp
rm /etc/inet/ntp.conf
rm /var/ntp/ntp.drift
-------------------------------------------
CLIENT
/etc/init.d/xntd stop
( 솔라리스 10일 경우 svcadm disable ntp)
ps -ef | grep ntp => 멈췄는지 확인....
rm /etc/inet/ntp.
========================================================================================================= Solaris10 실제 적용 사례 solaris1:/# cp /etc/inet/ntp.server /etc/inet/ntp.conf solaris1:/# vi /etc/inet/ntp.conf "/etc/inet/ntp.conf" 68 Çà, 2809 ¹®ÀÚ # ident "@(#)ntp.server 1.7 03/01/17 SMI" # # Copyright 1996-2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # /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. The following devices are # recognized by xntpd 3-5.93e: # # XType Device RefID Description # ------------------------------------------------------- # 1 local LCL Undisciplined Local Clock # 2 trak GPS TRAK 8820 GPS Receiver # 3 pst WWV PSTI/Traconex WWV/WWVH Receiver # 4 wwvb WWVB Spectracom WWVB Receiver # 5 true TRUE TrueTime GPS/GOES Receivers / # 26 hpgps GPS Hewlett Packard 58503A GPS Receiver # 27 arc MSFa Arcron MSF Receiver # # * All TrueTime receivers are now supported by one driver, type 5. # Types 15 and 25 will be retained only for a limited time and may # be reassigned in future. # # Some of the devices benefit from "fudge" factors. See the xntpd # documentation. # Either a peer or server. Replace "XType" with a value from the # table above. #server 127.127.XType.0 #fudge 127.127.XType.0 stratum 0 server 127.127.1.0 fudge 127.127.1.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 "/etc/inet/ntp.conf" 70 Çà, 2858 ¹®ÀÚ solaris1:/# ls /var/ntp/ntpd.drift /var/ntp/ntpd.drift: ÇØ´ç ÆÄÀÏÀ̳ª µð·ºÅ丮°¡ ¾øÀ½ solaris1:/# touch /var/ntp/ntpd.drift solaris1:/# svcadm -v enable ntp svc:/network/ntp:defaultÀ»(¸¦) »ç¿ëÇÕ´Ï´Ù. solaris1:/# ps -ef|grep ntp root 23018 22950 0 17:39:31 pts/4 0:00 grep ntp root 23015 1 0 17:39:25 ? 0:00 /usr/lib/inet/xntpd solaris1:/#
'개인활동 > 잡동사니팁들' 카테고리의 다른 글
ATL100.DLL ERROR (0) | 2013.08.20 |
---|---|
OS 버전에 상관없이 사용가능한 스크립스 랭귀지(script language) (0) | 2012.08.12 |
FRAND - Fair, Reasonable and Non Discriminatory terms (0) | 2011.09.27 |
python - 나중에 공부해봐야지... (0) | 2011.09.26 |
SIP 정의 (0) | 2011.03.20 |