Questions tagged [ntpdate]

63 questions
23
votes
10 answers

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 ok. But I heard you could use redundant NTP servers…
Unknown
  • 1,675
  • 6
  • 20
  • 27
13
votes
2 answers

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, but that is not the case- this server can talk…
Crash Override
  • 571
  • 1
  • 8
  • 20
7
votes
3 answers

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 together because I run databases that require…
j9dy
  • 173
  • 1
  • 1
  • 5
7
votes
2 answers

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 manually open Putty, connect, login, and run the…
andreszs
  • 709
  • 1
  • 6
  • 16
6
votes
1 answer

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 be adapted. But shouldn't ntpdate show this…
Christian
  • 331
  • 1
  • 2
  • 10
6
votes
2 answers

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 delay offset …
sina
  • 189
  • 1
  • 2
  • 9
5
votes
5 answers

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 lines in my /etc/ntp.conf. All restrict lines have…
dafydd
  • 395
  • 2
  • 3
  • 10
5
votes
3 answers

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 clock from July 30th to December 16th! According to…
Peter Woo
  • 53
  • 3
5
votes
2 answers

ntpdate: no server suitable for synchronization found

[root@myHost default]# ntpdate -d pool.ntp.org 15 Apr 11:21:18 ntpdate[6331]: ntpdate 4.2.0a@1.1190-r Thu Feb 24 20:39:57 EST 2011 (1) Looking for host pool.ntp.org and service ntp host found :…
jasy
  • 73
  • 1
  • 2
  • 4
5
votes
4 answers

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 synchronization (e.g. ntpdate). $ sudo apt-get remove…
Andres Jaan Tack
  • 197
  • 1
  • 2
  • 9
4
votes
5 answers

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 offset 318.914011 sec With no errors, which should be…
LukeR
  • 3,086
  • 2
  • 29
  • 25
3
votes
2 answers

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 127.127.1.0 fudge 127.127.1.0 stratum 6 driftfile…
Arun Krishnan
  • 339
  • 2
  • 3
  • 12
3
votes
3 answers

Do "service ntpd restart" and "ntpdate " 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 instead of restarting ntpd. Since this is a production box wanted to…
Shiva J
  • 31
  • 1
  • 1
  • 2
3
votes
1 answer

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 iburst When I reboot the server and run ntpstat…
red888
  • 4,069
  • 16
  • 58
  • 104
3
votes
1 answer

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 peers remote refid st t when poll…
Leo
  • 973
  • 6
  • 21
  • 38
1
2 3 4 5