Welcome to the Linux Foundation Forum!

ntpdc

Posts: 51
edited October 2024 in LFS207 Class Forum

Hi,
In the lesson "Configuring the ntp Client" (https://trainingportal.linuxfoundation.org/learn/course/linux-system-administration-essentials-lfs207/network-addresses/network-addresses?page=10) the command ntpdc -c peers is suggested to show the time differential between the local system and configured time servers. However, I cannot find the package on Debian. But an apt search and apt info reveals the ntpstat command instead which mentions the ntpdc on the info page:

  1. ┌──(alu@nb)-[~]
  2. └─$ apt search ntpdc
  3. Sorting... Done
  4. Full Text Search... Done
  5. ntpstat/stable 0.0.0.1-2+b1 amd64
  6. show network time protocol (ntp) status
  7.  
  8.  
  9. ┌──(alu@nb)-[~]
  10. └─$ apt info ntpstat
  11. Package: ntpstat
  12. Version: 0.0.0.1-2+b1
  13. Priority: optional
  14. Section: web
  15. Source: ntpstat (0.0.0.1-2)
  16. Maintainer: Debian OpenStack <team+openstack@tracker.debian.org>
  17. Installed-Size: 29.7 kB
  18. Depends: libc6 (>= 2.15)
  19. Homepage: https://github.com/darkhelmet/ntpstat
  20. Download-Size: 6,436 B
  21. APT-Sources: http://deb.debian.org/debian bookworm/main amd64 Packages
  22. Description: show network time protocol (ntp) status
  23. This program uses an NTP mode 6 control message, which is the same as that
  24. used by the ntpq command. The ntpdc command uses NTP mode 7, details of
  25. which are elusive. For details on the format of NTP control message, see
  26. http://www.eecis.udel.edu/~mills/database/rfc/rfc1305/rfc1305b.ps.

But even after installing ntpstat, the ntpdc command is not available.

Any suggestions?

Thanks,
Urs

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Comments

  • Hi Urs,

    Please use 'ntpq' instead of ntpdc:

    ntpq -c peers

    Regards,
    Luis.

  • Posts: 51

    Hi Luis,

    Ok thanks. I already played around with ntpq. So can ntpdc be considered as a depricated tool then?

    Regards,
    Urs

  • Hi Urs, it's a pleasure :)

    So can ntpdc be considered as a depricated tool then?

    Yes, that's right. We'll reflect that in the course.

    Regards,
    Luis.

  • Posts: 51

    Thanks Luis for your feedback.

    Regards,
    Urs

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training