게시물 1,376건
   
rdate, ntpdate 차이점
글쓴이 : 최고관리자 날짜 : 2010-11-19 (금) 15:58 조회 : 16585
글주소 :
                                
rdate
UDP 37번포트 사용

ntpdate 
123번포트 사용

 -b     
 Force the time to be stepped using the settimeofday() system call, rather than slewed (default) using the adjtime() system call. This option should be used when called from a startup file at boot time.
 -u     
 Direct  ntpdate to use an unprivileged port for outgoing packets. This is most useful when behind a firewall that blocks incoming traffic to privileged ports, and you want to synchronize with hosts beyond  the  firewall.  Note  that  the  -d option always uses unprivileged ports.
※ ntpdate는 settimeofday(), adjtime()의  2가지 시스템 콜로 시간을 설정한다.
  settimeofday()은 timezone과 시간을 설정하고, adjtime()은 점근적 시각 보정 방식으로 커널 클럭을 조정한다. 주로 시간 동기화에 사용한다.
ntpdate는 옵션(-b, -B)을 지정하지 않으면 현재 시스템 시간과 차이가 128ms 이상이면 settimeofday()을, 이내이면 adjtime()을 사용한다.
또한 강제적으로 ntpdate -b 로 settimeofday()를, ntpdate -B로 adjtime()를 사용할 수 있다.
ntpdate 실행 결과 메시지에 'step time server...'로 표시되면 setimeofday()가 사용되었고, 'adjust time server...' 로 표시되면 adjtime()가 사용되었다.
부팅할 때는 ntpdate -b 로, cron등으로 정기적으로 시간조절을 할 때는 옵션없이 ntpdate 사용
즉.... 패킷 시간차까지 계산해 주는 ntpdate가 rdate 보다 정확도가 높다.

이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.