On 2020-01-10 11:15 AM, Per Jessen wrote:
James Knott wrote:
On 2020-01-10 10:57 AM, Per Jessen wrote:
What does "systemctl status ntpd" say? [snip log]
That's only the log output, I would like to see the whole thing, like this:
office31:~ # systemctl status ntpd ● ntpd.service - NTP Server Daemon Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled) Drop-In: /run/systemd/generator/ntpd.service.d └─50-insserv.conf-$time.conf # systemctl status ntpd ● ntpd.service - NTP Server Daemon Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled) Drop-In: /run/systemd/generator/ntpd.service.d └─50-insserv.conf-$time.conf Active: active (running) since Fri 2020-01-10 10:48:56 EST; 11min ago Docs: man:ntpd(1) Process: 10067 ExecStart=/usr/sbin/start-ntpd start (code=exited, status=0/SUCCESS) Main PID: 10076 (ntpd) Tasks: 2 (limit: 4915) CGroup: /system.slice/ntpd.service ├─10076 /usr/sbin/ntpd -p /var/run/ntp/ntpd.pid -g -u ntp:ntp -c /etc/ntp.conf └─10077 ntpd: asynchronous dns resolver
Jan 10 10:48:56 linux systemd[1]: Starting NTP Server Daemon... Jan 10 10:48:56 linux ntpd[10075]: ntpd 4.2.8p13@1.3847-o (1): Starting Jan 10 10:48:56 linux ntpd[10075]: Command line: /usr/sbin/ntpd -p /var/run/ntp/ntpd.pid -g -u ntp:ntp -c /e> Jan 10 10:48:56 linux ntpd[10076]: proto: precision = 0.046 usec (-24) Jan 10 10:48:56 linux ntpd[10076]: basedate set to 2019-02-27 Jan 10 10:48:56 linux ntpd[10076]: gps base set to 2019-03-03 (week 2043) Jan 10 10:48:56 linux ntpd[10076]: switching logging to file /var/log/ntp Jan 10 10:48:56 linux start-ntpd[10067]: Starting network time protocol daemon (NTPD) Jan 10 10:48:56 linux systemd[1]: Started NTP Server Daemon.
d) your machine is so way out of sync that ntpd won't sync it unless forced. (run ntpdate). # ntpdate 10 Jan 11:03:43 ntpdate[25316]: no servers can be used, exiting If you need to force a synch, you use "ntpdate <server>".
# ntpdate 172.16.0.1 10 Jan 11:24:47 ntpdate[11499]: adjust time server 172.16.0.1 offset -0.000036 sec
However, NTP is working. I can see the packets with Wireshark. I'm using my firewall as the source. Also, my computer time matches a clock that receives a signal from WWVB. So eventually ntpq will produce some useful output too.
I'm now taken to a ntpq prompt. I've tried some of the commands. Some like host work, but others such as sysinfo or sysstats return connection refused. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org