Sponsored Content
Full Discussion: ntp client/daemon sync
Operating Systems Linux ntp client/daemon sync Post 302358765 by vada010 on Sunday 4th of October 2009 02:54:51 PM
Old 10-04-2009
ntp client/daemon sync

All,
I need to write a script which can determine if my NTP client is X second off from the NTPD server time. I am looking for a crafty oneliner to calculate the time difference?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

TIME SYNC (NTP)

Is there a utility which offers the ability to utilize NTP to sync time on machine. If so please point to man page or web site (3 Replies)
Discussion started by: SmartJuniorUnix
3 Replies

2. Solaris

ntp server and ntp client

All, How do you set a Solaris 9 server which received ntp updates from a ntp server to broadcast them on a local subnet. I have created a /etc/inet/ntp.conf file to receive the updates from a server on network and need to make this server become like a ntp relay from the main server. Any... (1 Reply)
Discussion started by: bubba112557
1 Replies

3. SuSE

unable to sync the time with ntp server

Hi folks, The server time is no tgetiing synched up with the NTP server. I tried ntpdate -u <ipadress> this is not working. please help out. regards, Sag. (7 Replies)
Discussion started by: sag71155
7 Replies

4. UNIX for Advanced & Expert Users

Sync Time/date with NTP server

Hello all, What would be the most convienint and proper way on syncing up the time and date on Solaris 8 servers with an NTP server? Any help would be appreciated. Thanks (2 Replies)
Discussion started by: Sunguy222
2 Replies

5. Solaris

NTP time sync in Solaris 10

Ok, I have 4 production systems. There is one NTP server for all four systems. In each system there is one Solaris 10 box that points to that NTP server. All of the other machines in the system point to the Solaris 10 machine to get their time sync. All four Solaris 10 machines have essentially... (2 Replies)
Discussion started by: DeCoTwc
2 Replies

6. Red Hat

NTP sync problem

Hi, I have 4 machines and all are NTP configured with same ntp.conf file. But 3 machines are in sync with Time server and 4th machine is not contacting & sync with the NTP server. Please see the below details. # service ntpd stop Stopping ntpd: ... (0 Replies)
Discussion started by: uday123
0 Replies

7. Fedora

NTP Clients not sync

hi guys I have several Red Hat 5.7(7) all of them sync time with two NTP Servers based on Windows but the issue is I configure the NTP service, I start the ntp service and use ntpdate -u to set the time the first time This is what I do 1. Configure /etc/ntp.conf restrict default kod... (2 Replies)
Discussion started by: karlochacon
2 Replies

8. Linux

Questions about the NTP time server sync

Hi folks, I have developed a Linux server for my customer. After migrating the server to my customer site, I was trying to sync its time to the NTP time servers at my customer site. Below is the ntp.conf: % vi /etc/ntp.conf # Permit time synchronization with our time source, but do not # permit... (2 Replies)
Discussion started by: kimurayuki
2 Replies

9. Solaris

Client does not sync date with ntp servers

We had a network problem a couple of days before that caused 1 interface to down and up. But today I have noticed that our date is wrong, our system have 4 servers and the other 3 are OK. I used <date> command, the result is: Fri Jan 2 17:57:55 ICT 1970 I have tried set date to be the same as... (3 Replies)
Discussion started by: salvation3103
3 Replies

10. Red Hat

Ntp client sync with local over ntp server

Hi, I have two ntp servers in my cluster and I want all the nodes in my cluster to sync with either of the ntp servers or just one. Unfortunately it keep rotating the sync, between my ntp server 1, ntp server 2 and local. Is there anyway I can change the sync to avoid local? # ntpq -p ... (3 Replies)
Discussion started by: pjeedu2247
3 Replies
xntpd(8)						      System Manager's Manual							  xntpd(8)

NAME
xntpd - Network Time Protocol (NTP) daemon SYNOPSIS
/usr/sbin/xntpd [-abdgmx] [-c conffile] [-e auth_delay] [-f driftfile] [-k keyfile] [-l logfile] [-p pidfile] [-r broaddelay] [-s statdir] [-t trustedkey] [-v sysvar] [-V def_sysvar] OPTIONS
Runs in authenticate mode. Listens for broadcast NTP and synchronizes to this if available. Specify debugging mode. This option may occur multiple times, with each occurence indicating greater detail of display. Allows xntpd to correct any time difference, including differ- ences greater than 1000 seconds. Listens for multicast messages and synchronizes to them if available (requires multicast kernel). Pre- vents xntpd from setting the system time backward. In NTP version 3, the default allows xntpd to set the system time backward. Specifies an alternate configuration file. Specifies the time (in seconds) it takes to compute the NTP encryption field on this computer. Specifies the location of the drift file. Specifies the location of the file which contains the NTP authentication keys. See ntp.keys(4) for infor- mation on the authentication key file format. Specifies a log file instead of logging to syslog. Specifies the name of the file to record the daemon's process id. Specifies the default round trip delay (in seconds) to be used if the daemon cannot automatically compensate for network delay when synchronizing to broadcasts. Specifies the directory in which to create statistics files. Adds a key number to the trusted key list. Adds a system variable. Adds a system variable listed by default. DESCRIPTION
The xntpd daemon maintains a system's time-of-day in agreement with Internet standard time servers. The xntpd daemon is a complete imple- mentation of the Network Time Protocol (NTP) version 3 standard as defined by RFC 1305, but also retains compatibility with version 1 and version 2 servers as defined by RFC 1059 and RFC 1119, respectively. The xntpd daemon does all computations in fixed point arithmetic and requires no floating point code. The computations done in the proto- col and clock adjustment code are carried out with high precision and with attention to the details that might introduce systematic bias into the computations, to try to maintain an accuracy suitable for synchronizing with even the most precise external time source. The xntpd daemon reads its configuration from a file at startup time. The default configuration file is /etc/ntp.conf. The xntpd daemon can be monitored and configuration options altered while the daemon is running by using either the ntpq(8) or the xntpdc(8) program. The xntpd daemon includes support for several commercially available external reference clocks. See ntp.conf(4) for information on the use and configuration of reference clocks. The Tru64 UNIX operating system also provides the NTP_TIME and MICRO_TIME kernel options to allow greater accuracy and time resolution. See ntp_intro(7) and Network Administration for more information. FILES
Default name of the configuration file Conventional name of the drift file Conventional name of the key file SEE ALSO
Commands: ntp(1), ntpdate(8), ntpq(8), xntpdc(8) Files: ntp.conf(4), ntp.keys(4) Network Administration HISTORY
Written by Dennis Ferguson at the University of Toronto. Text amended by David Mills at the University of Delaware. xntpd(8)
All times are GMT -4. The time now is 02:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy