Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-04-2008, 05:31 AM
|
#1
|
LQ Newbie
Registered: Aug 2007
Posts: 17
Rep:
|
how to test my ntp server
how to test my ntp server .. whether it is working or not ??
|
|
|
02-04-2008, 05:35 AM
|
#2
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep: 
|
try to access services on it?
|
|
|
02-04-2008, 05:38 AM
|
#3
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
Nothing to do with security - moved to Server.
|
|
|
02-04-2008, 11:28 AM
|
#4
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
There are 2 methods that can be used;
To see if the daemon is active, from a consol do;
top
do;
q
to quit.
This will show running processes and amongst them should be ntp
To show the status of the ntp daemon, again in a consol, do;
ntpq -p
This will show the status of your ntp and the preferred time source.
|
|
|
02-04-2008, 12:02 PM
|
#5
|
LQ Sage
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675
Rep: 
|
Also you can check with some portscan tool if UDP port 123 is open to make sure no firewall is blocking the service.
|
|
|
03-28-2011, 01:37 AM
|
#6
|
Member
Registered: Mar 2011
Posts: 43
Rep:
|
services on NTP
How do I check NTP is working on a new board. What are the services I need to check? How do I check them?
|
|
|
03-28-2011, 02:44 AM
|
#7
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
I am somewhat confused by your question.
All motherboards have a time chip built into them known as the System clock. When you setup the bios you set the date and time. That said they are never accurate and all have inherent drift. i.e. run too fast or slow.
ntp is a software based service that maintains the accuracy of the system clock automatically. ntp uses either primary (atomic clock) or secondary time servers to calculate the time drift of the system clock and then apply corrections based on the drift. I addition it compares its time with the designated reference clock at regular intervals. All this is done automatically once ntp has been installed. This is provided that you have a continuous connection to the Internet as this is an Internet based service.
ntp is a server layer and initiated on system boot if installed. This fact is stated in the boot log. You can check the status through the command line using a terminal with the command;
ntp -q
Hope this covers it for you.
|
|
1 members found this post helpful.
|
03-28-2011, 11:28 PM
|
#8
|
Member
Registered: Mar 2011
Posts: 43
Rep:
|
Thanks...that was useful information.
So if NTP was present then i would find traces of it in the bootlog? If I find traces on ntp in the bootlog can i confirm that ntp is present and running?
The command ntp -q is not found is not found on the board.
|
|
|
03-29-2011, 02:19 AM
|
#9
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
ntp is not installed as a standard application on all distros. If the ntp query is negative on your system then likely it is not present and you must install it. Most distros configure their ntp app to specific time servers so they work without much configuration required.
|
|
|
03-29-2011, 07:19 AM
|
#10
|
Member
Registered: Mar 2011
Posts: 43
Rep:
|
So I can only test its functionality after installing it on the board?
What about SLP protocol...how can I check if it is working...
Last edited by xerox; 03-29-2011 at 07:22 AM.
|
|
|
03-29-2011, 08:14 AM
|
#11
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
ntp is normally installed in /etc as ntp.conf and initiated on boot through /etc/init.d/ntp on Debian systems.
If the command ntp -q is telling you that ntp is not found then this would indicate that it is not installed. The system log or boot log file will also tell you if ntp is started. There is also an ntp log file in /var/log if ntp is installed.
Use your package manager to install ntp. If is present it will tell that it is already installed.
|
|
|
All times are GMT -5. The time now is 11:26 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|