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
NTP(8)							      System Manager's Manual							    NTP(8)

NAME
ntp - query an ntp clock SYNOPSIS
ntp [-v] [-s] [-f] hosts... DESCRIPTION
ntp sends an ntp packet to the ntp daemon running on each of the given hosts. A daemon fills in fields of the ntp packet as per RFC-???? and sends the packet back. ntp then formats and prints the result on the standard output. The default output shows the delay, offset, and date in ctime() format. Options can reset the time of the local system clock. OPTIONS
-v Verbose output, showing the full contents of received ntp packets, plus caluclated offset, displacement, etc. -s Set system time-of-day clock. Will only happen if time offset is less than compiled-in constant WAYTOBIG (currently 1000 seconds). Will not happen if remote host is unsynchronized. -f Force setting system clock regardless of offset. Must be used with -s option. Still will not reset clock if remote system is unsynchronized. NTP RESULTS
The default output for each host looks like this: 128.8.10.1: delay:1.845207 offset:-0.358460 Mon Mar 20 08:05:44 1989 The verbose output for each host looks like this: Packet from: [128.8.10.1] Leap 0, version 1, mode Server, poll 6, precision -10 stratum 1 (WWVB) Synch Distance is 0000.1999 0.099991 Synch Dispersion is 0000.0000 0.000000 Reference Timestamp is a7bea6c3.88b40000 Tue Mar 7 14:06:43 1989 Originate Timestamp is a7bea6d7.d7e6e652 Tue Mar 7 14:07:03 1989 Receive Timestamp is a7bea6d7.cf1a0000 Tue Mar 7 14:07:03 1989 Transmit Timestamp is a7bea6d8.0ccc0000 Tue Mar 7 14:07:04 1989 Input Timestamp is a7bea6d8.1a77e5ea Tue Mar 7 14:07:04 1989 umd1: delay:0.019028 offset:-0.043890 Tue Mar 7 14:07:04 1989 The various fields are interpreted as follows: Packet from: [address] The address that this ntp packet was received from. Leap indicator: n The leap second indicator. Non-zero if there is to be a leap second added or subtracted at the new year. Status: n Stratum: n (source) The stratum of the clock in the NTP hierarchy, along with the source of the clock, either the name of a reference standard (such as WWVB or GOES) or the Internet address of the clock that this clock is derived from. Poll = n The desired poll rate of the peer. Precision = exponent (dec) The claimed precision of the clock, in seconds. Synchronizing Dist is ??? Synchronizing Dispersion is ??? The next five timestamps are given as NTP fixed-point values, in both hexadecimal and ctime(3). These are set either by this ntp process, or by the server we are quering. Reference Timestamp is hex-timestamp ctime string The last time the server clock was adjusted. (remote time) Originate Timestamp is hex-timestamp ctime string When the ntp request was transmitted by us to the server. (local time) Receive Timestamp is hex-timestamp ctime string When the ntp request was received at the server. (remote time) Transmit Timestamp is hex-timestamp ctime string When the ntp response was transmitted by the server. (remote time) Input Timestamp is hex-timestamp ctime string When the ntp response was received by us. (local time) hostname: delay:time offset:time The summary of the results of the query, giving the hostname of the responding clock (from the command line), the round-trip delay, and the offset between the two clocks (assuming symmetric round-trip times). BUGS
Using ntp with the current host will show inaccurate results. Probably a few others. Report bugs to Louis A. Mamokos (louie@trantor.umd.edu). SEE ALSO
RFC-???? Network Time Protocol(1), Dave Mills and ... ntpd(8), ntpdc(8) 30 July 1988 NTP(8)
All times are GMT -4. The time now is 10:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy