HP-UX Internet Services Administrator's Guide (August 2003)
Configuring NTP
Advanced NTP Topics
Chapter 488
Using ntpq to Query Systems Running xntpd
The standard network time protocol query program, ntpq, is used to
query systems that implement the NTP mode 6 control message, about
the current state of the server. It can also be used to obtain a list of a
server’s peers. ntpq sends requests to and receives responses from NTP
time servers using a special form of NTP messages called mode-6
control messages. You can run ntpq either in the interactive mode or
from the command line.
ntpq is useful for querying remote NTP implementations to assess their
timekeeping accuracy and to expose problems in configuration or
operation. For more information, type man 1M ntpq at the HP-UX
prompt.
NOTE When you specify time-related configuration options in the
/etc/ntp.conf file, you specify the values in seconds. ntpq, however,
displays time values in milliseconds, as specified by RFC 1305 (Network
Time Protocol (Version 3) – Specification and Implementation) NTP
standard.
Verifying ntpq
Use ntpq to verify whether:
• xntpd can form associations with other NTP hosts.
• Synchronization is happening correctly.
After xntpd starts, run the ntpq program with the -p option:
/usr/sbin/ntpq -p