- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- Re: xntpd "broke" and not able to start
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- 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
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-16-2011 06:32 AM
05-16-2011 06:32 AM
Re: xntpd "broke" and not able to start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-16-2011 11:16 AM
05-16-2011 11:16 AM
Re: xntpd "broke" and not able to start
Look for all the exit commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-16-2011 12:38 PM
05-16-2011 12:38 PM
Re: xntpd "broke" and not able to start
NTP is designed to maintain UTC (Zulu) time to within a fraction of a second. Forcing the time will cause NTP to try to fix the mistake unless there is more than about a 10 minute difference. If true, NTP (xntpd) will terminate as the difference is too much to correct.
HOWEVER, if you can't fix your badly designed application, you can certainly run the application in a different timezone. There are 86,400 timezones in HP-UX so you should have no problem creating a TZ value that makes your local time offset to whatever you want.
Here's how it works: The man page for environ describes the details for TZ, specifically how to set TZ without using the tztab file. Suppose you want the current time to be 3 hours, 25 minutes and 16 seconds west (behind) UTC (Zulu or GMT) time. Then set TZ=MYTIME3:25:16 and test your time like this:
# echo $TZ
EST5EDT
# date
Mon May 16 16:34:40 EDT 2011
# TZ=MYTIME3:25:16 date
Mon May 16 17:09:32 MYTIME 2011
To make this permanent for all applications and users, change the file /etc/TIMEZONE. Better yet, if only your application is broken, export the new TZ value into your application's startup procedure. Now the local time will be correct (and NTP can run) but your application will think it is 3:25:16 behind Zulu time.
NOTE: MYTIME is any 3 character (or longer) string you want to use to identify this strange time offset. It will be reported as the current timezone when you run the date command.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-16-2011 08:36 PM
05-16-2011 08:36 PM
Re: xntpd "broke" and not able to start
Checking the permissions of /sbin/init.d/xntpd, it has x for all owner, group and others. But, will check on the permissions of other files it might be calling. Gotta trace how xntpd starts then...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-17-2011 12:00 AM
05-17-2011 12:00 AM
Re: xntpd "broke" and not able to start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-17-2011 10:21 AM
05-17-2011 10:21 AM
Re: xntpd "broke" and not able to start
As may have already been pointed-out, if you set the clock back "too far" xntpd will decide that things are too screwed-up for it to do anything and will exit. I would expect a message in syslog to that effect.
If xntpd is running and doesn't bail, then eventually it *will* sync the time to whatever its time source(s) say the time happens to be. So, even if you start your system 45 seconds behind another, unless your time source(s) are reporting time 45 seconds behind what the other server's time source(s) are telling it, this system will end-up at the "correct" time and you will be back to square.
So, I suggest you stop trying to treat the symptom and treat the root cause - the seemingly fubar authentication software.
All that said, if what xntpd is doing remains inscrutable you might try running it "by hand" as root, under "tusc" (have tusc follow forks and be verbose) and then you will be able to see all the system calls it is making and perhaps divine what it is doing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-17-2011 11:14 AM
05-17-2011 11:14 AM
Re: xntpd "broke" and not able to start
grep NTP /etc/rc.config.d/netdaemons
and
grep -v ^# /etc/ntp.conf |grep -v ^$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-17-2011 03:58 PM
05-17-2011 03:58 PM
SolutionWhen you start xntpd by hand, use this command:
xntpd -l /var/adm/xntpd.log
To make the log location permanent, change the /etc/rc.config.d/netdaemons file to start NTP with this option:
export XNTPD_ARGS="-l /var/adm/xntpd.log"
Now all the NTP messages will be logged outside of HP-UX syslog.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-17-2011 04:18 PM
05-17-2011 04:18 PM
Re: xntpd "broke" and not able to start
I cannot claim with certainty that 126 means the same thing here, but some web searching on exit codes finds hits like:
http://tldp.org/LDP/abs/html/exitcodes.html
which suggests an exit code of 126 means the command could not be executed - perhaps for permissions problems like say trying to start xntpd as a user other than root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-17-2011 06:06 PM
05-17-2011 06:06 PM
Re: xntpd "broke" and not able to start
thanks all for your contribution. Esp Bill for the tips on logging. Always appreciate tips on how we can troubleshoot. Including Rick's tusc, albeit i don't have it installed currently.
Now the cause.
i did a "ll /usr/sbin/xntpd" and the size of the binary was 0. How and when it ever got to that, is hard to trace. Possibly when the clock was set back, the binary broke.. Well, it works now after replacing the binary..
Once again thanks all.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP