ntpstat is a shell script which prints the ntpd or chronyd synchronisation status, using the ntpq or chronyc program.