Skip to main content

Questions tagged [ntpd]

The Network Time Protocol daemon (NTPd) is a daemon program that synchronizes the system time with time servers using the Network Time Protocol (NTP).

Filter by
Sorted by
Tagged with
1 vote
1 answer
66 views

Where can I find the configuration/setting for NTP to explain the specific behavior observed in an NTP client?

I have recently been doing a specific timing analysis of the performance of NTP under controlled conditions.  The experiment I performed was conceptually quite simple.  I have an NTP server running ...
Denis Barkats's user avatar
1 vote
2 answers
133 views

Why is the * symbol taking a long time to show up in 'ntpq -p' output?

I'm working on a C application that requires NTP time to be synchronized on the host before proceeding. I've essentially written a wrapper C function that executes the command ntpq -p If the output ...
Izzo's user avatar
  • 971
0 votes
1 answer
470 views

OpenNTPd not working in alpine Linux

In a Clean Alpine Linux install run apk add openntpd service openntpd start rc-update add openntpd Then modifiy the /etc/ntpd.conf to # $OpenBSD: ntpd.conf,v 1.16 2019/11/06 19:04:12 deraadt Exp $ # #...
Delfin's user avatar
  • 150
0 votes
0 answers
75 views

ntpd requires stripping out the HEX: prefix from SHA1 and SHA256 hex keys to interwork with chrond server

I am new to this business, and could not find the answers to the following: In order for ntpd client to sync up with chronyd server using a hex key value, I found that I need to strip out the HEX: ...
Ramsey's user avatar
  • 1
0 votes
1 answer
395 views

How to force update NTP date/time on a router?

The log of an Asus router with Padavan firmware (might be similar to OpenWrt) showed: Dec 4 16:06:20 NTP Client: Synchronizing time to 0.nl.pool.ntp.org. Oct 24 18:18:18 NTP Client: System time ...
Pro Backup's user avatar
  • 5,014
0 votes
1 answer
88 views

How do I remove ntpd from the final image with my own recipe?

I want to get rid of all ntpd related stuff from my yocto linux image. Currently I include the meta-openembedded layer, which is responsible that the NTP service ntpd is installed on my final image. ...
schande's user avatar
  • 115
1 vote
1 answer
65 views

ntpd local clock not immediately usable at boot

When configuring an NTP server with only the local clock, the server isn't usable to clients until over three minutes after ntpd starts by default. This is with "server 127.127.1.0 prefer". ...
Niklas Angare's user avatar
0 votes
1 answer
132 views

Force NTP step whenever the Internet comes up

Assume there is a PC with dead CMOS battery and unreliable Internet connection. As far as I understand, both chrony and ntpd try to correct huge time differences (years) once – upon startup, – but ...
ScumCoder's user avatar
  • 153
0 votes
0 answers
75 views

Ntpd client strange behavior

Jetson NX with latest Jetpack, NTP Ver. 4.2.8p10 I have some pools in /etc/ntp.conf (0.europe.pool.ntp.org) When I try ntdate -q 0.europe.pool.ntp.org all is ok But there is nothing except one ...
Mike Mint's user avatar
0 votes
1 answer
856 views

Is there a way for accurate timekeeping on Linux/Debian without NTP/Internet?

The only way I could get a working clock on Debian is by using NTP to sync the clock as described here. Is there a way to have a reliably accurate clock without NTP and without any Internet connection?...
mYnDstrEAm's user avatar
  • 4,388
1 vote
1 answer
119 views

How can I determine the current reliability [correctness] of the system time?

I'm working on a project which will acquire a lot of timestamped data at fairly high resolution (50 samples per second) over a very long period of time (years). The solution includes various failover ...
Philip Couling's user avatar
0 votes
0 answers
381 views

How to change the NTP servers that the VMware Esxi hypervisor uses?

I am trying to change the NTP servers that the VMware Esxi hypervisor uses. The system I am using is: [root@machine:~] esxcli system version get Product: VMware ESXi Version: 6.0.0 Build: ...
Léa Massiot's user avatar
1 vote
2 answers
2k views

NTP (NTPSec-1.2.2) client is able to sync time from NTP server even if the server does not switches from candidate to become system peer

I have a NTP setup (client-server association) where on the client side, I have below lines(among others) in ntp.conf: # This should be maxclock 7, but the pool entries count towards maxclock. tos ...
Piyush Singh's user avatar
1 vote
1 answer
345 views

Ntpd sets the sys time to the year 2156 after syncing to primary server

I have a couple boards that are setup to get time from another board as the source of truth. The primary has correct time, but when the other supporting boards attempt to sync to it, they select the ...
dckoo's user avatar
  • 13
1 vote
1 answer
9k views

NTP service shown "inactive" with 'timedatectl status'

On an Archlinux host, I noticed that command timedatectl status returned correct result for times (local and UTC) but also mentioned that the NTP service was inactive. That struck me as odd because ...
Cbhihe's user avatar
  • 2,731
1 vote
1 answer
2k views

NTP - tos maxdist explained

I had an issue with NTP today that I resolved by adding the line tos maxdistance 30 to my ntp.conf file. I found this solution online and am now trying to understand exactly what this line means. I ...
rush_hour's user avatar
0 votes
3 answers
394 views

NTPD killed by DHCP request / ack

My environment is a Debian 11 server ( bullseye ). As it is a test system I kept DHCP configuration on the interface as well as the DHCP server is configured to give always to same IP address based on ...
hans's user avatar
  • 63
2 votes
1 answer
11k views

ntpq peers output explanation

I got following output from ntpq command: # ntpq -pn remote refid st t when poll reach delay offset jitter =================...
Zaboj Campula's user avatar
2 votes
1 answer
1k views

How can I have ntpd act as a client only, and not a server?

I'm trying to configure a linux machine for NTP, but don't want that machine to reply at all to other machines which may make requests. But it will be acting as an NTP client, which means it will ...
Dave's user avatar
  • 61
1 vote
1 answer
1k views

Keep system clock synchronized to hardware clock

The situation: We have some Linux VMs running compute jobs. The VMs do not have Internet access (including NTP). The hypervisor does know the correct time. The hypervisor's time is exposed to the VM ...
Vladimir Panteleev's user avatar
2 votes
0 answers
714 views

Why is my NTP time sync root dispersion degrading over time?

I have a test network setup with a Mikrotik router with a 4G/LTE internet connection, connected to one Raspberry Pi via Ethernet cable, and to 30 more Raspberry Pis via wifi. I have set up NTP with ...
Hydrargyrum's user avatar
3 votes
1 answer
914 views

Check status of 11-Minute Kernel mode using adjtimex

I have a Debian Buster system which has the Kernel compiled without the CONFIG_RTC_SYSTOHC since I DO NOT want the 11-minute kernel mode to be on. However, I wanted to check if this change actually ...
Harsh's user avatar
  • 151
0 votes
0 answers
21 views

Syncing Debian ntpd with Windows time server [duplicate]

unfortunately my problem listed here was not solved. It would seem that the issue was not with the ntpdate at all: when bypassing the university network all together, time sync works correctly. The ...
ksonofre's user avatar
2 votes
2 answers
4k views

ntp server reachable but never select/set the time

We have some embedded devices using ntpd(4.2.8p10) to sync the time. One of our customers is using their own ntp server inside an internal network. From the ntpd -dgq debug mode, we found the server ...
tj2298's user avatar
  • 23
1 vote
2 answers
2k views

Why ntpd prompt 'no server found' whenI sync time manually?

My server is hosted in IDC, due to in this IDC server can't access to Internet, so I can use Internet NTP server. But IDC service provider have a atomic clock, so I can sync time with atomic clock. ...
fajin yu's user avatar
  • 455
1 vote
0 answers
138 views

Why is a NTP query sent to many servers

I have ntpd installed on Ubuntu and it already had some public NTP servers in the config file. When I capture the NTP packets on Wireshark, the NTP query is sent to a bunch of IP addresses and I get a ...
sash's user avatar
  • 11
1 vote
0 answers
229 views

Where, besides ntp.conf, do NTP servers used by ntpd come from?

The only NTP servers I have defined in /etc/ntp.conf are as follows: pool 0.debian.pool.ntp.org iburst pool 1.debian.pool.ntp.org iburst pool 2.debian.pool.ntp.org iburst pool 3.debian.pool.ntp.org ...
kshetline's user avatar
  • 111
2 votes
1 answer
2k views

How to fix excessively long ntpd sync times?

I am currently experiencing incredibly long sync delays with ntpd and, after much Googling, have decided to start a fresh thread as all 'remedies' have failed to work. The machine in question is a ...
Charles Johnson's user avatar
4 votes
2 answers
2k views

ntpd does not properly update drift by itself

I am using ntpsec of Debian unstable. In my log I saw the following: Mai 22 11:48:34 services ntpd[13428]: CLOCK: time stepped by 1.442261 Mai 22 11:55:06 services ntpd[13428]: CLOCK: time stepped by ...
MiB's user avatar
  • 161
2 votes
1 answer
654 views

Is ntpd working?

I'm running ntpd on my machine, but I'm not sure if it is working correctly. How can I query ntpd to determine whether it has successfully connected to time servers and that my kernel time is ...
Martin von Wittich's user avatar
1 vote
0 answers
913 views

Clockdiff: host is down

I have two computers in a Campus Network. They can ping each other. I can use ssh to connect one using the other one, but when I use clockdiff both show host is down. Is there any thing wrong? System ...
LurenAA's user avatar
  • 11
0 votes
1 answer
1k views

NTP synchronization is not happening continuously

I am working on a NTP client(Linux PC) to synchronize the time from NTP server(Linux PC). The NTP server in turn will synchronize the time from router. Router <- NTP server(Linux Machine) <- NTP ...
user3428693's user avatar
0 votes
1 answer
747 views

Is it possible to be notified when ntpd has updated system time?

I have a Raspberry Pi. It has no RTC. When it loses power, it has no idea how long it's been off until it checks the current time with NTP. I installed ntpd on it, and am running it as a systemd ...
John's user avatar
  • 477
2 votes
1 answer
106 views

If ntp.conf file has more than one NTP server, which one gets synced?

I have a VM for which the ntp.conf file has more than one server, like server 172.16.8.34 server 172.16.8.24 server 172.16.8.14 when I run ntpd -qg -c /etc/ntp.conf, which server gets synced? Is ...
Ragini Dahihande's user avatar
1 vote
0 answers
613 views

Why are ntpq -p and ntpstat showing different outputs of time differences and stratum value at all the times?

Why are ntpq -p and ntpstat showing different outputs of time differences and stratum value at all the times? And what does it mean "unspecified in the result from ntpstat", which one to ...
I dea's user avatar
  • 11
0 votes
2 answers
821 views

How to sync NTP without app or db downtime?

How can we sync the ntp gradually, without harming the timestamps in running application and database? My clock is 12 minutes ahead OS: Oracle Linux 6.4 NTP: ntpdate-4.2.4p8-3.el6.x86_64 ntp-4.2.4p8-3....
Ritesh Vishwakarma's user avatar
1 vote
0 answers
328 views

Update RTC drift file (adjtime) from NTP updates

I'm trying to improve the accuracy of the RTC clock on a buildroot embedded system that I'm working with. I need it to be accurate to 10 seconds over 2 weeks, while switched off and powered but ...
Alex's user avatar
  • 111
1 vote
1 answer
4k views

Problem with chrony 3.2 syncing to NTP server pools

I have a problem similar to Chrony 3.1 refuses to sync with ntp server Scenario: A newly installed server using SLES15 SP2 is running chrony 3.2. I had configured two NTP server pools that run the ...
U. Windl's user avatar
  • 1,493
2 votes
1 answer
2k views

NTPd multicast setup

I need to setup a ntp multicast client. To be able to check of my configuration is good, I trIde to setup an NTP multicast server. My setup : 2 VM of Centos 7, up to date I am using 2 virtual machine ...
iXô's user avatar
  • 205
1 vote
0 answers
1k views

RHEL 6: service ntpd status ntpd dead but pid file exists

I am trying to start the ntpd service. Because the NTP status is service ntpd status ntpd dead but PID file exists I tried to kill the ntpd process. After trying ps -ef | grep ntpd and unable to find ...
fusu's user avatar
  • 111
1 vote
0 answers
136 views

Offline time synchronisation in cascade

I have the following setup : [Group1] : - Server 1 (Linux) - Client 1 (Windows) - Client 2 (Windows) ... - Client n (Windows) [Group2] : - Server 2 (Linux) - Client 1 (Windows) - Client 2 (Windows) ...
Flyerjet's user avatar
0 votes
0 answers
587 views

How to reject ntpd query results with large delay or offsets?

Sometimes I get large offsets when my ntpd try to sync the local clock. I think these show up as spike_detect in the log followed by clock_step because the offset is too large. These instances seem to ...
Syncopated's user avatar
0 votes
0 answers
1k views

ntpq behavior seems wrong

I'm investigating a system failure related to NTP and time sync operations. The problem is hard to duplicate, so I went about just doing some sanity checking to see if different conditions would yield ...
Jim's user avatar
  • 101
3 votes
2 answers
9k views

Should I disable systemd-timesyncd if ntp is installed?

Is there any issue with running systemd-timesyncd and ntp on the same machine? I'm asking this because I have started using NTP on all servers but the systemd-timesyncd is running there as well. ...
user630702's user avatar
1 vote
2 answers
3k views

NTP time always wrong after reboot. It syncs with ESX even with NTP setup

I've installed NTP and the internal NTP server peer is stratum 2. However, every time I reboot the server, the VM time is synced with the ESX host and is then 6 hours ahead. I did run ntpdate -s x.x....
user630702's user avatar
0 votes
2 answers
1k views

Do I really need to run ntpd to keep my machine clock in synch with the NTP protocol?

I'm using Devuan GNU/Linux (~= Debian Buster without systemd) on my machine. On Debian-based systems, we can install the packages ntpdate, which provides the ntpdate binary - an NTP client that ...
einpoklum's user avatar
  • 9,643
1 vote
2 answers
1k views

How to see which devices on a network use your unix NTP server?

I'm running a Unix server with NTPD version 4.2.7. I have various clients using this as its main NTP server such as other unix servers, cameras, IOT devices, etc. I want to get a list of which IPs are ...
Strainger's user avatar
1 vote
1 answer
4k views

Fresh NTPD install stays unsynchronised

I am trying to get NTP working on a Raspberry Pi using ntpd. I've disabled systemd-timesyncd and installed ntp by using: $ sudo apt-get install ntp But after installing it, ntp does not synchronise ...
Joost Baars's user avatar
0 votes
1 answer
102 views

Where can I get a complete reference for ntp.conf?

I am currently setting up a new Linux server, and as always, I am struggling with the NTP daemon (Debian buster, package ntp, so it is the BSD variant), especially with /etc/ntp.conf and the restrict ...
Binarus's user avatar
  • 3,420
1 vote
1 answer
6k views

NTP Unexpected origin timestamp

I can't start NTP service, so the time of the machine is wrong. Mar 14 11:36:25 ntpd[27956]: receive: Unexpected origin timestamp 0xe2174e4d.523af1e4 does not match aorg 0000000000.00000000 from ...
pioupiou's user avatar
  • 866