Operating System - HP-UX
1753460 Members
4597 Online
108794 Solutions
New Discussion юеВ

Re: Failed to start XNTPD service

 
1221
Advisor

Re: Failed to start XNTPD service

All of a sudden it iss running now;

# ps -ef | grep ntp
root 14024 2446 0 10:49:38 pts/0 0:00 grep ntp
root 2620 1 0 08:55:04 ? 0:00 /usr/sbin/xntpd -x

# ntpq -p
remote refid st t when poll reach delay offset disp
==============================================================================
*cc01-dc10.kmc mirror 3 u 151 256 377 0.70 1.667 2.12
+g04-dc12.kmc cc01-dc10.kmc 4 u 9 256 377 0.75 2.029 5.83
+dbs2.kmc.edu cc01-dc10.kmc 4 u 186 256 377 0.23 -1.251 0.60

Thanks for your help.
Bill Hassell
Honored Contributor

Re: Failed to start XNTPD service

/etc # ll rc.config.d/netd*
-rw-r--r-- 1 root sys 2202 Feb 15 07:58 rc.config.d/netdaemons
-rw-r--r-- 1 root sys 2202 Feb 15 07:55 rc.config.d/netdaemons.old
-r--r--r-- 1 root sys 2156 Feb 14 14:01 rc.config.d/netdaemons_org

 *NEVER*, EVER leave junk files in the rc.config.d directory. This rule applies to every version of HP-UX. During bootup, *every* file in this directory is sourced into the rc startup environment. They are sourced in alphabetical order so in your small example above, netdaemons_org was run last and therefore set the environment. This is the only directory like this in HP-UX, so move *all* the junk files in this directory to another directory immediately. I usually create an old directory like this:

 

mkdir /etc/rc.config.d/old

 then move all the old junk into old. I have seen a machine down for two days because a test version of netconf (called netconf.test) was left in the rc.config directory, and the system always failed to start networking due to the bad file. Also get rid of any accidental files created by sitting in this directory and editing unrelated files.



Bill Hassell, sysadmin
basant
Frequent Advisor

Re: Failed to start XNTPD service

I have already faced the same issue. below is tested solutioin
Run a command ,
#xntpd -b

after that check
# ps -eaf | grep -i ntp
root 2488 1 0 Jan 7 ? 3:31 xntpd
root 24344 21824 0 03:32:09 pts/1 0:00 grep -i ntp
Basant Sharma