-->

별의 공부 블로그 🧑🏻‍💻
728x90

ntpq

  • NTP 질의 응답 명령어

 

사용법

# ntpq [option]

 

주요 옵션

옵션 설명
-p 연결된 서버(Peers)의 상태를 출력해줌.

 

사용 예

예 1
  • 대화형으로 질의
    • help 라고 입력하면 사용 가능한 명령어의 목록을 보여줌.
    • peers, delay 등의 명령을 입력할 수 있음.
# ntpq
ntpq> help
ntpq commands:
:config delay mreadvar readlist
addvars exit mrl readvar
associations help mrv rl
authenticate host ntpversion rmvars
cl hostnames opeers rv
clearvars keyid passociations saveconfig
clocklist keytype passwd showvars
clockvar lassociations peers timeout
config-from-file lopeers poll version
cooked lpassociations pstatus writelist
cv lpeers quit writevar
debug mreadlist raw
ntpq> peers
ntpq: read: Connection refused

 

예 2
  • 연결된 서버의 상태 출력
# ntpq -p

 

 

ntpdate

  • NTP 서버를 이용해서 시간을 동기화할 때 사용하는 명령어

 

사용법

# ntpdate NTP_서버

 

사용 예

# ntpdate 203.240.40.248
728x90


📖 Contents 📖
ntpq사용법주요 옵션사용 예ntpdate사용법사용 예