HP-UX Internet Services Administrator's Guide (May 2010)

#local host address is unrestricted
restrict 193.100.100.7
Starting and Stopping xntpd
To start xntpd, do one of the following:
Set the environment variable XNTPD to 1 in the file
/etc/rc.config.d/netdaemons. This causes xntpd to start automatically
when you boot the system.
Issue the following command to run the xntpd startup script:
/sbin/init.d/xntpd start
You can specify command-line arguments for starting xntpd with the XNTPD_ARGS
environment variable in the file /etc/rc.config.d/netdaemons. For more
information on command-line arguments, type man 1M xntpd manpage at the HP-UX
prompt.
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.
68 Configuring NTP