1.30.1 [ntpd] - not able to query

Denys Vlasenko vda.linux at googlemail.com
Mon Jul 1 10:51:29 UTC 2019


On Sat, Jun 29, 2019 at 4:12 PM <vtolkm at googlemail.com> wrote:
>
> ntpd appears to be up and running/listening
>
> ss -tulpn | grep 123
> udp   UNCONN 0  0    *:123   *:*  users:(("ntpd",pid=7589,fd=3))
>
> However, querying the server appears not working, as if queries being
> refused and thus wondering what could be causing this, let alone
> resolving it?

Crank up log verbosity, it will tell you:

$ ntpd --help
BusyBox v1.31.0 (2019-06-10 12:10:11 CEST) multi-call binary.

Usage: ntpd [-dnqNwl] [-I IFACE] [-S PROG] [-k KEYFILE] [-p [keyno:N:]PEER]...

NTP client/server

    -d    Verbose (may be repeated)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    -n    Do not daemonize
    -q    Quit after clock is set
    -N    Run at high priority
    -w    Do not set time (only query peers), implies -n
    -S PROG    Run PROG after stepping time, stratum change, and every 11 min
    -k FILE    Key file (ntp.keys compatible)
    -p [keyno:NUM:]PEER
        Obtain time from PEER (may be repeated)
        Use key NUM for authentication
    -l    Also run as server on port 123
    -I IFACE Bind server to IFACE, implies -l


More information about the busybox mailing list