Is ntpdate command dependent on ntpd?


 
Thread Tools Search this Thread
Operating Systems Solaris Is ntpdate command dependent on ntpd?
# 1  
Old 12-04-2012
Is ntpdate command dependent on ntpd?

Hi,
Could someone Please clarify me here:

Is ntpdate command a part of ntpd, i mean does ntpdate command a dependent on ntpd? and can ntpdate be run in absence of ntpd service.
# 2  
Old 12-04-2012
Power

Quote:
Originally Posted by aksijain
Hi,
Could someone Please clarify me here:
  • Is ntpdate command a part of ntpd, i mean
  • does ntpdate command a dependent on ntpd? and
  • can ntpdate be run in absence of ntpd service.
  • ntpdate is a seperate utility, complimentary to ntpdate
  • ntpdate is not directly dependant on ntpd; but it does require a time service
  • yes, ntpdate can be run without ntpd; but you need to point it to a time service. There are many public available (free) ones.
This User Gave Thanks to Neo For This Post:
# 3  
Old 12-04-2012
OBTW, I forgot to mention, one of the most common uses of ntpdate is in the root crontab file, for example:
Code:
10 2 * * * /usr/sbin/ntpdate time.nist.gov > /dev/null 2>&1

From the shell:

Code:
root@myhost:~# ntpdate time.nist.gov 
 4 Dec 07:33:58 ntpdate[12496]: step time server 128.138.141.172 offset -17.447227 sec

Also, here is a site dedicated to helping you find a valid time server for your site:

Quote:
The pool.ntp.org project is a big virtual cluster of timeservers providing reliable easy to use NTP service for millions of clients.

The pool is being used by millions or tens of millions of systems around the world. It's the default "time server" for most of the major Linux distributions and many networked appliances (see information for vendors).
# 4  
Old 12-04-2012
Quote:
Originally Posted by Neo
  • ntpdate is a seperate utility, complimentary to ntpdate
  • ntpdate is not directly dependant on ntpd; but it does require a time service
  • yes, ntpdate can be run without ntpd; but you need to point it to a time service. There are many public available (free) ones.
Thanks Neo for your answer!!
for my better understnding , could you please list few of the time services which can support ntpdate command and are very commonly and frequently used.
# 5  
Old 05-22-2013
Apparently ntpdate has been deprecated by 'ntpd -q'.
# 6  
Old 05-23-2013
perhaps xntpd is better solution. I think its more advanced, doesn't rely on cron. it synchronizes time only when necessary, taking drift into account (or something like that).
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Ntpdate not synching with w32time on Windows XP

Hi all. I'm new to this forum and Linux in general. Last month I ran into a problem at work and never got around to solving it. We have an old Linux workstation that synchs its time to a Windows XP machine running w32time. The version of ntpdate is 4.2.0.a running on Linux kernel 2.6.17.6. It... (0 Replies)
Discussion started by: rathauneek
0 Replies

2. Solaris

Execute the ntpdate command only when NTP daemon is stopped?

Hi, Could somebody please explain me. why is it necessary to execute the "ntpdate" command only when ntp daemon is stopped , and also the probabale solution to reduce the high offset value. Thanks !! Laxxi (4 Replies)
Discussion started by: Laxxi
4 Replies

3. Red Hat

ntpd -gq not working

as advised and documented, i'm trying to use the ntpd -gq instead of ntpdate. The result is that clock not set. as below. However ntpdate is working ok and had set the clock correctly this is the ntp.conf file: # cat /etc/ntp.conf logfile /var/log/ntp.log driftfile /var/lib/ntp/drift... (6 Replies)
Discussion started by: ahmad.zuhd
6 Replies

4. Shell Programming and Scripting

How to replace ntpdate

Hi there, Hi have a group of computers + a server (all debians) connected to each other on a LAN. For some reasons that I've not decided and that I can't change, the computers cannot connect to the net. Moreover, the server has no ntp service. Though, I need to find a way of setting all... (4 Replies)
Discussion started by: chebarbudo
4 Replies

5. SCO

ntpdate problem in Unixware

Hi Guys, A weird problem. I have disabled ntpd daemon on a HP server and placed ntpdate in crontab instead and redirected the log to a file. This command in cron synchronizes the server with a local time server every 15 minutes. The weird part is that on 3 specific times (5:00 am, 10:00 am,... (2 Replies)
Discussion started by: Verifone
2 Replies

6. AIX

ntpd version

How to check the ntpd version of AIX 5.3 ? (3 Replies)
Discussion started by: alanlkw
3 Replies

7. Solaris

How to use Ntpdate to slew the time?

Hi experts, I've a master server which sync to ntp time server daily by using xntpd daemon. Then my client servers will use ntpdate through cron job to synchronize the time hourly. (By using ntpupdate -s -B 'master server') My question is, now I'll need to synchronize to a oracle server which... (2 Replies)
Discussion started by: kenzoo
2 Replies

8. HP-UX

Ntpd

Hello, I'm looking for assitance on setting up network time protocol on my HP-ux boxes. I have edit the .conf file accordingly. And /etc/services. But whenever I try and start the service nothing happens at all. No error message, nothing. I have a SCO box as a time server and I wish... (0 Replies)
Discussion started by: satinet
0 Replies

9. UNIX for Dummies Questions & Answers

NTPDATE Command help

I would like to setup date / time sync on Solaris 8 using the command ntpdate. How do I set it up? Thanks Mark (1 Reply)
Discussion started by: miredale
1 Replies
Login or Register to Ask a Question