ntptrace command not found in RHEL6 or RHEL7

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux (RHEL) 6
  • Red Hat Enterprise Linux (RHEL) 7
  • ntp
  • ntp-perl

Issue

  • We have used ntptrace in the past, but that doesn't appear to be available in RHEL 6.5.
  • In RHEL5, ntptrace is included in ntp package, but it's no longer included in RHEL6 or RHEL7.
  • Is there another command that replaced ntptrace, or is another rpm required?

Resolution

  • From ntp package description:
[root@localhost ~]# rpm -qi ntp
Name        : ntp                          Relocations: (not relocatable)
Version     : 4.2.6p5                           Vendor: Red Hat, Inc.
Release     : 1.el6                         Build Date: Mon 15 Jul 2013 06:23:02 AM ART
Install Date: Tue 03 Dec 2013 02:41:23 PM ART      Build Host: x86-012.build.bos.redhat.com
Group       : System Environment/Daemons    Source RPM: ntp-4.2.6p5-1.el6.src.rpm
Size        : 1706935                          License: (MIT and BSD and BSD with advertising) and GPLv2
Signature   : RSA/8, Mon 16 Sep 2013 02:07:13 AM ART, Key ID 199e2f91fd431d51
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://www.ntp.org
Summary     : The NTP daemon and utilities
Description :
The Network Time Protocol (NTP) is used to synchronize a computer's
time with another reference time source. This package includes ntpd
(a daemon which continuously adjusts system time) and utilities used
to query and configure the ntpd daemon.

Perl scripts ntp-wait and ntptrace are in the ntp-perl package and
the ntpdate program is in the ntpdate package. The documentation is
in the ntp-doc package.
  • So in RHEL 6&7 ntptrace is in the ntp-perl package (available via optional channel.)

To install it:

# yum install ntp-perl

To verify:

# rpm -ql ntp-perl
/usr/sbin/ntp-wait
/usr/sbin/ntptrace
/usr/share/man/man8/ntp-wait.8.gz
/usr/share/man/man8/ntptrace.8.gz

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments