Operating System - Linux
1752701 Members
6864 Online
108789 Solutions
New Discussion юеВ

Re: NTPDATE - Help please

 
SOLVED
Go to solution
Court Campbell
Honored Contributor

Re: NTPDATE - Help please

Have a network admin open udp port 123 to the server(2) where you are going to get time from. Also, have you thought about using a local server on your same network for time?
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Court Campbell
Honored Contributor

Re: NTPDATE - Help please

That should have been server(s).
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
BiancaP.
Frequent Advisor

Re: NTPDATE - Help please

I discover what happen.
There is a firewall blocking any external site that i try to ping:

[root@lab1 ~]# ping www.uol.com.br
PING www.uol.com.br (200.221.2.45) 56(84) bytes of data.
From router-virtual.sao-paulo.axalto.com (172.27.109.3) icmp_seq=1 Packet filtered
From router-virtual.sao-paulo.axalto.com (172.27.109.3) icmp_seq=2 Packet filtered

They tell to me that i can't enter in any external site.

Is there anything i can do to solve this problem ??

Or just who have access to this firewall can do something??

thanks!
BiancaP.
Frequent Advisor

Re: NTPDATE - Help please

>>> Also, have you thought about using a local server on your same network for time?


what local server?
i have problem with the host and the vmwares, the time is always different.
So, my idea is configure a ntpdate in host, and the vmwares get the same time.
Court Campbell
Honored Contributor
Solution

Re: NTPDATE - Help please

>> what local server?

Umm, a server that you have available to pull time from. Prefereably the vmware host at this point.

>> i have problem with the host and the vmwares, the time is always different.

If I remember corecctly there is an option in vmware guests to get their time from the host.

>> So, my idea is configure a ntpdate in host, and the vmwares get the same time.

You wouldn't configure ntpdate. You would setup and configure ntpd.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
BiancaP.
Frequent Advisor

Re: NTPDATE - Help please

>>>If I remember corecctly there is an option in vmware guests to get their time from the host.

Hm... do you know where is this option?

>>>You wouldn't configure ntpdate. You would setup and configure ntpd.

hmmm.. ok.. thanks
Court Campbell
Honored Contributor

Re: NTPDATE - Help please

It's been awhile, but I would start here:

http://www.vmware.com/pdf/vmware_timekeeping.pdf
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Rob Leadbeater
Honored Contributor

Re: NTPDATE - Help please

Hi,

If you can't get out to the real world to interrogate an NTP server, you either need to find one that already exists on the internal network, or configure one of your machines to be an NTP server.

You might find that your network people have got NTP running on your routers or firewalls, that you can point your machines at.

If not, then you need to make one of your machines the master NTP server, and then point all of the other machines at it. It doesn't really matter to VMware if the real time isn't used, just that all the machines have the same time...

Hope this helps,

Regards,

Rob
BiancaP.
Frequent Advisor

Re: NTPDATE - Help please

I got an internal IP to configure the ntp server... when i ping is everthing ok...


when i configure a vmware in my server is everthing ok:

[root@static-109 ~]# ntpdate 172.27.109.56
25 Jun 10:45:30 ntpdate[5376]: step time server 172.27.109.56 offset 6649.680474 sec

but when i try to configure my server, i cant:


[root@lab1 ~]# ntpdate 172.27.109.56
[root@lab1 ~]#
[root@lab1 ~]#
[root@lab1 ~]#
[root@lab1 ~]# ntpq -pn
localhost.localdomain: timed out, nothing received
***Request timed out
[root@lab1 ~]# ntpdc -nc reslist
localhost.localdomain: timed out, nothing received
***Request timed out
[root@lab1 ~]# service ntpd status
ntpd (pid 23741 23739) is running...
[root@lab1 ~]#

netstat -tuna


udp 0 0 172.27.109.42:123 0.0.0.0:*
udp 0 0 172.27.109.42:123 0.0.0.0:*
udp 0 0 127.0.0.1:123 0.0.0.0:*
udp 0 0 0.0.0.0:123 0.0.0.0:*
udp 0 0 :::123 :::*

(ok)

my ntp.conf is ok too..

Any idea to my problem?????
BiancaP.
Frequent Advisor

Re: NTPDATE - Help please

more information:


[root@lab1 ~]# ntptrace 172.27.109.56
printer-056.sao-paulo.axalto.com: stratum 3, offset -0.053243, synch distance 0.213080
/usr/sbin/ntpq: read: No route to host