Operating System - Tru64 Unix
1753449 Members
6369 Online
108794 Solutions
New Discussion юеВ

Re: why have two NTP process after xntpd start

 
SOLVED
Go to solution
edward wang_1
Frequent Advisor

why have two NTP process after xntpd start

Hi
gs80,V5.1B
And I killed them, and restarted the daemon. But there were still 2 processes.

# ps -ef | grep ntp
root 370379 1 3.7 Sep 12 ?? 13:41:32 /usr/sbin/xntpd -g -c /etc/ntp.conf
root 370894 370379 0.0 Sep 12 ?? 0:00.59 /usr/sbin/xntpd -g -c /etc/ntp.conf
root 242803 243617 0.0 12:16:36 pts/6 0:00.01 grep ntp
# kill -9 370379 370894
#
# ps -ef | grep ntp
root 241066 243617 0.3 12:17:36 pts/6 0:00.01 grep ntp
# /sbin/init.d/xntpd start
Network Time Service started
#
# ps -ef | grep ntp
root 237930 242621 0.2 12:17:43 ?? 0:00.02 /usr/sbin/xntpd -g -c /etc/ntp.conf
root 242621 1 0.4 12:17:43 ?? 0:00.03 /usr/sbin/xntpd -g -c /etc/ntp.conf
root 242606 243617 0.3 12:17:46 pts/6 0:00.01 grep ntp

more /etc/ntp.conf
server sdbsmon1 version 3
peer mes3app0 version 3
I had copy /sbin/init.d/xntpd, /usr/sbin/xntpd file to other machine and ntp start ok just have one process.
12 REPLIES 12
Steven Schweda
Honored Contributor

Re: why have two NTP process after xntpd start

I know nothing, but it appears that one of
the xntpd processes is the parent of the
other. Perhaps it spawns/forks when it's
talking to someone else (or someone else is
talking to it). Perhaps "netstat -a" would
say something interesting about the NTP
port(s). ntpq or xntpdc might be able to
tell you things, too.
edward wang_1
Frequent Advisor

Re: why have two NTP process after xntpd start

Hi Steven
thanks you so much!
edward wang_1
Frequent Advisor

Re: why have two NTP process after xntpd start

Hi all

can anyone help me?
Rob Leadbeater
Honored Contributor

Re: why have two NTP process after xntpd start

Hi,

Awarding 8 points to an answer would indicate to those looking at the thread, that the problem was solved...

If it isn't then can we assume that you've done the things that Steven suggested ?

Cheers,

Rob
edward wang_1
Frequent Advisor

Re: why have two NTP process after xntpd start

Hi Rob
thank you help. I have not get netstat -a log
edward wang_1
Frequent Advisor

Re: why have two NTP process after xntpd start

Hi Steven and Rob
can't see any ntp info when using netstat -a

edward
Rob Leadbeater
Honored Contributor

Re: why have two NTP process after xntpd start

Hi,

OK... What does :

# ntpq -np

show you ? It should give you your NTP servers in numerical format.

Cheers,

Rob

edward wang_1
Frequent Advisor

Re: why have two NTP process after xntpd start

Hi Rob
# ntpq -np
127.0.0.1: timed out, nothing received
***Request timed out
thank you help.

edward
Rob Leadbeater
Honored Contributor
Solution

Re: why have two NTP process after xntpd start

Hi,

Do you know what the NTP configuration is supposed to be ?

You appear to be trying to work as both a server and client, by having both peer and server defined in your ntp.conf.

That might explain the two xntpd processes, but the ntpq -np output doesn't look too healthy.

You might also find some troubleshooting clues in /var/adm/syslog.dated/current/daemon.log

Cheers,

Rob