LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-04-2008, 05:31 AM   #1
udayakumarsv
LQ Newbie
 
Registered: Aug 2007
Posts: 17

Rep: Reputation: 0
Unhappy how to test my ntp server


how to test my ntp server .. whether it is working or not ??
 
Old 02-04-2008, 05:35 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
try to access services on it?
 
Old 02-04-2008, 05:38 AM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Nothing to do with security - moved to Server.
 
Old 02-04-2008, 11:28 AM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
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.
 
Old 02-04-2008, 12:02 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Also you can check with some portscan tool if UDP port 123 is open to make sure no firewall is blocking the service.
 
Old 03-28-2011, 01:37 AM   #6
xerox
Member
 
Registered: Mar 2011
Posts: 43

Rep: Reputation: 0
Question 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?
 
Old 03-28-2011, 02:44 AM   #7
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
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.
Old 03-28-2011, 11:28 PM   #8
xerox
Member
 
Registered: Mar 2011
Posts: 43

Rep: Reputation: 0
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.
 
Old 03-29-2011, 02:19 AM   #9
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
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.
 
Old 03-29-2011, 07:19 AM   #10
xerox
Member
 
Registered: Mar 2011
Posts: 43

Rep: Reputation: 0
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.
 
Old 03-29-2011, 08:14 AM   #11
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
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.
 
  


Reply



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
Suse server not responding after syncing with NTP Server vipin123 SUSE / openSUSE 2 09-04-2008 03:56 PM
NTP Server invent Linux - Server 2 11-22-2007 10:43 PM
NTP cannot use server, NTP -d can jerryvapps Linux - Newbie 0 07-28-2004 02:22 PM
Setting up ntp server triley Linux - Networking 0 01-28-2004 01:06 PM
Ntp Server Configuration rodel Linux - Software 1 10-20-2003 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:45 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
Open Source Consulting | Domain Registration