Solved

Doubts about NTP Server

Posted on 2006-11-16
6
583 Views
Last Modified: 2013-12-27
Hello Experts,

I want my Solaris/Linux server to have correct time always. How can I do it using NTP?

Suppose if I want my server to have the correct PST time always, how can I do that? Do I need to synchronize my server to any Time server?

NTPQ result of a server is shown below. What this tells?

ntpq> peers
     remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
 NTP.MCAST.NET   0.0.0.0         16 -    -   64    0     0.00    0.000 16000.0
*tick.ucla.edu   .PSC.            1 u  245  512  377    19.23   -1.241    1.33
-ntp-nasa.arc.na .GPS.            1 u  354 1024  377     8.12   -2.358    0.50
+time.nist.gov   .ACTS.           1 u  269  512  376    41.24    0.807    3.56
-time-a.nist.gov .ACTS.           1 u  942 1024  377    79.03   -6.712   25.88
-tick.usnogps.na .USNO.           1 u  697 1024  377   119.96   27.760    1.82
-egr-dns-1.egr.u nist1.symmetric  2 u   33 1024  377    44.54    5.119    8.00
+louie.udel.edu  NAVOBS1.MIT.EDU  2 u  231  512  377    82.35   -1.123    1.48
ntpq> quit
> xntpdc



Thanks,
Ashok
0
Comment
Question by:rdashokraj
  • 3
  • 2
6 Comments
 
LVL 48

Expert Comment

by:Tintin
ID: 17961076
You already have NTP setup and working correctly, so what's the problem?
0
 

Author Comment

by:rdashokraj
ID: 17961168
Tintin,  I don't have much idea about how NTP works. The Setup what is shown in my result is done by someone.

Could you please give me a brief idea about how to setup a NTP Server assuming that it needs to have a correct PST time?

Then in the above given result, which server is acting as the NTP Server? I used 'ntpq' command by looking at some stuff in the Net.

0
 

Author Comment

by:rdashokraj
ID: 17961180
I'm leaving for the day now, will check your response approx. after 8 hours. Thanks.
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 48

Accepted Solution

by:
Tintin earned 300 total points
ID: 17961319
Firstly, NTP keeps the system time in sync.  This has nothing to do with timezones like PST, which are just an offset from UTC.

In the ntpq output, it shows your NTP configuration uses multicast address (NTP.MCAST.NET) to obtain a list of various NTP servers.  You should always reference at least 2 NTP servers if possible in case one of the NTP servers is unavailable or gets totally screwed for some reason.  NTP uses come complex calculations when using multiple sources to ensure the most accurate time.

The st column, refers to stratum.  The lower the number, the higher the accuracy.  The stratum 1 servers on the Internet that are provided by NASA and similar places use atomic clocks or Satellite to obtain the time, so they are very, very accurate.

The other columns refer to various stuff like the offset of your local clock from the NTP servers.

man ntpq

for more details.
0
 
LVL 38

Assisted Solution

by:yuzh
yuzh earned 200 total points
ID: 17961950
>>Tintin,  I don't have much idea about how NTP works. The Setup what is shown in my result is done by someone.

Please have a look at the NTP FAQ and How To:
http://www.eecis.udel.edu/~ntp/ntpfaq/NTP-a-faq.htm

and the following Sun NTP docs:
http://www.sun.com/blueprints/0701/NTP.pdf
http://www.sun.com/blueprints/0801/NTPpt2.pdf
0
 

Author Comment

by:rdashokraj
ID: 17965904
Tintin, Thanks for your explanation. Feel like I got the concept but need to learn more about it.

Yuzh, Wonderful documents !! Thanks so much.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Convert OverPunch 25 64
dot directory in FreeBSD??? 4 80
need to remove or skip  grub protection password in ubuntu on boot time 2 71
awk sed 8 42
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question