cat /etc/chrony/chrony.conf
root@localhost:/etc/chrony# cat chrony.conf
# Welcome to the chrony configuration file. See chrony.conf(5) for more
# information about usuable directives.
# This will use (up to):
# - 4 sources from ntp.ubuntu.com which some are ipv6 enabled
# - 2 sources from 2.ubuntu.pool.ntp.org which is ipv6 enabled as well
# - 1 source from [01].ubuntu.pool.ntp.org each (ipv4 only atm)
# This means by default, up to 6 dual-stack and up to 2 additional IPv4-only
# sources will be used.
# At the same time it retains some protection against one of the entries being
# down (compare to just using one of the lines). See (LP: #1754358) for the
# discussion.
#
# About using servers from the NTP Pool Project in general see (LP: #104525).
# Approved by Ubuntu Technical Board on 2011-02-08.
# See http://www.pool.ntp.org/join.html for more information.
pool ntp.ubuntu.com iburst maxsources 4
pool 0.ubuntu.pool.ntp.org iburst maxsources 1
pool 1.ubuntu.pool.ntp.org iburst maxsources 1
pool 2.ubuntu.pool.ntp.org iburst maxsources 2
# This directive specify the location of the file containing ID/key pairs for
# NTP authentication.
keyfile /etc/chrony/chrony.keys
# This directive specify the file into which chronyd will store the rate
# information.
driftfile /var/lib/chrony/chrony.drift
# Uncomment the following line to turn logging on.
#log tracking measurements statistics
# Log files location.
logdir /var/log/chrony
# Stop bad estimates upsetting machine clock.
maxupdateskew 100.0
# This directive enables kernel synchronisation (every 11 minutes) of the
# real-time clock. Note that it can't be used along with the 'rtcfile' directive.
rtcsync
# Step the system clock instead of slewing it if the adjustment is larger than
# one second, but only in the first three clock updates.
makestep 1 3
#If you don't need to serve time to NTP clients or peers, you can add port 0 to the chrony.conf file
# to completely disable the NTP server functionality and prevent NTP requests from reaching chronyd
port 0
Conclusion: On ubuntu, better to install with apt if possible. It's easier, more secure and more comprehensive than a quick manual install (like in the post above);
Code:
cd /var/log
grep chrony *log
auth.log:Sep 26 04:55:13 localhost groupadd[18713]: group added to /etc/group: name=_chrony, GID=115
auth.log:Sep 26 04:55:13 localhost groupadd[18713]: group added to /etc/gshadow: name=_chrony
auth.log:Sep 26 04:55:13 localhost groupadd[18713]: new group: name=_chrony, GID=115
auth.log:Sep 26 04:55:13 localhost useradd[18717]: new user: name=_chrony, UID=111, GID=115, home=/var/lib/chrony, shell=/usr/sbin/nologin
auth.log:Sep 26 04:55:13 localhost usermod[18723]: change user '_chrony' password
auth.log:Sep 26 04:55:13 localhost chage[18728]: changed password expiry for _chrony
auth.log:Sep 26 04:55:13 localhost chfn[18731]: changed user '_chrony' information
dpkg.log:2019-09-26 04:55:13 install chrony:amd64 <none> 3.2-4ubuntu4.2
dpkg.log:2019-09-26 04:55:13 status half-installed chrony:amd64 3.2-4ubuntu4.2
dpkg.log:2019-09-26 04:55:13 status unpacked chrony:amd64 3.2-4ubuntu4.2
dpkg.log:2019-09-26 04:55:13 status unpacked chrony:amd64 3.2-4ubuntu4.2
dpkg.log:2019-09-26 04:55:13 configure chrony:amd64 3.2-4ubuntu4.2 <none>
dpkg.log:2019-09-26 04:55:13 status unpacked chrony:amd64 3.2-4ubuntu4.2
dpkg.log:2019-09-26 04:55:13 status unpacked chrony:amd64 3.2-4ubuntu4.2
dpkg.log:2019-09-26 04:55:13 status unpacked chrony:amd64 3.2-4ubuntu4.2
dpkg.log:2019-09-26 04:55:13 status unpacked chrony:amd64 3.2-4ubuntu4.2
dpkg.log:2019-09-26 04:55:13 status unpacked chrony:amd64 3.2-4ubuntu4.2
dpkg.log:2019-09-26 04:55:13 status unpacked chrony:amd64 3.2-4ubuntu4.2
dpkg.log:2019-09-26 04:55:13 status unpacked chrony:amd64 3.2-4ubuntu4.2
dpkg.log:2019-09-26 04:55:13 status unpacked chrony:amd64 3.2-4ubuntu4.2
dpkg.log:2019-09-26 04:55:13 status unpacked chrony:amd64 3.2-4ubuntu4.2
dpkg.log:2019-09-26 04:55:13 status unpacked chrony:amd64 3.2-4ubuntu4.2
dpkg.log:2019-09-26 04:55:13 status unpacked chrony:amd64 3.2-4ubuntu4.2
dpkg.log:2019-09-26 04:55:13 status half-configured chrony:amd64 3.2-4ubuntu4.2
dpkg.log:2019-09-26 04:55:15 status installed chrony:amd64 3.2-4ubuntu4.2
kern.log:Sep 26 04:55:14 localhost kernel: [9630131.911799] audit: type=1400 audit(1569473714.650:59): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbinchronyd" pid=18964 comm="apparmor_parser"
syslog:Sep 26 04:55:14 localhost kernel: [9630131.911799] audit: type=1400 audit(1569473714.650:59): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/chronyd" pid=18964 comm="apparmor_parser"
syslog:Sep 26 04:55:15 localhost systemd[1]: Starting chrony, an NTP client/server...
syslog:Sep 26 04:55:15 localhost chronyd[19064]: chronyd version 3.2 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SECHASH +SIGND +ASYNCDNS +IPV6 -DEBUG)
syslog:Sep 26 04:55:15 localhost chronyd[19064]: Initial frequency -0.501 ppm
syslog:Sep 26 04:55:15 localhost systemd[1]: Started chrony, an NTP client/server.
syslog:Sep 26 04:55:23 localhost chronyd[19064]: Selected source 198.50.238.163
First , thank you for reading the post.
I Use Digital Unix 4.0F .
I get an i-node number of a text file using stat() function . I want to read the file context following the i-node information . But I do not know how to read disk information accroding to i-node information . (1 Reply)
Hi,
I have a problem using NTP.
We have a setup as following :
client --> HP Server(NTP) --> DMZ server --> DMZ server --> Internet
Only some clients and our HP server is using NTP, the others are using different software.
Now I get an error every day :
Oct 1 13:17:15 nlunx1n1 xntpd:... (4 Replies)
Dear All
I'm solaris user . I need to setup NTP authentication for my office server but I have some question for ntp setting up. I need to know if i set authen NTP the client that doesn't set for authen key can sync time from authen ntp server or not ?? when i setup the authen at ntp server ... (1 Reply)
All -
i tried to sysn the clock from our server to get the timing and the server IP has been added in the ntp.conf file and i have some problems here. if some1 help me to solve this problem.
1. i can ping server
2. i was unable to ntpq -p (time out, no response from remote server, it looks... (2 Replies)
Hi,
I have 4 machines and all are NTP configured with same ntp.conf file. But 3 machines are in sync with Time server and 4th machine is not contacting & sync with the NTP server. Please see the below details.
# service ntpd stop
Stopping ntpd: ... (0 Replies)
Hi,
I have edited the /etc/inet/ntp.conf file to point to a new time server. When I restart ntp on Solaris 10 using 'svcadm disable/enable ntp' it still points to the old ntp server when I run a 'ntpq -p'.
Any ideas?
Thanks.
Sparcman (4 Replies)
I got an ntp time problem on AIX server.
os version is AIX7.1
OS LEVEL 7.1.0.0
i got below output,when i run the below command
bash-3.2# ntpdate -dv XXXXXXXXXXXXXXXXXXXXXXXX
4 Dec 12:50:49 ntpdate: 3.4y
transmit(xxxxxxxxx)
receive(xxxxxxxxx)
transmit(xxxxxxxx)
receive(xxxxxxxxx)... (9 Replies)
Hi guys,
I got some error on my application server mentioning that gps clock not sync to my db server.
what is the command to check is my server is sync with the gps clock?
appreciate if you guys can let me know how to troubleshoot this problem.
Thanks (1 Reply)