Questions tagged [ntpdate]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
24 votes
10 answers
29k views

Compare NTPD and ntpdate

What are the pros and cons between these two ways to synchronize your server? It seems to me that your server would probably not drift more than 1 second every day, so ntpdate on a crontab would be ...
Unknown's user avatar
  • 1,715
14 votes
2 answers
70k views

ntpdate and ntpd failing to sync clock on Linux

I have a strange problem with one of my servers. ntpd and ntpdate fail to work, but debugging shows no errors at all. At first I thought maybe a local or network firewall was blocking UDP port 123, ...
Crash Override's user avatar
8 votes
3 answers
62k views

How to set up local ntp server without internet access on ubuntu?

I have tried several guides on how to set up a local ntp server on ubuntu but none seem to work correctly. My servers are drifting heavily in time for some reason and I have to keep their time close ...
j9dy's user avatar
  • 183
7 votes
2 answers
1k views

how to auto-run ntdpdate command?

I have a few dedicated servers and for some reason they are totally unable to mantain the time properly synchronized, every few days they start having differences of minutes in the clock. So I have to ...
andreszs's user avatar
  • 709
7 votes
2 answers
10k views

NTP running, server time is wrong on VM

The server time was 7 hours off (instead of 10AM it was 3AM, even though date showed the correct timezone). The output for ntpq was: $ ntpq -p remote refid st t when poll reach ...
sina's user avatar
  • 209
6 votes
1 answer
16k views

Different offset in "ntpq -p" and "ntpdate -q"

I'm sometimes notified by our system monitoring about too high offsets in ntpd. When issuing ntpdate, it shows none. As ntpd adjusts time slowly, it seems to "think" there is an offset which needs to ...
Christian's user avatar
  • 341
5 votes
3 answers
270 views

Is an ntpdate correction atomic?

I've got the following in /var/log/syslog, from yesterday (July 30th) Dec 16 22:54:05 omap ntpdate[432]: step time server 91.189.94.4 offset 12052648.821465 sec ntpdate 91.189.94.4 "corrected" my ...
Peter Woo's user avatar
5 votes
4 answers
18k views

Disable Time Synchronization on Ubuntu

I am setting up a development environment with Ubuntu in a virtual machine. The date in the VM must be in 2009 due to some silly timebombing issues, so I want to disable any automatic time ...
Andres Jaan Tack's user avatar
5 votes
5 answers
19k views

ntpdate works, but ntpd can't synchronize

This is in RHEL 5.5. First, ntpdate to the remote host works: $ ntpdate XXX.YYY.4.21 24 Oct 16:01:17 ntpdate[5276]: adjust time server XXX.YYY.4.21 offset 0.027291 sec Second, here are the server ...
dafydd's user avatar
  • 395
5 votes
2 answers
16k views

ntpdate: no server suitable for synchronization found

[root@myHost default]# ntpdate -d pool.ntp.org 15 Apr 11:21:18 ntpdate[6331]: ntpdate [email protected] Thu Feb 24 20:39:57 EST 2011 (1) Looking for host pool.ntp.org and service ntp host found : magma....
jasy's user avatar
  • 73
4 votes
5 answers
8k views

ntpdate not updating system time in XenServer VM

We have a Debian webserver that I am trying to use ntpdate to keep the time in sync. When I run ntpdate ntp0.cs.mu.oz.au I receive 16 Sep 10:55:36 ntpdate[21626]: step time server 128.250.36.2 ...
LukeR's user avatar
  • 3,146
3 votes
3 answers
20k views

Do "service ntpd restart" and "ntpdate <ntp-server-ip>" do the same work?

I often get large offsets when checking ntpd using ntpq -p, I generally restart the ntp daemon and it fixes the issue. I wanted to know if i can try the ntpdate <ntp-server-name> instead of ...
Shiva J's user avatar
  • 31
3 votes
2 answers
858 views

NTP 27 seconds Difference

I have DMZ server configured as NTP server to connect to external NTP servers and sync time in all devices in my corporate network. Below are the contents of my ntp.conf file in the DMZ server server ...
Arun Krishnan's user avatar
3 votes
1 answer
16k views

NTP can't synchronise or find a suitable server

The problem I'm trying to solve is that NTP won't synchronize: $ sudo ntpstat unsynchronised time server re-starting polling server every 64 s Edit: Here's some ntpq output: $ sudo ntpq -c ...
Leo's user avatar
  • 983
3 votes
3 answers
634 views

ntpdate ignores my timezone

I'm trying to set up time sync on a CentOS 5.5 VDS but can't figure out why it won't update to the correct timezone. e.g. After manually setting the correct date and time when I run this: date &&...
John Gardeniers's user avatar
3 votes
1 answer
1k views

what is the easiest way to test the impact of NTP step changes on other software?

During testing of our configuration of Red Hat Cluster System, NTP stepped the time by 16 seconds, and soon afterwards the cluster software locked up. ntpd[30917]: time reset -16.332117 s I need to ...
Martin's user avatar
  • 526
3 votes
1 answer
18k views

NTP not syncing automatically with my internal NTP server

I installed ntp on a centos server. I modified /etc/ntp.conf replacing the default server entries with one entry to my internal NTP server's IP (1.2.3.4 is the IP of the NTP server): server 1.2.3.4 ...
red888's user avatar
  • 4,263
2 votes
3 answers
1k views

How to select a server when ntpd is syncing by a linux server?

The following is my ntpd configure file. I have no idea, which one ntpd will choice while it's syncing? /etc/ntp.conf server 0.pool.ntp.org server 1.pool.ntp.org server 2.pool.ntp.org server pool.ntp....
aboutstudy's user avatar
2 votes
1 answer
1k views

How can I synchronize system time with a NTP server continuously?

Is there a linux service that can synchronize system time with a NTP server with a given interval, such as 1 minute, 1 hour or 1 day ? Is it a good practice to run utpdate in a cron tab? e.g. */10 * ...
auntyellow's user avatar
2 votes
3 answers
7k views

How to monitor the ntpd and ntpdate running status?

I have four servers running ntpd daemons, how can I monitor their running status? By the way, I am running ntpdate command with crontab.
aboutstudy's user avatar
2 votes
1 answer
5k views

Does Amazon manage time synchronization on ECS/Fargate containers?

I'm trying to use NTP to synchronize local time in ECS containers using the ntpdate command, but it gives me this error: ntpdate[770]: Can't adjust the time of day: Operation not permitted ...
Aramis Rodríguez Blanco's user avatar
2 votes
3 answers
2k views

CentOS VM, NTP synchronization problems

We have three CentOS 5.9 VMs on an ESX3.5 host. Because of the nature of the services we provide it is required that the NTP time is synchronized and the time is correct on all three of them. ...
Spirit's user avatar
  • 1,164
2 votes
2 answers
9k views

ntpdate unavailable on CentOS8

I want to install ntpdate as usual on CentOS8. However, it is not available: # cat /proc/version Linux version 4.18.0-240.1.1.el8_3.x86_64 ([email protected]) (gcc version 8.3.1 ...
George Y's user avatar
  • 560
2 votes
2 answers
21k views

ntpdate failing "Name or service not known"

I've got a NAS that is Linux-based (Linux version 2.6.32.11-svn70860) and it is not able to set its time using ntp. The previous SysAdmin is long gone so I have no idea whether this problem just ...
Betty Crokker's user avatar
1 vote
3 answers
1k views

Time cron not working

10 * * * * /usr/sbin/ntpdate pool.ntp.org >/dev/null 2>&1 The idea is to sync time every 10 minutes. However im waiting now for 15 minutes and nano /var/log/cron still returns empty. ...
dfgsdfgs's user avatar
1 vote
2 answers
673 views

Server Time is *WAY* Off

The time on my server is about 19 hours behind and I cannot for the life of me figure out how to synchronize it. I did follow the steps here, and this is the output: [root@ip-72-167-39-231 ~]# /sbin/...
Thomas Thorogood's user avatar
1 vote
1 answer
6k views

Where can I see ntpd working status (log or message)

In my server the ntpd service is started but it does not seem to work. I can find nothing according to this ( Where are the ntpd log file located, and how can we configure the ntpd log file path? ) ...
auntyellow's user avatar
1 vote
1 answer
500 views

How to test whether NTP server is secured or not

We are trying few of the configurations of NTP in ntp.conf file and want to be sure whether the NTP server is secured or not. Following the recommendation provided here: https://support.ntp.org/...
Anon's user avatar
  • 25
1 vote
2 answers
9k views

How to force locally isolated ntpd update time

Objective I had locally isolated hosts. I'd like them all have the same time. One takes role of the time server, other syncs with it as clients. All machines has sporadic uptime. They are powered ...
ayvango's user avatar
  • 131
1 vote
3 answers
16k views

enable/disable ntp service on ubuntu 12.04

Our application runs on Ubuntu 12.04 Precise. On this server, we have both ntpdate and ntp. How to enable and disable the NTP service on-demand? I tried # sudo update-rc.d -f ntp remove/default ...
ntphelp's user avatar
  • 21
1 vote
2 answers
699 views

Clock skew on my VPS server

I am having a problem with the time on my VPS hosted at Rackspace. Its running Red Hat Enterprise Linux 5.4. Date commands gives a time which is 11 minutes ahead of the actual time. I am running ntpd ...
Gulam's user avatar
  • 11
1 vote
2 answers
404 views

Red Hat Linux NTP Inconsistent Values

Recently I am experiencing NTP high delay and offset values on my server. $ ntpq -p remote refid st t when poll reach delay offset jitter =====================================...
aschkant's user avatar
1 vote
2 answers
5k views

ntpdate wrong date

Hi all I have an ubuntu8 server where I have problems with date. My current date (Europe/Rome) is 9:35 If I do date print me 11:12:34 I have seen my ntp.conf is: server 0.ubuntu.pool.ntp.org ...
Alessandro Minoccheri's user avatar
1 vote
1 answer
6k views

ntpdate and firewall: no server suitable for synchronization found

I'm behind a firewall and only have access to ports 80 and port 443. How can I sync my system's clock? Here's the command I issue: sudo ntpdate -u 1.debian.pool.ntp.org But I keep getting the ...
Eamorr's user avatar
  • 636
1 vote
1 answer
2k views

ntpdate cannot receive data

I have a problem where running ntpdate on my server doesn't return any data therefore I get the following error: [root@server etc]# ntpdate -d -u -v time.nist.gov 12 Apr 01:10:09 ntpdate[32072]: ...
Hengjie's user avatar
  • 3,223
1 vote
1 answer
668 views

ntpdate -t does not timeout with the timeout value

I am using ntpdate to update the time. If there is no internet connection or the NTP server is down, ntpdate fails, but ntpdate takes a long time to exit (approximately 20 to 23 seconds). I read the ...
sachu's user avatar
  • 11
1 vote
1 answer
2k views

ntpdate take long time to sync (not ntpd)

I have referred ntpdate -d Server dropped Strata too high. This is a similar but different question. I having two devices. Freescale ARM board (NTP server) Tinker board (client) In the Freescale ...
JustWe's user avatar
  • 111
1 vote
1 answer
2k views

How should I manage and troubleshoot NTP issues?

For some time now I've been fighting with some NTP issues in my company's network and I'm having a hard time to understand how the commands combine with the service. For example: In the server's /etc/...
Itai Ganot's user avatar
  • 10.8k
1 vote
1 answer
557 views

ntpdate setting incorrect date after boot

I have a few Debian XEN virtual machines and upgraded them to wheezy(I need the 3.2 kernel for a project). Everything was okay until I rebooted on of the machines. My current problem is, that ntpdate ...
Izzy's user avatar
  • 835
1 vote
0 answers
179 views

ntp client authentication fails with ntp server via symmetric key

I want to do ntp client authentication with ntp server using a symmetric key method, but after applying all the configuration on both side clients authentication is getting without key or on different ...
Aman Thakur's user avatar
1 vote
0 answers
891 views

NTP client reseting date to 1970

I have and debian running NTP client, but this cliente is reseting date to 1970.....and doesn't show any error in log. This is that I tried: 1) date (shows 1970) 2) stop NTP service 3) ntpdate with ...
Jonis Maurin Ceará's user avatar
1 vote
3 answers
1k views

syslogd no such file or directory - OpenBSD 3.9

OK - long story short: I have OpenBSD box that was setup as a network appliance (long time ago) I have returned to life. Several errors I am working on and could use any help I can get. Errors on ...
GoZippy's user avatar
  • 511
1 vote
2 answers
3k views

ntpdate, ntpd can update time from time.google.com but the ntpd service fails

I'm trying to synchronise my Ubuntu 12.04.5 instance with the Google timeservers at time{1,4}.google.com and I can successfully query using both ntpdate and ntpd but once I start ntp as a service it ...
WheresWardy's user avatar
1 vote
0 answers
4k views

ntp is not syncing on centos server but gets response from remote server

I have googled for days before asking and I feel like I have tried everything but ntp is still not updating the time of the system automatically. I have left it running for days and still I get the ...
Uberswe's user avatar
  • 159
0 votes
2 answers
12k views

ntpdate - no server suitable for synchronization found

I have a newly installed Centos 5.2 box, everything seems working except ntpdate sync, I have done enable port 123 UDP to pass through the firewall. I have tried to use -u for unprivileged ports but ...
Rungano's user avatar
  • 97
0 votes
1 answer
74 views

Debian Server System time and time used by processes are different

I have a dedicated server running debian 7, the system time shows "Wed Aug 7 04:28:26 EAT 2013" I have restarted the server several times but processes like deluge and apache return http headers ...
Omar Salim's user avatar
0 votes
4 answers
1k views

ntpdate shows 4second time drift / day

I started ntpdate running every night as a cronjob (on two servers). And every morning I have an email telling me the outcome. On one server it's correcting by about 0.8 seconds every day, which seems ...
aidan's user avatar
  • 615
0 votes
2 answers
3k views

Can you configure a specific interface to reach the NTP server?

I have to configure NTP on a CentOS server. I have 7 interfaces and I can reach the NTP server through one interface. Also the server doesn't have access to internet. When I try ping: ping 10.0.10....
ananetworking's user avatar
0 votes
1 answer
19k views

Ceph: HEALTH_WARN clock skew detected

I have configured ntp on Ceph nodes and time is synchronized! But ceph status always shows clock skew. ceph health detail shows: mon.node2 aadr 192.168.56.102:6789/0 clock skew 7192.45s > max 0....
Oleksandr's user avatar
  • 763
0 votes
1 answer
3k views

"NTP socket is in use" messages from ntpdate in syslog

In cron.log I can see that ntpdate is being triggered from a cron job which is running daily at 23:15 Mar 10 23:15:01 seitan /USR/SBIN/CRON[22407]: (root) CMD (/etc/network/if-up.d/ntpdate) But I ...
runningonplants's user avatar