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

Post a Comment

19 Comments

  1. Fantastic blog with excellent information found valuable thank you for sharing.
    Data Analytics Course Online 360DigiTMG

    ReplyDelete
  2. Such an excellent article. Found very interesting and resourceful, I would like to thank you for the efforts you had made for writing this awesome article.
    typeerror nonetype object is not subscriptable

    ReplyDelete
  3. Really nice and interesting blog information shared was valuable and enjoyed reading this one. Keep posting. Thanks for sharing.
    Data Science Training in Hyderabad

    ReplyDelete
  4. Fantastic article with informative content. Information shared was valuable and enjoyed reading it looking forward for next blog thank you.
    Ethical Hacking Course in Bangalore

    ReplyDelete
  5. This is an excellent post I saw thanks for sharing it. It is really what I wanted to see. I hope in the future you will continue to share such an excellent post.

    best data science institute in hyderabad

    ReplyDelete
  6. Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!

    business analytics course

    ReplyDelete
  7. I read that Post and got it fine and informative. Please share more like that...
    Best Data Science courses in Hyderabad

    ReplyDelete
  8. A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one.
    ServiceNow Training in Pune

    ReplyDelete
  9. You really make it look so natural with your exhibition however I see this issue as really something which I figure I could never understand.
    ServiceNow Training in Pune

    ReplyDelete
  10. After reading your article I was amazed. I know that you explain it very well. And I hope that other readers will also experience how I feel after reading your article.
    servicenow training and placement in hyderabad

    ReplyDelete
  11. Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.
    servicenow training in hyderabad

    ReplyDelete
  12. After reading your article I was amazed. I know that you explain it very well. And I hope that other readers will also experience how I feel after reading your article.
    ServiceNow Training in Chennai

    ReplyDelete
  13. Impressive blog to be honest definitely this post will inspire many more upcoming aspirants.
    ServiceNow Training in Chennai

    ReplyDelete