EX200 Exam QuestionsBrowse all questions from this exam

EX200 Exam - Question 32


SIMULATION -

Configure NTP.

Configure NTP service, Synchronize the server time, NTP server: classroom.example.com

Show Answer
Correct Answer:

To configure NTP (Network Time Protocol) on a server with the NTP server set to classroom.example.com, follow these steps. First, ensure the NTP client tool, chrony, is installed. This can be done using the command 'yum -y install chrony'. After installation, you need to configure the chrony configuration file located at /etc/chrony.conf. Edit this file and add the line 'server classroom.example.com iburst'. Next, enable and start the chrony service to apply the changes and ensure it runs on system boot using 'systemctl enable --now chronyd'. To ensure the server is synchronized with the NTP server, verify the service status and synchronization using 'timedatectl status'. This sequence of commands ensures the server's time is synchronized with the specified NTP server.

Discussion

5 comments
Sign in to comment
Stachomir
Jul 6, 2021

yum -y install chrony systemctl enable --now chronyd vim etc/chrony.conf (change on server classroom.example.com iburs) systemctl reload chronyd timedatectl set-ntp true

kenkct
Mar 2, 2022

sudo su yum install chrony echo 'server [url] iburst' >> /etc/chrony.conf systemctl enable --now chronyd systemctl start chronyd timedatectl set-ntp true systemctl restart chronyd chronyc sources -v timedatectl

KimoHasNoBalls
Aug 22, 2022

when i do chronyc sources after setting /etc/chrony.conf to : classroom.example.com iburst I do not get any results. Does anyone else ?

brahmimedamine
Feb 25, 2022

yum install chrony -y vim etc/chrony.conf (change on server classroom.example.com iburs) systemctl enable --now chronyd systemctl start chronyd timedatectl set-ntp true chronyc sources -c timedatectl

Rahul95
Jun 16, 2023

dnf install chrony* -y vi /etc/chrony.conf server <servername or IP> iburst systemctl restart chronyd.service chronyc sources #to verify

RedQuasar
Dec 12, 2020

yum -y install chrony systemctl enable cronyd.service systemctl start chronyd.service timedatectl -H classroom.example.com timedatectl set-ntp on

ms200
Jan 23, 2021

why timedatectl -H classroom.example.com?

unbreakble
Apr 8, 2021

I do not understand it too

sazz82
May 26, 2021

timedatactl -H works but will not survive a reboot

badguy001djh
Aug 5, 2021

timedatectl -H [user@]hostname means it will connect to the remote host with ssh and execute the operation remotely. So what you did is wrong at all.