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
'System Software > Linux' 카테고리의 다른 글
[리눅스] vsftpd (0) | 2022.03.17 |
---|---|
[리눅스] /etc/httpd/conf/httpd.conf (0) | 2022.03.17 |
[리눅스] /etc/fstab (0) | 2022.03.17 |
[리눅스 명령어] iptables / iptables-save / iptables-restore (0) | 2022.03.16 |
[리눅스 명령어] named-checkconf / named-checkzone (0) | 2022.03.16 |
[리눅스 명령어] mailq / sendmail (0) | 2022.03.16 |
[리눅스 명령어] rpcinfo / exportfs / showmount / nfsstat (0) | 2022.03.16 |
[리눅스 명령어] smbclient / smbstatus / testparm / nmblookup / mount.cifs / smbpasswd / pdbedit (0) | 2022.03.16 |