ntptrace and ntpdate commands for debugging ntp
In this article, I’ll explain how we may use ntpdate and ntptrace commands while working o debugging or troubleshooting NTP related issues. We already showed how to install and configure NTP in Linux Redhat/Centos and Ubuntu/Debian. What is a ntpupdate command in Linux? The ntpdate command is used to manually sync time with an NTP server when you don’t have NTP agent running. Note: ntpdate will only sync to the time server if the ntpd daemon is not running. Install ntpupdate command in Linux This package is installed on the system, but if it isn’t we can easily install it via yum as shown below: [root@linuxnix ~]# yum install ntpdate -y Loaded plugins: fastestmirror, presto Setting up Install Process Determining fastest mirrors * base: mirror.nus.edu.sg * extras: mirror.nus.edu.sg * updates: mirror.nus.edu.sg base | 3.7 kB 00:00 centos-sclo-rh | 2.9 kB 00:00 centos-sclo-rh/primary_db | 2.6 MB 00:04 extras | 3.4 kB 00:00 extras/primary_db | 29 kB 00:00 updates | 3.4 kB 00:00 updates/primary_db | 4.7 MB 00:00 Resolving Dependencies --> Running transaction check ---> Package ntpdate.x86_64 0:4.2.6p5-10.el6.centos.2 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================== Package Arch Version Repository Size ====================================================================================================================================== Installing: ntpdate x86_64 4.2.6p5-10.el6.centos.2 base 78 k Transaction Summary ====================================================================================================================================== Install 1 Package(s) Total download size: 78 k Installed size: 123 k Downloading Packages: Setting up and reading Presto delta metadata Processing delta metadata Package(s) data still...
Read More