NTP time not updated periodically

User avatar
tma
Experienced Member
 
Posts: 122
Joined: Tue Mar 03, 2015 4:07 pm
Location: Oberursel, Germany
Has thanked: 15 times
Been thanked: 14 times

NTP time not updated periodically

Mon Jan 15, 2018 9:24 pm

Eric, folks upgrading to newest firmware often will likely not see this as the switch sets its time on each reboot. I've just noticed that some of my 1.3.9 switches are off by 10 minutes after an uptime of more than a year. Switches with 1.4.7 haven't run that long obviously and the deviation is less, but still some 2 minutes in some cases. Obviously, with 1.4.8 and newer, you could probably not see the effect as this firmware is too new for drift to add up and become noticeable.

So I successfully tried

ntpclient -s -D -h <ntp.server.name.or.ip>

which tells me that the connection to our NTP server is okay and that the switches (tested up to 1.4.7) do not use ntpclient periodically. /usr/bin/monitor initiates ntpclient only if the year is 1970 (after boot) and there is no crond around to run it periodically. A quick fix would be to start ntpclient in the background from /usr/bin/monitor once a day, i.e. every 8640th cycle.
--
Thomas Giger

User avatar
Eric Stern
Employee
Employee
 
Posts: 532
Joined: Wed Apr 09, 2014 9:41 pm
Location: Toronto, Ontario
Has thanked: 0 time
Been thanked: 130 times

Re: NTP time not updated periodically

Tue Jan 16, 2018 11:21 am

I'll look into this.

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 16 guests