HP-UX Internet Services Administrator's Guide (February 2007)

NOTE: xntpd must be running continuously; if you wish to stop xntpd, it must be
for a short duration.
If you modify the configuration file or the XNTPD_ARGS environment variable in the
file /etc/rc.config.d/netdaemons while xntpd is running, you have to stop and
restart the daemon for the configuration changes to be effective.
To stop xntpd, issue the following command:
/sbin/init.d/xntpd stop
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 servers 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
The ntpq Program Output
The -p option prints a list of peers known to the server, along with a summary of their
states as shown in Table 4-7.
70 Configuring NTP