LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-02-2014, 10:07 AM   #1
edentonjr
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Rep: Reputation: 0
NTP


What the easiest way to find out if a server in using a NTP server?
 
Old 11-02-2014, 10:34 AM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 343Reputation: 343Reputation: 343Reputation: 343
Hi there,

Quote:
Originally Posted by edentonjr View Post
What the easiest way to find out if a server in using a NTP server?
ask the server admin. ;-)

Seriously: Your question is highly unspecific, so I can't give you a better answer. Apart from that, what's your reason for wanting to know that? It's important that a server's own clock is accurate. But how this accuracy is achieved, doesn't really matter, does it? There could be a local DCF-77 receiver connected to the machine, there could be an NTP client daemon running continuously, there could be a semi-manual clock update as an hourly cron job - the effect is all the same, a reliable clock.

So why do you want to know?

[X] Doc CPU
 
Old 11-03-2014, 07:38 AM   #3
mithun119
LQ Newbie
 
Registered: Aug 2014
Posts: 16

Rep: Reputation: Disabled
Quote:
Originally Posted by edentonjr View Post
What the easiest way to find out if a server in using a NTP server?

ntpq -p

if this says local, then the time is local
remote refid st t when poll reach delay offset jitter
==============================================================================
*LOCAL(0) .LOCL. 10 l 2 64 1 0.000 0.000 0.000


ELSE

it will list the ntp servers
 
Old 11-03-2014, 10:22 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 5,103
Blog Entries: 10

Rep: Reputation: 1812Reputation: 1812Reputation: 1812Reputation: 1812Reputation: 1812Reputation: 1812Reputation: 1812Reputation: 1812Reputation: 1812Reputation: 1812Reputation: 1812
You could disable the network and see if the system time is not set, but if it has a real time clock; likely that it does, then you don't learn much. You could also look at the system log to determine if NTP is running and if it did perform a set of the system clock.

As Doc CPU asks; "What exactly is your real question?", or was that curiosity alone?
 
Old 11-04-2014, 07:00 PM   #5
edentonjr
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Original Poster
Rep: Reputation: 0
This was a question I was asked on a job interview.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NTP client is not syncing to ntp server LittleMaster Linux - Newbie 6 04-05-2013 02:37 PM
[SOLVED] NTP configuration in client to synchronize with NTP server. antnish Linux - General 12 04-01-2013 01:49 PM
ntp server keeps on changing time-local ntp server Gil@LQ Linux - Newbie 3 01-23-2013 09:33 AM
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 07:35 PM
NTP cannot work with timeserver, NTP-d can jerryvapps Linux - Networking 0 08-04-2004 02:04 PM


All times are GMT -5. The time now is 06:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration