On This Page
Configuring NTP Using Chrony
Overview
Chrony is used to maintain synchronization automatically with an NTP (Network time protocol) server.
-
If you are running RHEL/CentOS, you need to install and enable chrony.
-
If you are running TufinOS, chrony is installed by default. Continue with Configure the Chrony Service.
Chrony does not synchronize the time zone. To configure the time zone manually, see Setting the Time Zone.
Installing and Enabling Chrony
If you are running TufinOS, chrony is installed by default, continue with Configure the Chrony Service.
If you are running RHEL/CentOS, chrony must be installed and enabled first as follows:
-
Log in to the CLI as user tufin-admin.
-
Log in as root user:
sudo su –
Or
sudo -i
-
Install chrony:
yum install chrony
-
Enable the service:
systemctl enable chronyd.service
Configure the Chrony Service
-
Log in to the CLI as user tufin-admin.
-
Log in as root user:
sudo su –
Or
sudo -i
-
Stop chrony synchronization:
systemctl stop chronyd.service
-
In the chrony configuration file
/etc/chrony.conf
, replace the default servers (centos.pool.ntp.org) with the NTP server. -
Restart the chronyd service:
systemctl restart chronyd.service
-
Check time synchronization:
chronyc sources -v
chronyc sourcestats -v
chronyc tracking