Exam EX200 All QuestionsBrowse all questions from this exam
Question 32

SIMULATION -

Configure NTP.

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

    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
Stachomir

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

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

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

Rahul95

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

brahmimedamine

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

RedQuasar

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

ms200

why timedatectl -H classroom.example.com?

unbreakble

I do not understand it too

sazz82

timedatactl -H works but will not survive a reboot

badguy001djh

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.