VMware Cloud Community
pdowning
Contributor
Contributor
Jump to solution

Setting up NTP on ESX server 3.0.2

I have setup 15 servers so far and have had no troubles. This one though is giving me fits. When I issue the command "ntpq -c pe" to start the ntp setu process, I get a return of "No Association ID's returned". What is that? The knowledge base shows nothing on it.

Thanks for helping out a newcomer to the community.

Paul

0 Kudos
1 Solution

Accepted Solutions
Dave_Mishchenko
Immortal
Immortal
Jump to solution

It's case sensitive - esxcfg-firewall --enableService ntpClient

View solution in original post

0 Kudos
16 Replies
mbtomczyk
Contributor
Contributor
Jump to solution

What we have done to configure the NTP setup is just VI the /etc/ntp.conf file and the /etc/ntp/stepticketer and then just restart the ntpd deamon

0 Kudos
mikepodoherty
Expert
Expert
Jump to solution

There is a knowledgebase article that works:

http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=1339&slice...

If the link doesn't work - go to vmware\support\knowledgebase and search for article 1339.

I've used the article to setup ntp on multiple systems.

HTH

Mike

0 Kudos
pdowning
Contributor
Contributor
Jump to solution

Actually, those steps are the ones I have followed, yet I still get that blasted msg. Does anyone have a clue as to what it means?

0 Kudos
mbtomczyk
Contributor
Contributor
Jump to solution

Paul, The only thing that I can think of there is something in your ntp.conf file.

Here is what I have in my ntp.conf file

restrict kod nomodify notrap noquery nopeer

restrict 127.0.0.1

server 0.north-america.pool.ntp.org

server 1.north-america.pool.ntp.org

server 2.north-america.pool.ntp.org

server 3.north-america.pool.ntp.org

driftfile /var/lib/ntp/drift

and I have the 1st 2 servers in my steptickers file

Hope this helps.

Also do you have the firewall ports open on your esx server.

0 Kudos
pdowning
Contributor
Contributor
Jump to solution

Thanks. I'll double check my ntp.conf file. Also, the firewall ports are open.

0 Kudos
rpartmann
Hot Shot
Hot Shot
Jump to solution

hi,

the ntp.conf file has a section that configures a fake driver.

If you leave that on, you will see the "LOCAL" peer.

When you comment it out, ntpq "peers" will return "No association ID's returned".

hope that helps,

Reinhard.

ps: Award points if you find answers helpful. Thanks.
0 Kudos
pdowning
Contributor
Contributor
Jump to solution

restrict default kod nomodify notrap

server 10.1x1.1.xx

server 10.1x1.1.xx

server 10.1x1.1.xx

driftfile /var/lib/ntp/drift

broadcastdelay 0.008

That is the ntp.conf file we use and has worked just fine till this install. Any more ideas?

0 Kudos
jjbakker
Contributor
Contributor
Jump to solution

Did you opened the firewall port 123/NTP?

Kind regards, JJBakker
0 Kudos
pdowning
Contributor
Contributor
Jump to solution

Yes, it is open.

0 Kudos
jhanekom
Virtuoso
Virtuoso
Jump to solution

Can you add "restrict 127.0.0.1" and try again?

0 Kudos
jlanders
VMware Employee
VMware Employee
Jump to solution

pdowning,

You need a "restrict 127.0.0.1" entry in your configuration. As KB

Article 1339 explains, this allows you to contact the local DNS

resolver in the Service Console. Without it, none of your the NTP

servers get added. With no NTP servers, you have no associations:

that's what the NTP tools are trying to tell you.

Joe

pdowning
Contributor
Contributor
Jump to solution

I'll give that a shot and see what happens. Thanks guys.

0 Kudos
pdowning
Contributor
Contributor
Jump to solution

I added the restrict 127 line. Now I get this error:

(1654) ERROR: Unknown service 'ntpclient'

when I type : esxcfg-firewall --enableService ntpclient

This is frustrating .....

0 Kudos
Dave_Mishchenko
Immortal
Immortal
Jump to solution

It's case sensitive - esxcfg-firewall --enableService ntpClient

0 Kudos
pdowning
Contributor
Contributor
Jump to solution

Duh .. thanks. I apparently can't read my own typing Smiley Wink

0 Kudos
pdowning
Contributor
Contributor
Jump to solution

Thanks fellas. This has been one of the most helpful support forums I've run across. I'll return to stump you again, I'm sure.

0 Kudos