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).
142
questions
2
votes
1answer
36 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 ...
1
vote
0answers
29 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 ...
0
votes
2answers
49 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....
0
votes
0answers
33 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 ...
0
votes
1answer
239 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 ...
2
votes
1answer
210 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 ...
1
vote
0answers
307 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 ...
1
vote
0answers
10 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)
...
0
votes
0answers
37 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 ...
0
votes
0answers
44 views
check Ntp daemon via Ntp3 protocol
On the server, I stop the chronyd daemon (ver 3.5).
I start it and send a NTP3 CLIENT query, to localhost port 123/udp:
NTP_VERSION << 3 | NTP_MODE_CLIENT
The first answer has the status 0xdc ...
0
votes
0answers
315 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 ...
1
vote
2answers
1k 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. ...
2
votes
2answers
754 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....
0
votes
2answers
79 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 ...
1
vote
1answer
87 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 ...
1
vote
1answer
1k 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 ...
0
votes
0answers
180 views
NTP enabled vs NTP synchronized
I'm trying to understand the difference between NTP enabled and NTP synchronized on my Ubuntu 14.04 system
$ timedatectl status
Local time: Wed 2020-03-25 19:09:30 PDT
Universal time: Thu 2020-03-26 ...
0
votes
1answer
42 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 ...
0
votes
1answer
1k 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 ...
0
votes
1answer
262 views
Configure ntpd to find local NTP server(s)
I'm currently designing a system (a physical system that can be used where ever) and have run into the issue that on some networks internet NTP servers can be blocked (by a firewall). In those cases ...
1
vote
1answer
55 views
Getting messages from services that don't exist
For about 3 hours this afternoon, I got the following messages from services that I don't have (either uninstalled or never heard of):
[2020-01-27 14:02:57] dss-mint [daemon.info] [systemd] Started ...
0
votes
0answers
54 views
ntpd config optimization
I have an embedded Linux system without RTC, so it (currently) boots with thinking it's Jan, 1st 1970.
I have ntpd installed and started as:
/usr/bin/ntpd -g
with a pretty standard /etc/ntp.conf:
...
5
votes
2answers
2k views
ntp won't work on read-only Raspberry Pi
I'm struggling to understand WHY ntp (the service) won't set the time correctly on my raspberry pi.
I have configured the filesystem as read only, to save my SD card, but it used to work, and I ...
1
vote
0answers
105 views
Using ntpd to perform a one-time sync to an NTP server is taking too long
I have several servers that need to be sync'd to an NTP server on my network.
Initially, the time on these servers is relatively close (+/- 5 seconds). My goal is to do a "one-time sync" for each ...
9
votes
2answers
1k views
How does Linux use a real time clock?
I'm investigating a very strange effect on some Beagle Bone Black (BBB) boards. We're seeing occasional jumps of a few months in the system clock which always correlate with systemd-timesyncd ...
0
votes
1answer
327 views
Why ntpq shows auth bad?
I have two ubuntu 18.04 machines with ntpd ntpsec-1.1.0+419 installed. The ubuntu-1 has access to public internet and it synchronizes time with ntp pools provided by ubuntu like 0.ubuntu.pool.ntp.org. ...
-2
votes
1answer
258 views
chronyd or ntpd + What are the benefits when using chronyd?
We have Red Hat Linux 7.5 machines and we need to decide between ntpd or chronyd service.
What are the difference between chronyd to ntpd?
When is more useful to use chronyd instead of ntpd?
0
votes
0answers
43 views
ntp + ntp loose synchronize each time in 5:00 morning
we have a very strange behavior
we have 12 Linux redhat machines - redhat 7.x
two of these VM servers are loosing the time synchronize each day at 5:00 in the morning
after we restart the ntp , ...
3
votes
1answer
157 views
How to set ntpd server time without referencing another server?
I have an embedded system which synchronizes UTC locally using NTP. One of the clients in the system acts as time reference for the other clients. I guess you could think of it as stratum 0. A program ...
1
vote
1answer
264 views
Feeding “mixed” NMEA to NTP for time correction
I am trying to correct the time on my Raspberry pi by feeding NTPD with GPS nmea data (via serial) and PPS (via GPIO pin) using the following tutorial via shared memory "SHM".
http://www.unixwiz.net/...
1
vote
1answer
438 views
What is the minimum interval between retries to an unresponsive NTP server?
ntpd is the reference implementation of NTP. The current version is 4.1.2.
The manual page seems to say that when iburst is used, the interval between retries to an unresponsive NTP server is 16 ...
1
vote
1answer
306 views
NTP - localhost timeout - source network uses eth0 instead of lo
ntpq -p commands are timing out for me in a centos 6 server.
# ntpq -pn
127.0.0.1: timed out, nothing received
***Request timed out
tcpdump result shows me that it is using eth0 instead of loopback ...
0
votes
1answer
976 views
How to get timesyncd details?
How can I get detailed information about the NTP status of my system, when using systemd-timesyncd as the time client?
The closest one I found is
# timedatectl status
Local ...
0
votes
2answers
1k views
Update ntp to 4.2.8p13 on CentOS
I have NTP 4.2.6p5 installed on my CentOS 7.5. Due to "Network Time Protocol Multiple Security Vulnerabilities" vulnerability I have to upgrade it to latest NTP 4.2.8p13 version.
Now the problem is, ...
0
votes
1answer
381 views
ntpd.pid not getting generated even when ntpd is running in centos7
I have recently upgraded to centos7. I could observe that ntpd.pid is not generated when the ntpd service is started.
Earlier, in centos 6, when we start the ntpd service the file ntpd.pid is ...
-1
votes
2answers
467 views
Can I install both NTP server & NTP client on same machine (linux)?
Here's my use case :
I have 2 independent networks & 3 servers. Server 1 & 2 are connected on Network 1 (172.24.xx.xxx) while Servers 2 & 3 are connected via network 2 (locally : 192.168....
0
votes
1answer
894 views
Cannot disable network time control (NTP)
I want to analyze some protocols (ARP, NDP, etc.) inside virtualbox (OS: Linux Mint 19.1 Tessa) using wireshark and tried to disable the "network time control"-synchronization.
yuza@VirtualBox:~$ ...
0
votes
2answers
357 views
ntpd - Why/how is my network getting ntp synchronization while my ntpd is down on its provider?
I was under the impression that the ntpd service is required to be active for my network to be getting ntp data. All of my devices are synchronized to the server's IP, yet when I SSH into the server, ...
0
votes
1answer
296 views
Sync 1pps sync with system clock
We need to use 1pps (gpio source) for timestamp in application.
I thought that ntp should be used with the linux pps for this purpose.
But the system is standalone without any other servers connected....
3
votes
2answers
7k views
ntpd not running
Have confirmed correct server is configured in /etc/ntp.conf
It can ping that server.
It definitely has the ntp package
/home/admin# dpkg -s ntp
Package: ntp
Status: install ok installed
But the ...
0
votes
2answers
314 views
How often (and when) does NTPD update the time?
I have an Oracle Linux 6 box (RHEL) and I have set up ntpd. I have run service ntpd start and chkconfig on. Now, if my date is incorrect and I reboot the box, it sets the time and date properly. ...
1
vote
1answer
2k views
What does the ntp option “restrict default nopeer” do?
NTP version installed: ntp-4.2.6p5-5
I'm trying to understand the usage and meaning of the ntp restrict along with restrict default nopeer
Quoting the NTP documentation:
nopeer: Deny packets ...
1
vote
0answers
448 views
Running `ntpd -q -g` to set the time on Raspberry Pi never completes
On my Raspberry Pi which has been running for about 4 or 5 years now, I have a cron job running every hour that sets the time. I know form experience that my Pi has a tendency to drift its time quite ...
1
vote
1answer
721 views
ntpq does not print the list of the peers immediately
I'm on FreeBSD. I used from a cisco router as the server and my system as the client.
I used ntp to sync the clock between server and client. It worked and the clock has synced but when I run ntpq -p, ...
1
vote
2answers
315 views
Force system to use NTP time
Usually ntpd will refuse to change (or slew) system time if difference is too large.
Is there some way (possibly via ntpq) to tell ntpd: "jump to whatever time you think is right"?
Specifically it ...
0
votes
1answer
732 views
How to extend SELinux policy to allow ntpd to use gps?
There is an attached device on the motherboard and the NTP service tries to read data from it (the attached device link is in /dev directory). Using SELinux enforcing, the service status errors that ...
2
votes
2answers
1k views
How to emulate ntpdate -q with ntpd?
From man ntpdate on a CentOS 7.2 server:
Disclaimer: The functionality of this program is now available in the
ntpd program. See the -q command line option in the ntpd - Network
Time ...
0
votes
1answer
259 views
Is there any way to prevent chrony stratum plus one?
When using chrony, I synchronize the time from the clock source of stratum=2. Is there any way to prevent my machine from stratum=3, but stratum is equal to 2?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
-3
votes
2answers
4k views
What are the ports needs to be opened for NTPD?
Having port 123/UDP outbound but getting an error mentioned below.
ntpdate -q 0.rhel.pool.ntp.org
server 173.255.215.209, stratum 0, offset 0.000000, delay 0.00000
27 Sep 03:51:46 ntpdate[39518]: no ...
0
votes
2answers
2k views
Time drifting after NTP is configured
This is a XenServer 7.1 CU1 host. NTP should behave as in any other Linux distro. We have configured /etc/ntp.conf with following servers (have tried other servers with similar results and these ...