You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to get the NTP Synchronized status by this api .
l want to find a command that can show the machine readable attribution for which is like a constant string or number no matter in other Debian version .
My linux version : Debian 9
The text was updated successfully, but these errors were encountered:
ntplib is designed to be an implementation of the ntp protocol.
But this ntp synchronised status is not part of the ntp protocol, it's implemented by the ntp client/daemon, and is actually quite complex (dealing with outliers, etc).
So there is no access to this status from ntplib - which queries a single server btw.
Depending on what you are trying to achieve, you might get away which just checking that the offset is lower than an hard-coded threshold but it's probably fragile: I guess that if you just want this status you might have to query whatever client your machine is using.
I want to get the NTP Synchronized status by this api .
l want to find a command that can show the machine readable attribution for which is like a constant string or number no matter in other Debian version .
My linux version : Debian 9
The text was updated successfully, but these errors were encountered: