- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- Networking
- >
- Re: Configure 11.31 as NTP Client
-
- Forums
-
Blogs
- Hybrid Cloud
- Edge
- Data & AI
- Working in Tech
- AI Insights
- Alliances
- Around the Storage Block
- Behind the scenes at Labs
- Careers in Tech
- HPE Storage Tech Insiders
- Inspiring Progress
- IoT at the Edge
- My Learning Certification
- OEM Solutions
- Servers: The Right Compute
- Shifting to Software-Defined
- Telecom IQ
- Transforming IT
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Russia
- HPE Blog, UK & Ireland
- Blogs
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-23-2017 03:34 AM
11-23-2017 03:34 AM
I have a SUSE Linux machine that is set up as an NTP server. It looks to me like it is using NTPv4. I want to set up my HP-UX 11.31 box as an NTP client which uses the Linux NTP server. However when I go into 'Add NTP Server or Peer' in SMH, it only lets me select 1-3 for the NTP version.
However when I do an swlist, it shows that I have C.4.2.8.2.0 HPUX NTP version 4 installed.
What's going on here? Can I make it use NTPv4?
Many thanks,
Gary
Solved! Go to Solution.
- Tags:
- NTP
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-23-2017 11:20 AM
11-23-2017 11:20 AM
SolutionSMH probably needs to be patched.
It is much simpler to edit the two NTP config files:
1. Replace all the comments in /etc/nto.conf with
server suse-NTP-IPaddr
2. Add the NTP server to /etc/rc.config.d/netdaemons:
export NTPDATE_SERVER="suse-NTP-IPaddr"
The NTP daemon will negotiate with the server
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2017 07:32 AM
11-24-2017 07:32 AM
Re: Configure 11.31 as NTP Client
Followup: the default for NTP will be 4 for version 4 installs. But you can also set version 4 for outgoing packets in ntp.conf like this:
server suse-NTP-IPaddr version 4
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2017 07:47 AM
11-24-2017 07:47 AM
Re: Configure 11.31 as NTP Client
Thanks for the info. I've updated ntp.conf and netdaemons.
I notice from the ntp.conf man page that the version defaults to 4, so I've omitted the version parameter.
It all seems to be workin now - my HP-UX box is synchronised with my SLES machine.
I was sort of expecting somewhere along the way a message in syslog to say that it wasn't synchronised and was going to make up the difference, but there wasn't one.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-24-2017 08:24 AM
11-24-2017 08:24 AM
Re: Configure 11.31 as NTP Client
Normally, ntpd is fairly noisy so I keep the messages in a separate log file.
Edit /etc/rc.config.d/netdaemons and change the logging location:
export XNTPD_ARGS="-l /var/adm/ntpd.log"
Then restart ntpd like this:
# /sbin/init.d/ntpd stop # /sbin/init.d/ntpd start
Note that this wil 'jump' sync the time rather than slowly adjust the time in fractions of a second.
You will see the restart info in the ntp.log file.
If you have databases running, it is not recommended to jump the time. Instead, place the database in read-only or backup mode, then restart ntpd. Then monitor the stats with:
# ntpq -p
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-28-2017 07:54 AM
11-28-2017 07:54 AM
Re: Configure 11.31 as NTP Client
Hi Bill,
One other thing that I noticed - a new VM that I configured NTP client on also needed 'export XNTPD=1' and the NTP daemon starting manually.
There doesn't seem to be much NTP 'chatter' in syslog at the moment, so I think I'll leave the message redirection unless things change.
Thanks for all of your help.
Gary
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2019 Hewlett Packard Enterprise Development LP