11-05-2008
Notes
Network Time Protocol (NTP):
- When setting up an NTP config file it is important to reference these machines by
their aliases and not their canonical names. This allows you to transparently move
the NTP servers to other machines in the future.
- The public domain xntp daemon (which uses NTP) is used to sync computer clocks.
- The xtnp daemon reads the file /etc/inet/ntp.conf at startup.
It can be run periodically as a cron job.
- date and rdate can be used on systems that do not use NTP.
- Config NTP Server:
1. Copy /etc/inet/ntp.server to /etc/inet/ntp.conf
2. Edit the file /etc/inet/ntp.conf to point to an ntp server.
3. Change to the /etc/inet.d dir and start the xntd daemon
- Config Client (same):
1. Copy /etc/inet/ntp.server to /etc/inet/ntp.conf
2. Edit the file /etc/inet/ntp.conf to point to an ntp server.
3. Change to the /etc/inet.d dir and start the xntd daemon
- To sync the date and time with another system use:
rdate <remote host>
- ntpq can be used to show the status of ntp.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi there!
Does anybody know if HP-UX 11.i supports NTP? If yes, what version on NTP should be used?
Thanx (1 Reply)
Discussion started by: penguin-friend
1 Replies
2. IP Networking
How can I install ntp on AIX (4.3-5.1) ?
thnx (1 Reply)
Discussion started by: Gismo
1 Replies
3. Solaris
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
4. IP Networking
Most services can re-load/re-read their configuration file through the command "service xxxx reload", which is usually implemented by "kill -HUP service_pid" .
for NTPD service, "service ntpd restart" and "service ntpd reload" are identical in /etc/rc.d/init.d/ntpd. what's more, "kill -HUP... (1 Reply)
Discussion started by: aaronwong
1 Replies
5. UNIX for Advanced & Expert Users
im getting errors on all of my NTP clients.
Oct 27 14:44:15 cms2 ntpd: synchronisation lost
Oct 27 15:08:25 cms2 ntpd: time reset 0.688591 s
Oct 27 15:08:25 cms2 ntpd: synchronisation lost
Oct 27 15:28:45 cms2 ntpd: time reset 0.462257 s
i checked several things:
ntpq> rv
status=0644... (3 Replies)
Discussion started by: modcan
3 Replies
6. UNIX for Dummies Questions & Answers
Hi everybody. I'm not sure where to post this, so I hope here is OK. I have 4 name servers and on one of the slaves, my log files are filling up with this error:
ntpd: sendto() (fd=20): Invalid argument
It is always the same IP, and only on this name server. A quick google revealed that the... (1 Reply)
Discussion started by: Gumball Dad
1 Replies
7. Linux
All here, thank you for listening. Now I've set up a Linux NTP server by adding a external windows NTP server in /etc/ntp.conf. Then I start the ntpd daemon. But how often does the Linux NTP server update its time with the external NTP server? I've looked up everywhere but found no information... (1 Reply)
Discussion started by: MichaelLi
1 Replies
8. HP-UX
Hi
I wonder if its possible to setup NTP clients running HP-UX o.s. from a solaris 10 NTP server?
FR (3 Replies)
Discussion started by: fretagi
3 Replies
9. Red Hat
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
LEARN ABOUT OSF1
ntp.drift
ntp.drift(4) Kernel Interfaces Manual ntp.drift(4)
NAME
ntp.drift - Network Time Protocol (NTP) drift file
DESCRIPTION
When the NTP daemon (xntpd) is first started, it computes the error in the intrinsic frequency of the clock on the computer it is running
on. This process usually takes about a day or two after the daemon is started to compute a good estimate of this (and it needs a good
estimate to synchronize closely to its server). Once the initial value is computed, it will change only by relatively small amounts during
the course of continued operation.
The driftfile declaration should always be included in the ntp.conf file. This provides xntpd with complete path name to a file in which
it can store the current value of the frequency error. That way, if the daemon is stopped and restarted, it can reinitialize itself to the
previous estimate without spending time recomputing the frequency estimate.
The ntp.drift file contains one line with the following format: freq_offset flag Specifies the nominal frequency offset. DO NOT modify
this field. Specifies the method used to improve system clock accuracy. Specifies that xntpd runs a Phase-Locked Loop (PLL) algorithm to
keep synchronized with other hosts. This is the default. Specifies the use of the PLL algorithm in the kernel. This requires the
NTP_TIME kernel option. After the option is configured in the kernel, edit the ntp.drift file and change the flag value to 1.
See System Administration for information on the NTP_TIME kernel option.
FILES
Conventional name of the drift file
RELATED INFORMATION
Commands: ntpdate(8), ntpq(8), xntpd(8), xntpdc(8)
Files: ntp.conf(4)
Network Administration, System Administration delim off
ntp.drift(4)