리눅스 시간 동기화 ntpdate

1 개요[ | ]

리눅스 ntp 시간 동기화
리눅스 ntpdate
/usr/sbin/ntpdate
  • NTP를 통해 날짜와 시각을 설정하는 프로그램/명령어

2 동기화[ | ]

ntpdate 서버주소

원격서버와 시간 동기화

3 시간 비교하기[ | ]

ntpdate -d 서버주소

로컬 서버와 원격 서버의 시간 차이 알아보기.

[root@localhost ~]# ntpdate -d 121.182.147.191
13 Feb 10:56:21 ntpdate[31646]: ntpdate 4.2.2p1@1.1570-o Tue Dec  8 20:30:45 UTC 2009 (1)
Looking for host 121.182.147.191 and service ntp
host found : 121.182.147.191
transmit(121.182.147.191)
receive(121.182.147.191)
transmit(121.182.147.191)
receive(121.182.147.191)
transmit(121.182.147.191)
receive(121.182.147.191)
transmit(121.182.147.191)
receive(121.182.147.191)
transmit(121.182.147.191)
server 121.182.147.191, port 123
stratum 1, precision -19, leap 00, trust 000
refid [GPS], delay 0.03165, dispersion 0.00095
transmitted 4, in filter 4
reference time:    d2e2ec25.45ba4af1  Mon, Feb 13 2012 10:55:49.272
originate timestamp: d2e2ec25.4d632a8e  Mon, Feb 13 2012 10:55:49.302
transmit timestamp:  d2e2ec46.05db445e  Mon, Feb 13 2012 10:56:22.022
filter delay:  0.04683  0.03171  0.03188  0.03165
         0.00000  0.00000  0.00000  0.00000
filter offset: -32.7162 -32.7236 -32.7237 -32.7236
         0.000000 0.000000 0.000000 0.000000
delay 0.03165, dispersion 0.00095
offset -32.723633

13 Feb 10:56:22 ntpdate[31646]: step time server 121.182.147.191 offset -32.723633 sec

→ 로컬서버가 121.182.147.191보다 32.72초 빠름.

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}