Sponsored Content
Operating Systems Linux Red Hat NTPD service restart and time synch Post 302992581 by Anjan Ganguly on Monday 27th of February 2017 01:04:35 PM
Old 02-27-2017
NTPD service restart and time synch

I am using ntpd service to sync our RHEL 5.9 system to synch with GPS clock.
When I change the RHEL system time more than 7 seconds than the present system time (through "Datetime" command), ntpd service does not adjust the system time to the present GPS time.But if the time is with in 7 seconds, the system time is correctly adjusted after we change the system time manually by "datetime" command.
7 second is specified in our drift file. Once I restarts the ntpd service manually, the time is again adjusted with the present GPS time. I have read many article in google and my understanding from the articles are as follows.

The ntpd service adjusts the drift (drift is specified in drift file).It assumes that systeem clock should be always synched with the GPS clock (reliable time source) unless and until ntpd
malfunctions. Can any one tell how ntpd works in comparison with W32tm service in window system?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Service Restart Netbackup

For vertitas netbackup 6.0 I have media server :Solaris Client server: Windows I want to restart the netbackup service on the media server . plz suggest ASAP. (1 Reply)
Discussion started by: saurabh84g
1 Replies

2. Shell Programming and Scripting

Restart a Service!!

Hello, I am trying to write a script which will monitor few processes(winbind) for cpu utilization, If the process consumes more than say 99% cpu for 3 minutes, I want to run a script to restart the service which forks the process. ---------- Post updated at 11:21 AM ---------- Previous update... (5 Replies)
Discussion started by: linuxaddict7
5 Replies

3. HP-UX

Script to auto restart a service

Hi All, May i please know if it is possible to write a script to check the log messages and automatically restart a service if it is failed or it is stopped. Appreciate your suggestions. Thanks in advance. regards, Eajaz (2 Replies)
Discussion started by: ajazshariff
2 Replies

4. Shell Programming and Scripting

Need to Restart Service with Password

Hi All, Requirement : I need to check for some services in my environment and restart the service if its not running. I have written script to check the script if its running or not. While if its not running i need to restart it using ./start command. But it will ask for password prompt and i... (4 Replies)
Discussion started by: pradeepbaliga
4 Replies

5. Shell Programming and Scripting

how to synch 2 processes to start at the same time

Hey Excuse me if this question is repeated everywhere but I am still new with scripting and I couldn't apply what I found to my case :confused::confused: I am trying to run a rec process on a ssh client and at the same time play a file from my computer so i tried this #!/bin/bash echo... (3 Replies)
Discussion started by: Antaha
3 Replies

6. SuSE

Service restart daily

Hi, Beside using crontab, what is other application we can set it? Normally I check using command crontab -l. Any other path I need to check? Please guide me. Thanks. (2 Replies)
Discussion started by: mzainal
2 Replies

7. Red Hat

Service restart and check if running

Hello, I'l like to create a script that restart a service (/etc/init.d/httpd restart) and also check if after restart the service is actually running. Sometimes it happen that at the first try the service fails to restart. Thanks (2 Replies)
Discussion started by: bazzola
2 Replies

8. Red Hat

Restart service xinit.d or init.d ?

Hello How do I restart init.d ?? (centos 6.5) Thanks (2 Replies)
Discussion started by: mnnn
2 Replies

9. Red Hat

Apache service not coming up after restart

When I update the server with new SSL certificates, and restart httpd, I get errors : # service httpd restart Stopping httpd: rm: cannot remove `/usr/local/apache2/bin/httpd/logs/httpd.pid': Not a directory Starting httpd: ... (0 Replies)
Discussion started by: anaigini45
0 Replies

10. Shell Programming and Scripting

Time synch monitoring

I'm using a debian variant. My system clock already auto synchronizes. I'd like to have some sort of alert or log entry if the time is ever off by more than a particular amount. My first choice is to have a new file created on the desktop each day that there is a slip greater than the specified... (4 Replies)
Discussion started by: jutnobs
4 Replies
NTPTRACE(8)						    BSD System Manager's Manual 					       NTPTRACE(8)

NAME
ntptrace -- trace a chain of NTP servers back to the primary source SYNOPSIS
ntptrace [-vdn] [-r retries] [-t timeout] [server] DESCRIPTION
The ntptrace utility determines where a given Network Time Protocol (NTP) server gets its time from, and follows the chain of NTP servers back to their master time source. If given no arguments, it starts with ``localhost''. Here is an example of the output from ntptrace: % ntptrace localhost: stratum 4, offset 0.0019529, synch distance 0.144135 server2ozo.com: stratum 2, offset 0.0124263, synch distance 0.115784 usndh.edu: stratum 1, offset 0.0019298, synch distance 0.011993, refid 'WWVB' On each line, the fields are (left to right): the host name, the host stratum, the time offset between that host and the local host (as mea- sured by ntptrace; this is why it is not always zero for ``localhost''), the host synchronization distance, and (only for stratum-1 servers) the reference clock ID. All times are given in seconds. Note that the stratum is the server hop count to the primary source, while the syn- chronization distance is the estimated error relative to the primary source. These terms are precisely defined in RFC 1305. The following options are available: -d Turn on some debugging output. -n Turn off the printing of host names; instead, host IP addresses are given. This may be necessary if a nameserver is down. -r retries Set the number of retransmission attempts for each host; the default is 5. -t timeout Set the retransmission timeout (in seconds); the default is 2. -v Print verbose information about the NTP servers. SEE ALSO
ntpd(8), ntpdc(8) D L Mills, Network Time Protocol (Version 3), RFC1305. BUGS
This program makes no attempt to improve accuracy by doing multiple samples. BSD
January 6, 2000 BSD
All times are GMT -4. The time now is 08:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy