How do I find my NTP server Linux?

How do I find my NTP server Linux?
Answer
The ntpstat command will report the synchronisation state of the NTP daemon running on the local machine.
…
exit status of ntpstat command
  1. If exit status 0 – Clock is synchronised.
  2. exit status 1 – Clock is not synchronised.
  3. exit status 2 – If clock state is indeterminant, for example if ntpd is not contactable.
 

Tìm kiếm

Back
Top