Re: [chrony-users] Indication / notification that chrony is synched with an ntp source successfully using chronyc |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Indication / notification that chrony is synched with an ntp source successfully using chronyc
- From: Miroslav Lichvar <mlichvar@xxxxxxxxxx>
- Date: Tue, 22 Oct 2019 14:32:50 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571747576; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XDqC/xQx9eW985GnzlwNnH+6YwaGqkX7XWnYUmQqX+w=; b=C2jns/o7A1gVvR85rDHSVoeZdz8zFGwQK6U/CxaQjwhKdhWg9BEd0AV+Alzj41GVX3Uv7S vVqeIIqJgyqRJ3tZOS/3HtJ+fvkieATFAACATnUlnorDQ1Tm4oyaTzX5BZu5/2IiycrDGU jsMK0cSbUP9OcKLgQ4ZLMRRoaqkPACE=
On Tue, Oct 22, 2019 at 12:21:56PM +0000, Philipp Hofstetter wrote:
> We configured chrony to do a step, if the difference between the system clock and the ntp-time is greater than 1 second, but only for the first three synchronizations:
> makestep 1.0 3
>
> If we understood it correctly, we don't have to expect another time step when this 3 synchronizations have been done successfully - is that corrrect?
Yes.
> Is it somehow possible to know from outside (e.g. using chronyc or reading log files, etc) when chrony has done with these 3 first synchronozations? We didn't see an onbvious possibility using chronyc to gather such an information.
One possibility would be to count how many times has changed the
"Ref time" field in chronyc tracking, e.g. repeating the command once
per second.
If you changed the number of updates in makestep from 3 to 1, you
could just check if the Reference ID is not 0.0.0.0, or use the
chronyc waitsync command.
Another possibility is to enable the tracking log and count lines that
don't have the 0.0.0.0 IP address.
--
Miroslav Lichvar
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.