Is ntpdate command dependent on ntpd? | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Is ntpdate command dependent on ntpd?

Solaris


Tags
solaris, solaris 10

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-04-2012
aksijain aksijain is offline
Registered User
 
Join Date: Jul 2011
Last Activity: 20 June 2013, 9:15 AM EDT
Posts: 64
Thanks: 9
Thanked 4 Times in 4 Posts
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.
Sponsored Links
    #2  
Old 12-04-2012
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
 
Join Date: Sep 2000
Last Activity: 25 April 2014, 4:37 AM EDT
Location: Asia pacific region
Posts: 12,902
Thanks: 493
Thanked 846 Times in 381 Posts
Power

Quote:
Originally Posted by aksijain View Post
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.
Sponsored Links
    #3  
Old 12-04-2012
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
 
Join Date: Sep 2000
Last Activity: 25 April 2014, 4:37 AM EDT
Location: Asia pacific region
Posts: 12,902
Thanks: 493
Thanked 846 Times in 381 Posts
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
aksijain aksijain is offline
Registered User
 
Join Date: Jul 2011
Last Activity: 20 June 2013, 9:15 AM EDT
Posts: 64
Thanks: 9
Thanked 4 Times in 4 Posts
Quote:
Originally Posted by Neo View Post
  • 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.
Sponsored Links
    #5  
Old 05-22-2013
jgt's Avatar
jgt jgt is offline Forum Advisor  
Registered User
 
Join Date: Apr 2007
Last Activity: 24 April 2014, 3:03 PM EDT
Location: 44.21.48N 80.50.15W
Posts: 1,519
Thanks: 1
Thanked 149 Times in 144 Posts
Apparently ntpdate has been deprecated by 'ntpd -q'.
Sponsored Links
    #6  
Old 05-23-2013
orange47 orange47 is offline
Registered User
 
Join Date: Dec 2010
Last Activity: 25 April 2014, 2:12 AM EDT
Location: Yugoslavia
Posts: 248
Thanks: 52
Thanked 9 Times in 9 Posts
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).
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Execute the ntpdate command only when NTP daemon is stopped? Laxxi Solaris 4 12-04-2012 09:16 AM
How to replace ntpdate chebarbudo Shell Programming and Scripting 4 04-21-2009 10:27 AM
ntpdate problem in Unixware Verifone SCO 2 06-25-2008 05:00 PM
How to use Ntpdate to slew the time? kenzoo Solaris 2 06-06-2007 01:30 AM
NTPDATE Command help miredale UNIX for Dummies Questions & Answers 1 01-12-2005 11:07 AM



All times are GMT -4. The time now is 05:13 AM.