NTP - xntpd configuration in HPUX

xntpd server configuration

1. xntpd server (daemon) is used by HP-UX. Open the file /etc/rc.config.d/netdaemons:

# vi /etc/rc.config.d/netdaemons
Make sure following variables are defined and XNTPD is set to 1:
export NTPDATE_SERVER='ntp.mycorp.com pool.ntp.org in.pool.ntp.org'
export XNTPD=1
export XNTPD_ARGS=
Save and close the file. Where,

    * NTPDATE_SERVER : space-separated list of timeserver / IPs - If server uses the radio clock / system time, leave the NTPDATE_SERVER blank.
    * XNTPD : set it to 1 to enable NTP
    * XNTPD_ARGS : set options, see man page

2.Make sure correct timezone is setup in /etc/TIMEZONE file (look for TZ variable):

# vi /etc/TIMEZONE
Save and close the file.

3.Open /etc/ntp.conf file:

#vi /etc/ntp.conf
Make sure server are defined:
server unix-box-ntp
server delhi-ntp
peer delhi-noc-ntp
driftfile /etc/ntp.drift
Close and save the file. Where,

    * server : ntp server used (poll) to obtain time
    * peer : a peer relationship with another ntp server
    * driftfile : track local clock time (drift of the local clock)

4. Start HP-UX ntp service:
 
# /sbin/init.d/xntpd start
# /sbin/init.d/xntpd stop <-- stop ntp service

5.Verify that everything is working fine:

# ntpq -p
Watch out log file /var/adm/syslog/syslog.log for errors:
# tail -f /var/adm/syslog/syslog.log
Make sure xntpd is running:
# ps -ef | grep xntpd

5 comments:

  1. Great Article. Thank you for sharing! Really an awesome post for every one.

    IEEE Final Year projects Project Centers in Chennai are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Project Domains for IT It gives you tips and rules that is progressively critical to consider while choosing any final year project point.

    JavaScript Training in Chennai

    JavaScript Training in Chennai

    ReplyDelete

Blogger Tips and TricksLatest Tips And TricksBlogger Tricks