linux:ntp
This is an old revision of the document!
Table of Contents
NTP
Befehle
rcntp ntptimeset #Zeit mit NTP-Server synchroniseren (SLES legacy) ntpq -p #show peers timedatectl sudo timedatectl set-ntp true sudo timedatectl set-local-rtc 0 systemctl status systemd-timesyncd sudo systemctl restart systemd-timesyncd
Zeitzone setzen
timedatectl status timedatectl list-timezones | egrep -o "Europe/B.*" sudo timedatectl set-timezone "Europe/Berlin" sudo nano /etc/systemd/timesyncd.conf sudo systemctl restart systemd-timesyncd sudo systemctl status systemd-timesyncd
chrony
chrony.conf
server 192.168.1.1 allow 10.1.0.0/16 allow 192.168.1.0/24
restart chrony service
systemctl restart chronyd
check if new ntp server is used
journalctl --since -1h -u chronyd
client
chronyc activity chronyc 'burst 4/4' # might interrupt services chronyc -N sources
linux/ntp.1775413492.txt.gz · Last modified: by gsys