This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

NTP Client Details
#2
Disable both NTP server and client in system config. Create a resident script with sleep time set to 5 seconds. You can replace region (europe) with 2-letter country code (de, fr, etc) for more precise time updates.
Code:
reg = 'europe' cmd = '/usr/sbin/ntpd -ddd -l -n -p 0.%s.pool.ntp.org -p 1.%s.pool.ntp.org -p 2.%s.pool.ntp.org -p 3.%s.pool.ntp.org 2>&1' cmd = string.format(cmd, reg, reg, reg, reg) proc = io.popen(cmd) while true do   line = proc:read()   if line then     if line:find('responded to query from') then       ip = line:match('%d+%.%d+%.%d+%.%d+')       log('NTP query', ip)     end   else     break   end end proc:close()
Reply


Messages In This Thread
NTP Client Details - by CHOUAIBOU - 30.09.2025, 07:44
RE: NTP Client Details - by admin - 30.09.2025, 08:22
RE: NTP Client Details - by CHOUAIBOU - 30.09.2025, 09:11
RE: NTP Client Details - by CHOUAIBOU - 01.10.2025, 08:32
RE: NTP Client Details - by admin - 01.10.2025, 08:48
RE: NTP Client Details - by CHOUAIBOU - 01.10.2025, 12:02
RE: NTP Client Details - by admin - 01.10.2025, 12:14
RE: NTP Client Details - by CHOUAIBOU - 02.10.2025, 03:56

Forum Jump: