- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- xntpd "broke" and not able to start
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
Discussions
Discussions
Forums
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
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-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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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.