So ntpdate is no longer present past CentOS 7. Many times people want "internal" NTP servers - not opening firewalls to allow external pool.ntp.org kind of stuff. ntpdate was "nice" in that I could just run once a day as "ntpdate name" and all good. Is there a similar client for CentOS 8 ? I saw chrony - but does not seem to be a command line command and I would also have to edit a file - Both are not desirable. Just looking for a simple - flexible command like I have been using "ntpdate name" for CentOS 8. Thanks, Jerry
There is a command-line option for chronyd which runs once, sets the time and exits. # chronyd -q I run chrony as a daemon on all my systems. One system is a server to everything else that is internal. The server is the only one that goes outside. It works well. The initial setup is basically a one-time deal. After that it can be pretty much ignored. -- Bill Gee On Wednesday, December 2, 2020 1:17:04 PM CST Jerry Geis wrote:> So ntpdate is no longer present past CentOS 7. > > Many times people want "internal" NTP servers - not opening firewalls to > allow external pool.ntp.org kind of stuff. > > ntpdate was "nice" in that I could just run once a day as "ntpdate name" > and all good. Is there a similar client for CentOS 8 ? I saw chrony - but > does not seem to be a command line command and I would also have to edit a > file - Both are not desirable. > > Just looking for a simple - flexible command like I have been using > "ntpdate name" for CentOS 8. > > Thanks, > > Jerry > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >
On Wed, Dec 2, 2020 at 11:17 AM Jerry Geis <jerry.geis at gmail.com> wrote:> ... > ntpdate was "nice" in that I could just run once a day as "ntpdate name"the problem with that sort of time sync is that if your systems clock is running fast, then those once a day time syncs cause the clock to be set BACK a few seconds or whatever (in bad cases a few minutes). I have always run ONE primary ntp server on my internal network, given it firewall access to the ntp ports, then had all my other systems ntp sync off that one server. This only requires a single port OUTBOUND connection from that one server. I generally avoid the 'pool' servers, and instead manually chose a set of regional stratum I or II NTP servers that are listed as being offered to the public. -- -john r pierce recycling used bits in santa cruz
Thanks everyone for the comments. So trying to use the new "chronyc/d" So trying a couple things with chronyc chronyc sources 210 Number of sources = 5 MS Name/IP address Stratum Poll Reach LastRx Last sample ==============================================================================^* time.cloudflare.com 3 10 377 220 -481us[ -503us] +/- 17ms ^- zeit.arpnetworks.com 2 9 377 452 -1083us[-1104us] +/- 100ms ^- lofn.fancube.com 2 10 377 851 -1833us[-1854us] +/- 64ms ^- ntp3.junkemailfilter.com 2 9 377 227 -937us[ -959us] +/- 76ms ^- b.st1.ntp.br 1 6 377 56 -2300us[-2300us] +/- 79ms NONE of the above are listed in /etc/chrony.conf Then I tried "chronyc add server pool.ntp.porg" and ran "chronyc sources" again and my server was not added ? I am trying to use the command line chronyc - to "add" the server I want - also wish there was an EASY way to clear the server list. Have not seen that though. What I need is a way to add the server i want - list the server to make sure my server is in the list - and remove servers I dont want (or all). Thanks, Jerry
On Wed, Dec 02, 2020 at 02:17:04PM -0500, Jerry Geis wrote:> So ntpdate is no longer present past CentOS 7.What's wrong with the 'ntpdate' RPM? https://centos.pkgs.org/7/centos-x86_64/ntpdate-4.2.6p5-29.el7.centos.2.x86_64.rpm.html> Thanks, > > Jerry > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos-- Brian Reichert <reichert at numachi.com> BSD admin/developer at large
On Thu, Dec 3, 2020 at 12:47 AM Jerry Geis <jerry.geis at gmail.com> wrote:> So ntpdate is no longer present past CentOS 7. > > Many times people want "internal" NTP servers - not opening firewalls to > allow external pool.ntp.org kind of stuff. > > ntpdate was "nice" in that I could just run once a day as "ntpdate name" > and all good. Is there a similar client for CentOS 8 ? I saw chrony - but > does not seem to be a command line command and I would also have to edit a > file - Both are not desirable. > > Just looking for a simple - flexible command like I have been using > "ntpdate name" for CentOS 8. > > Thanks, > > Jerry > _______________________________________________Hi, I rebuilt ntpdate for EL8 from Fedora 33 srpm. No patching needed. --- Lee