- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- NTP, time difference between th ntp server and HP ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 08:54 AM
05-25-2006 08:54 AM
How can i find out an HP UX server is in "sync" with NTP server or in other words what is the time difference betweem the NTP server and the HP UX server ?
If their is a time difference, can i do this procedure..
stop xntpd
ntpdate -b (ntp server)
start xntpd.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 09:01 AM
05-25-2006 09:01 AM
SolutionYou can do an 'ntpq -p' to see the status of the NTP servers, the last time they were polled, etc. Do a 'man ntpq' to learn what the output means.
I would not recommend doing an 'ntpdate' while applications are running and the system is up. That should only be done at boot time before applications even start.
NTP is robust enough that once it is set up and configured, it needs very little care and feeding.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 09:03 AM
05-25-2006 09:03 AM
Re: NTP, time difference between th ntp server and HP UX machine
Use 'ntpq -p' to query the associations betwee your server and its time sources. See the manpages for more information.
When you setup NTP ('xntpd') you need to set your server's time to a very nearly correct value to allow 'xntpd' to synchronize your server's time. NTP will abandon all attempts at time synchronization if its time source and its server differ by more than about 1000 seconds.
I would suggest that you configure NTP to set the server time to that of its time source(s) during bootup (by configuring the NTPDATE_SERVER variable in '/etc/rc.config.d/netdaemons') and thereafter let NTP run continuously.
Setting your local time forward isn't a problem. Setting time backwards can cause great problems with database recovery, transaction synchronization, logs and cron tasks. Should you need to step the time backwards, having configured the NTPDATE_SERVER variable means that the time the change is made during startup before the time-sensitive things (databases) are started.
Hence, if you need to move time backwards, I would arrange a point where you can simply reboot with the above configuration in place. If your local time is behind true time, you can simply step (with 'date mmddhhmm') the time to very near what is correct and thereafter let NTP synchronize your clock.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 03:55 PM
05-25-2006 03:55 PM
Re: NTP, time difference between th ntp server and HP UX machine
You will also see a special character in column 1, * menas the currently preferred server, + indicates servers that are also considered to be accurate and reliable. Other characters can be decoded from the ntpq man page.
So check syslog and ntpq -p every few days, then once a week or so to see that your NTP servers are working as expected.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2006 06:51 AM
05-30-2006 06:51 AM