How can I tell if my Debian system is keeping the system time accurate by getting NTP updates? Basically I want to turn this on if it is currently off, but I don't know if it is on or off.
and checking that the output contains something like
will confirm that ntpd is running. If it's not running then you can start it with
If you get an error message
Once you have ntpd running you can talk to it with the ntpq command.
Which shows (offset) that my system is <1 second out of sync - I can live with that.
If you have peer statistics enabled in your
To see what the values are use
If you run Munin to monitor your system it can track you ntp statistcs for you. I believe the offset it records is the value relative to the currently synchronization source. That is the one on the line starting with an asterisk (*) in the
ntp_offset.delay.warning 40 ntp_offset.offset.warning -15:15
A cheap and dirty way to check the local clock vs another machine is this shell command sequence:
"somehost" has to run the RFC 867 "daytime" protocol, and that's not so common anymore. inetd can provide "daytime" by itself, and some hosts still have "daytime" enabled.
You can at get an independent check on the local clock, no use of NTP necessary.