I have a customer running 4.2.8p11 who is doing some leap second
testing. They gave me the procedure they followed, which was essentially
to set the leap second flag on the up stream server and observe if the
leap second flag on the client eventually set and if the kernel
processed the leap second correctly.

They observed some failures by the client to detect the flag. I am
attempting to recreate their test. The procedure they gave me to set the
leap flag is to use the command "writevar 0 leap=01" in ntpq, with
proper keys of course.

My problem is that when I run this command it always returns "***Server
returned an unspecified error"

When I looked at the code for "write_variables" in ntp_control.c, I
don't see how the writevar could ever work. There are two lists of
variables, a static one in the array sys_var and a user defined one in
the array ext_sys_var. When the name of the variable is processed it
looks first in sys_var, and if it is not found it then looks in
ext_sys_var. But the subsequent processing only sets the variable if it
is in ext_sys_var. The variable "leap" is in sys_var, so it looks to me
as if there is no way to set the leap flag to add a second. Yet my
customer says they just did it.

What am I doing wrong? I know I can do this with a fiddled leap seconds
file, but that is much less convenient than just running a command. If
anyone has any hints on working with the leap seconds file, I would
appreciate that, since it looks like I will have to bite the bullet and
do that unless someone here can point me to the error of my ways.

Thanks.

-- 
All working systems eventually start to exhibit their own agenda.

Oracle <http://www.oracle.com>
Brian Utterback | Principal Software Engineer
Phone: +16038973049 <tel:+16038973049>
https://oracle.zoom.us/s/2728168892
https://myoracle.webex.com/join/brian.utterback
Oracle Systems/Solaris Networking
1 Oracle Dr. | Nashua, NH 03062

------------------------------------------------------------------------
I have not lost my mind. It's backed up in the cloud somewhere.
------------------------------------------------------------------------
Green Oracle <http://www.oracle.com/commitment> Oracle is committed to
developing practices and products that help protect the environment
_______________________________________________
questions mailing list
questions@lists.ntp.org
http://lists.ntp.org/listinfo/questions

Reply via email to