[ntp:questions] what is refid in ntpq -pn

Nathan Stratton Treadway nathanst+ntp-questions at ontko.com
Wed May 17 18:04:00 UTC 2017


On Sat, May 13, 2017 at 12:46:28 -0700, Hans Mayer wrote:
> 
> On 7 May 2017, at 00:12, Steven Sommars <stevesommarsntp at gmail.com> wrote:
> > If using the IPv6 address family, it is the first four octets of the MD5 hash of the IPv6 address.
> 
> OK, now I understand, this makes sense. I am using dual stack on my application server as well as on all ntp server. And I am using DNS names in ntp.conf. I see similar refid's because all my application server have identical 4 ntp upstream server.
> 
> But hard to verify. Has somebody a tool to convert an IPv6 in usual notation to change into  32 hex-chars without ":" character ? 

If you are asking for something that converts IPv6 addresses into the
NTP Refid format so you can determine which upstream address is
indicated by a particular Refid, there's some sample Python code
available at:
  http://support.ntp.org/bin/view/Support/RefidFormat


							Nathan


----------------------------------------------------------------------------
Nathan Stratton Treadway  -  nathanst at ontko.com  -  Mid-Atlantic region
Ray Ontko & Co.  -  Software consulting services  -   http://www.ontko.com/
 GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt   ID: 1023D/ECFB6239
 Key fingerprint = 6AD8 485E 20B9 5C71 231C  0C32 15F3 ADCD ECFB 6239


More information about the questions mailing list