Operating System - HP-UX
1824724 Members
3692 Online
109674 Solutions
New Discussion юеВ

No association ID's returned--Getting error while ntpq -p

 
SOLVED
Go to solution
Sreer
Valued Contributor

No association ID's returned--Getting error while ntpq -p

Hi Gurus,
Iam trying to configure a Ntp server and a client .
As part of creating ntp server : I have done the following steps:
1. changed my time zone to desired one
2.Adjusted system time.

3 In /etc/rc.config.d/netdaemons :

export NTPDATE_SERVER=
export XNTPD=1
export XNTPD_ARGS=

4. In /etc/ntp.conf :
rx260-15 16.118.112.141 --added [my ntp server]

5.manualy started the ntp daemon:

/sbin/init.d/xntpd start

checked it is running:
# ps -ef | grep -i ntp
root 1520 1 0 17:41:00 ? 0:00 /usr/sbin/xntpd
[rx260-15]/
#
6. ut while checking with ntpq -p iam getting error.

# ntpq -p
No association ID's returned
[rx260-15]/
#


Could you pls support Urgrntly?

Rgds Sree
3 REPLIES 3
Bill Hassell
Honored Contributor
Solution

Re: No association ID's returned--Getting error while ntpq -p

> 1. changed my time zone to desired one

The timezone for all users when they login is stored in the file: /etc/TIMEZONE. Change this file so the TZ value will be retained between reboots.

> 2.Adjusted system time.

This is correct since your current TZ value matches your local time.

> 3 In /etc/rc.config.d/netdaemons :

You must change two lines:

export NTPDATE_SERVER=16.118.112.14
export XNTPD=1

This is the NTP server that will be used when you reboot or start the xntpd server with /sbin/init.d/xntpd

> 4. In /etc/ntp.conf :
> rx260-15 16.118.112.141 --added [my ntp server]

The first word is "server", not the name of a server. The correct format is:

server 16.118.112.141
fudge 127.127.1.1 stratum 10
driftfile /etc/ntp.drift

The fudge entry is used to keep time with the local clock until the NTP server comes back online. The driftfile is needed to track the local server's drift.

> 5.manualy started the ntp daemon:
> /sbin/init.d/xntpd start

That is correct but you must look in syslog.log to see the results. The results of the xntpd start will be at the end of /var/adm/syslog/syslog.log but will repeat the results that you saw with ntpq.

> # ntpq -p
> No association ID's returned

This is due to the error in ntp.conf. However, it is a better idea to test your ntp server by asking it where it obtains its time information:

ntpq -p 16.118.112.141

This should return something like this:

remote refid st t when poll reach delay offset disp
==============================================================================
+phoenix.netserv rolex.netservic 2 u 239 1024 377 49.27 -1.744 0.67

(this will be lined up better on your screen)

However, if the 16.118.112.141 server is not providing NTP services or does not exist, you'll get errors.


Bill Hassell, sysadmin
Sreer
Valued Contributor

Re: No association ID's returned--Getting error while ntpq -p

Hello Hassel,

Thanks a lot!! It worked.I have applied the changes that you mentioned.

One personal question to Hassel..Can I get your gmail id if you have ..Since Iam in an implimentaion of few servers so that I can get the valuble help from you if you are free!!!!!

Sreer
Valued Contributor

Re: No association ID's returned--Getting error while ntpq -p

This topic can be closed