- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- NTPDATE - Help please
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2008 10:39 AM
06-19-2008 10:39 AM
With this command:
[root@lab1 sbin]# ntpdate -qv clock2.redhat.com
I didn't get any answer.
But ntpdate is running in my server.
[root@lab1 sbin]# /sbin/service ntpd status
ntpd (pid 8962 8959) is running...
this command:
[root@lab1 sbin]# /usr/sbin/ntpq
ntpq> peer
localhost.localdomain: timed out, nothing received
***Request timed out
The /etc/ntp.conf
:
# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
restrict default nomodify notrap noquery
# Permit all access over the loopback interface. This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1
# -- CLIENT NETWORK -------
# Permit systems on this network to synchronize with this
# time service. Do not permit those systems to modify the
# configuration of this service. Also, do not use those
# systems as peers for synchronization.
# restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
restrict 172.27.109.42 mask 255.255.255.0 nomodify notrap
# --- OUR TIMESERVERS -----
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
restrict 66.187.224.4 mask 255.255.255.255 nomodify notrap noquery
# The server listed below is clock2.redhat.com
server 66.187.224.4
# --- NTP MULTICASTCLIENT ---
#multicastclient # listen on default 224.0.1.1
# restrict 224.0.1.1 mask 255.255.255.255 nomodify notrap
# restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
# --- GENERAL CONFIGURATION ---
#
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available. The
# default stratum is usually 3, but in this case we elect to use stratum
# 0. Since the server line does not have the prefer keyword, this driver
# is never used for synchronization, unless no other other
# synchronization source is available. In case the local host is
# controlled by some external source, such as an external oscillator or
# another protocol, the prefer keyword would cause the local host to
# disregard all other synchronization sources, unless the kernel
# modifications are in use and declare an unsynchronized condition.
#
#server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
#
# Drift file. Put this in a directory which the daemon can write to.
# No symbolic links allowed, either, since the daemon updates the file
# by creating a temporary in the same directory and then rename()'ing
# it to the file.
#
driftfile /var/lib/ntp/drift
broadcastdelay 0.008
#
# Keys file. If you want to diddle your server at run time, make a
# keys file (mode 600 for sure) and define the key number to be
# used for making requests.
#
# PLEASE DO NOT USE THE DEFAULT VALUES HERE. Pick your own, or remote
# systems might be able to reset your clock at will. Note also that
# ntpd is started with a -A flag, disabling authentication, that
# will have to be removed as well.
#
keys /etc/ntp/keys
Any help ?????????
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2008 10:55 AM
06-19-2008 10:55 AM
Re: NTPDATE - Help please
If you don't receive any answer, probably your system is firewalled, check your firewall status.
¿What distro are you using?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2008 11:14 AM
06-19-2008 11:14 AM
Re: NTPDATE - Help please
I stop to the command.
I am using Red Hat.
So... what can i do to resolve this firewall problem? =P
thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2008 07:05 PM
06-19-2008 07:05 PM
Re: NTPDATE - Help please
service ntpd stop
service iptables stop
ntpdate -b
service ntpd start
ntpq -pn
chkconfig iptables off
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2008 12:31 AM
06-20-2008 12:31 AM
Re: NTPDATE - Help please
restrict default nomodify notrap noquery
restrict 127.0.0.1
driftfile /var/lib/ntp/drift
keys /etc/ntp/keys
and along trhe above lines put only the ntp server name like
server x.x.x.x
and then put your ntp server's ip address in /etc/ntp/step-tickers file.
now all set. start the ntp service and check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2008 07:19 AM
06-23-2008 07:19 AM
Re: NTPDATE - Help please
[root@lab1 media]# /etc/init.d/ntpd start
ntpd: Synchronizing with time server: [FAILED]
Starting ntpd:
[root@lab1 media]# /etc/init.d/ntpd status
ntpd (pid 19488 19487 19464 19461) is running...
I think is some firewall problem. (someone already said this...)
But what can i do to solve?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2008 01:20 PM
06-23-2008 01:20 PM
Re: NTPDATE - Help please
[root@lab1 /]# ping 66.187.224.4
PING 66.187.224.4 (66.187.224.4) 56(84) bytes of data.
From 172.27.109.3 icmp_seq=0 Packet filtered
From 172.27.109.3 icmp_seq=1 Packet filtered
From 172.27.109.3 icmp_seq=3 Packet filtered
From 172.27.109.3 icmp_seq=4 Packet filtered
is some firewall problem???
what can i do to solve????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2008 09:31 PM
06-23-2008 09:31 PM
Re: NTPDATE - Help please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2008 05:16 AM
06-24-2008 05:16 AM
Re: NTPDATE - Help please
chkconfig ntpd on
That won't solve your connection issue, but the daemon will start after boot up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2008 05:23 AM
06-24-2008 05:23 AM
Re: NTPDATE - Help please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2008 05:53 AM
06-24-2008 05:53 AM
Re: NTPDATE - Help please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2008 05:58 AM
06-24-2008 05:58 AM
Re: NTPDATE - Help please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2008 06:11 AM
06-24-2008 06:11 AM
Re: NTPDATE - Help please
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2008 06:14 AM
06-24-2008 06:14 AM
Re: NTPDATE - Help please
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2008 07:42 AM
06-24-2008 07:42 AM
SolutionUmm, 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2008 10:01 AM
06-24-2008 10:01 AM
Re: NTPDATE - Help please
Hm... do you know where is this option?
>>>You wouldn't configure ntpdate. You would setup and configure ntpd.
hmmm.. ok.. thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2008 10:04 AM
06-24-2008 10:04 AM
Re: NTPDATE - Help please
http://www.vmware.com/pdf/vmware_timekeeping.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2008 11:11 AM
06-24-2008 11:11 AM
Re: NTPDATE - Help please
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2008 06:20 AM
06-25-2008 06:20 AM
Re: NTPDATE - Help please
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?????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2008 06:38 AM
06-25-2008 06:38 AM
Re: NTPDATE - Help please
[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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2008 07:03 AM
06-25-2008 07:03 AM
Re: NTPDATE - Help please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2008 07:08 AM
06-25-2008 07:08 AM
Re: NTPDATE - Help please
lab1 is the host.
no... is a HP DL 380 server with Red Hat.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2008 07:12 AM
06-25-2008 07:12 AM
Re: NTPDATE - Help please
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2008 07:53 AM
06-25-2008 07:53 AM
Re: NTPDATE - Help please
# service iptables status
to see if it is running, if so run
# service iptables stop
If you want to run the firewall you will need to edit the firewall rules to allow udp port 123 outbound. And then run "service iptables save". Otherwise you can turn off the firewall at next reboot by running
# chkconfig iptbales off
But, I'll leave that decision to you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2008 07:57 AM
06-25-2008 07:57 AM