Which command shows the chrony sources used by the NTP service and helps verify configuration changes?

Prepare for the Red Hat Certified Systems Admin Exam EX200. Enhance your skills with interactive quizzes, flashcards, and detailed explanations. Ace your certification exam today!

Multiple Choice

Which command shows the chrony sources used by the NTP service and helps verify configuration changes?

Explanation:
The idea being tested is how to verify which time sources Chrony is actually using and to confirm configuration changes are reflected at runtime. The best way to do this is to run the command that queries Chrony’s current source list. chronyc sources reports all the sources Chrony is aware of, showing which servers are being used to discipline the clock and their status. This directly answers “what sources is NTP using now, and have my recent config changes taken effect?” after you reload or restart Chrony. The other options don’t serve this purpose as directly. chrony.conf is just the configuration file you edit to specify servers, but it isn’t a runtime view of what Chrony is using. chronyc tracking gives a snapshot of the overall synchronization state (offset, frequency, etc.) but not the list of current sources. chronyc sourcestats provides statistics for sources, which is useful for performance analysis, but it isn’t the straightforward list of active sources you use to verify configuration changes. So, for verifying which sources Chrony uses and that your configuration changes are in effect, chronyc sources is the appropriate tool.

The idea being tested is how to verify which time sources Chrony is actually using and to confirm configuration changes are reflected at runtime. The best way to do this is to run the command that queries Chrony’s current source list. chronyc sources reports all the sources Chrony is aware of, showing which servers are being used to discipline the clock and their status. This directly answers “what sources is NTP using now, and have my recent config changes taken effect?” after you reload or restart Chrony.

The other options don’t serve this purpose as directly. chrony.conf is just the configuration file you edit to specify servers, but it isn’t a runtime view of what Chrony is using. chronyc tracking gives a snapshot of the overall synchronization state (offset, frequency, etc.) but not the list of current sources. chronyc sourcestats provides statistics for sources, which is useful for performance analysis, but it isn’t the straightforward list of active sources you use to verify configuration changes.

So, for verifying which sources Chrony uses and that your configuration changes are in effect, chronyc sources is the appropriate tool.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy