Sponsored Content
Operating Systems Linux Red Hat NTP Configuration on RHEL 5.4 Post 302386246 by max_min on Tuesday 12th of January 2010 12:49:43 AM
Old 01-12-2010
NTP Configuration on RHEL 5.4

Hi,

I'm trying to configure NTP client, however it failes to sync correctly.
Even after I manually set the time, once it connects with the NTP server, it pushes the time ahead by 4 hours.
We have set an AIX host as NTP server. It works fine for other AIX hosts, however fails on RHEL 5.4

Code:
[root@mpr21r08 ~]#
[root@mpr21r08 ~]# date
Tue Jan 12 07:48:55 SAST 2010
[root@mpr21r08 ~]# hwclock
Tue 12 Jan 2010 07:49:13 AM SAST  -0.850446 seconds
[root@mpr21r08 ~]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*app03r03        LOCAL(0)         4 u 4971  512  377    0.168    0.697   0.598
[root@mpr21r08 ~]# service ntpd restart
Shutting down ntpd:                                        [  OK  ]
ntpd: Synchronizing with time server:                      [  OK  ]
Starting ntpd:                                             [  OK  ]
[root@mpr21r08 ~]# date
Tue Jan 12 11:49:51 SAST 2010
[root@mpr21r08 ~]# hwclock
Tue 12 Jan 2010 07:49:55 AM SAST  -0.711595 seconds
[root@mpr21r08 ~]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 app03r03        LOCAL(0)         4 u   18   64    1    0.213    0.043   0.001
[root@mpr21r08 ~]#

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

ntp configuration

Hi all, I'm sure this question was asked before but I couldn't find what I was looking for in the 2 threads I found on here. Here's my question/problem: I have an isolated (no connection to outside world at all) Unix network. I want to have time sync between my other non-PC based system... (0 Replies)
Discussion started by: mariobernier
0 Replies

2. Solaris

ntp server configuration

hi Please give me the configuration steps for NTP server. How do i sync other servers with this NTP server thanks to all (1 Reply)
Discussion started by: sijocg
1 Replies

3. UNIX for Dummies Questions & Answers

NTP configuration issue..

hello Guys, I have an NTP problem on my SUN N240 server. External NTP server is being used for this box and when i run 'ntpq -p' i get connection refused message; ntpq -p ntpq: read: Connection refused Here this is the ntp.conf file: cat /etc/ntp.conf # BEGIN NTP SERVERS server... (6 Replies)
Discussion started by: dyavuzy1
6 Replies

4. Red Hat

RHEL 6.0 net configuration

hello, I have installed RHEL 6.0 on my lappy in a separate partion with windows 7 on the hardware(not using VMWARE).Now kindly help me to active network configuration in that?????Is it require to have LINUX wireless drivers???? (1 Reply)
Discussion started by: dillipkmrpadhy
1 Replies

5. Solaris

ntp client configuration error

hi all ntp client side configuration file is done but in # ntpq -p remote refid st t when poll reach delay offset disp ============================================================================== ntpserver .INIT. 16 u - 64 0 0.00 0.000... (5 Replies)
Discussion started by: nikhil kasar
5 Replies

6. Red Hat

RIP configuration in RHEL 6.3

Hi, Can someone please help me configuring RIP (Routing Information Protocol v2 ). I have tried few manuals and posts from networking sites and i didnt get a clear picture. This is what i have done: 1. Installed routed package and started routed service. however, Dynamic routes are... (1 Reply)
Discussion started by: reddybs
1 Replies

7. Red Hat

NTP Configuration file

Hi, Could you please explain about "restrict" parameters in /etc/ntp.conf in ntp client and ntp Servers. Example: restrict 127.0.0.1 restrict -6 ::1 restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap Regards, Mastan (1 Reply)
Discussion started by: mastansaheb
1 Replies

8. Red Hat

Need Good Configuration For RHEL Virtualization Desktop

Hi All , I want a Good Specification For Building a Coustum PC must Have With Intel Motherboard and Intel Processor , And Must Have Virtualization , Cos im Gonna Install Redhat Enterprise Virtualization Based PC and Gonna install win Xp , Win 7 as a Guest Os in it .. Any one Have Good Spec for... (2 Replies)
Discussion started by: babinlonston
2 Replies

9. Red Hat

How to configure DNS configuration for RHEL 5?

I wanted to know how to configure DNS configuration for RHEL 5. I hope, my query is clear of how to setup DNS for RHEL 5. Please revert with the reply to my query Regards (6 Replies)
Discussion started by: RHCE
6 Replies

10. UNIX for Beginners Questions & Answers

Snmptrapd configuration on rhel 8

I need to configure snmptrap on rhel 8 server and send trap to nimsoft for file system , memory and cpu load and network diconnection status. please help me, if any one configured. (1 Reply)
Discussion started by: yash_message
1 Replies
Net::NTP(3pm)						User Contributed Perl Documentation					     Net::NTP(3pm)

NAME
Net::NTP - Perl extension for decoding NTP server responses SYNOPSIS
use Net::NTP qw(get_ntp_response); my %response = get_ntp_response(); ABSTRACT
All this module does is send a packet to an NTP server and then decode the packet received into it's respective parts - as outlined in RFC1305 and RFC2030. DESCRIPTION
This module exports a single method (get_ntp_response) and returns an associative array based upon RFC1305 and RFC2030. The response from the server is "humanized" to a point that further processing of the information received from the server can be manipulated. For example: timestamps are in epoch, so one could use the localtime function to produce an even more "human" representation of the timestamp. EXPORT get_ntp_response(<server>, <port>); This module exports a single method - get_ntp_response. It takes the server as the first argument (localhost is the default) and port to send/recieve the packets (ntp or 123 bu default). It returns an associative array of the various parts of the packet as outlined in RFC1305. It "normalizes" or "humanizes" various parts of the packet. For example: all the timestamps are in epoch, NOT hexidecimal. SEE ALSO
perl, IO::Socket, RFC1305, RFC2030 AUTHOR
Now maintained by Ask BjA~Xrn Hansen, <ask@develooper.com<gt> Originally by James G. Willmore, <jwillmore (at) adelphia.net<gt> or <owner (at) ljcomputing.net<gt> Special thanks to Ralf D. Kloth <ralf (at) qrq.de<gt> for the code to decode NTP packets. COPYRIGHT AND LICENSE
Copyright 2009 by Ask BjA~Xrn Hansen; 2004 by James G. Willmore This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.3 2011-06-05 Net::NTP(3pm)
All times are GMT -4. The time now is 03:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy