Home   >>   NTP   >>   Verify If NTP Working Or Not
Verify If NTP Working Or Not PDF Print E-mail
( 0 Votes )
How To - NTP
Written by Christian Foronda   
Monday, 29 March 2010 18:09

You can use any one of the following program to verify ntp client configuration:

  1. ntpq - standard NTP query program
  2. ntpstat - show network time synchronisation status

ntpstat command

The ntpstat command will report the synchronisation state of the NTP daemon running on the local machine. If the local system is found to be synchronised to a reference time source, ntpstat will report the approximate time accuracy.

	$ ntpstat
	synchronised to NTP server (149.20.54.20) at stratum 3
	time correct to within 42 ms
	polling server every 1024 s

ntpq command:

The ntpq utility program is used to monitor NTP daemon ntpd operations and determine performance. The program can be run either in interactive mode or controlled using command line arguments.

	$ ntpq -pn
	remote           refid      st t when poll reach   delay   offset  jitter
	==============================================================================
	*dione.cbane.org 204.123.2.5      2 u  509 1024  377   51.661   -3.343   0.279
	+ns1.your-site.c 132.236.56.252   3 u  899 1024  377   48.395    2.047   1.006
	+ntp.yoinks.net  129.7.1.66       2 u  930 1024  377    0.693    1.035   0.241
	LOCAL(0)        .LOCL.          10 l   45   64  377    0.000    0.000   0.001
  1. -p : Print a list of the peers known to the server as well as a summary of their state.
  2. -n : Output all host addresses in dotted-quad numeric format rather than converting to the canonical host names.



blog comments powered by Disqus
Last Updated on Monday, 29 March 2010 18:11