NTP in HP-UX B.11.31

 
Tyates27
Occasional Contributor

NTP in HP-UX B.11.31

 

I have an hp-ux server running B.11.31 and I am having a problem with synchronizing the time with an NTP server.  Ntp.conf is setup correctly.

Running 'ntpq -p' gives an error 'ntpq: read: Can't assign requested address' . 

After some research I find that the ntp daemon is colliding with the cimserver on port 123.

cimserver is a daemon for HP WBEM Services. 

Can someone please help me with the next step to resolving this?

Thanks

Tom

3 REPLIES 3

Re: NTP in HP-UX B.11.31

How exactly have you determined that cimserver is using port 123? 

cimserver should only be listening on port 5989 unless it has had SSL disabled, in which case it would instead listen on port 5988. It certainly shouldn't be using port 123 - how did you make this determination?


I am an HPE Employee
Accept or Kudo
Tyates27
Occasional Contributor

Re: NTP in HP-UX B.11.31

I used ‘ps -aef|grep cimserver’  and it showed what I believed to be a port of 123. Perhaps I was wrong.

The bottom line is that I need to get past the ntpq -p error

'ntpq: read: Can't assign requested address'

Any help is greatly appreciated.

Tom

Re: NTP in HP-UX B.11.31

The ps command is not going to tell you what ports a process has open!

You should install a copy of lsof from here: http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.94.0/

You can then run:

 lsof -i :123

Here's the output of ntpq -p and lsof -i :123 on my system (which is actually just an 11.11 workstation but should be similar enough for NTP issues)

# ntpq -p
     remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
 LOCAL(1)        LOCAL(1)        10 l   31   64  377     0.00    0.000   10.01
*time.cloudflare 10.21.8.19       3 u   62   64  377    15.40   -6.805    1.43
# lsof -i :123
COMMAND  PID USER   FD   TYPE     DEVICE SIZE/OFF NODE NAME
xntpd   2076 root    4u  IPv4 0x4b580cc0      0t0  UDP *:ntp (Idle)
xntpd   2076 root    5u  IPv4 0x4b580e40      0t0  UDP c3000:ntp (Idle)
xntpd   2076 root    6u  IPv4 0x4b771100      0t0  UDP localhost:ntp (Idle)

 


I am an HPE Employee
Accept or Kudo