2016-05-31 18:03:40 +00:00
|
|
|
How to install NTP Analyzer
|
|
|
|
===========================
|
|
|
|
|
2016-03-12 16:05:05 +00:00
|
|
|
FreeBSD
|
2016-05-31 18:03:40 +00:00
|
|
|
-------
|
2016-03-12 16:05:05 +00:00
|
|
|
|
2016-05-31 18:03:40 +00:00
|
|
|
Find ntpa in the ports collection.
|
2016-04-16 12:19:42 +00:00
|
|
|
|
2016-03-19 21:55:38 +00:00
|
|
|
|
2016-03-12 16:05:05 +00:00
|
|
|
Ubuntu
|
2016-05-31 18:03:40 +00:00
|
|
|
------
|
2016-03-12 16:05:05 +00:00
|
|
|
|
|
|
|
Run:
|
2016-03-15 20:08:01 +00:00
|
|
|
# sudo apt-get install mono-complete
|
2016-03-19 21:55:38 +00:00
|
|
|
# sudo apt-get install libgdiplus (only for graphs)
|
2016-08-11 17:32:27 +00:00
|
|
|
# sudo apt-get install mysql-server (only for hosting)
|
2016-03-22 18:27:32 +00:00
|
|
|
# sudo apt-get install ntp (use updated versions)
|
2016-03-12 16:05:05 +00:00
|
|
|
|
2016-08-11 17:32:27 +00:00
|
|
|
Build and install ntpa with:
|
2016-12-10 23:22:09 +00:00
|
|
|
# make -f Makefile.xbuild install-linux
|
2016-03-13 12:53:45 +00:00
|
|
|
|
2016-04-16 12:19:42 +00:00
|
|
|
|
2016-12-22 18:50:10 +00:00
|
|
|
Linux, BSD and others
|
|
|
|
---------------------
|
|
|
|
|
2017-07-22 20:10:30 +00:00
|
|
|
Make sure all of the above dependencies are satisfied.
|
2016-12-22 18:50:10 +00:00
|
|
|
|
|
|
|
Build and install with autotools:
|
|
|
|
# autoreconf
|
|
|
|
# automake --add-missing
|
|
|
|
# ./configure
|
|
|
|
# make install
|
|
|
|
|
|
|
|
|
2016-04-16 12:19:42 +00:00
|
|
|
Windows
|
2016-05-31 18:03:40 +00:00
|
|
|
-------
|
2016-04-16 12:19:42 +00:00
|
|
|
|
2016-08-11 17:32:27 +00:00
|
|
|
Download a copy of ntpq. An excellent NTP distribution is available from:
|
2016-08-06 20:49:34 +00:00
|
|
|
https://www.meinbergglobal.com/english/sw/ntp.htm
|
2016-03-19 21:55:38 +00:00
|
|
|
|
2016-08-20 12:24:05 +00:00
|
|
|
Make sure the required database is accessible. Download and install MySQL
|
|
|
|
if needed.
|
2016-08-11 17:32:27 +00:00
|
|
|
|
|
|
|
|
2016-05-31 18:03:40 +00:00
|
|
|
Usage
|
|
|
|
-----
|
2016-03-13 12:53:45 +00:00
|
|
|
|
2016-03-19 22:08:38 +00:00
|
|
|
Set database user name and password in the top of ntpa.conf. Leave the
|
|
|
|
Create setting to 1 if you want all tables and data created automatically.
|
2016-04-10 09:50:35 +00:00
|
|
|
Later you can use phpMyAdmin, MySQL Workbench or similar to adjust the
|
|
|
|
auto generated values. Set Hostname to point at a name or an IP address
|
|
|
|
reachable by ntpq.
|
2016-03-12 16:05:05 +00:00
|
|
|
|
2016-03-20 15:45:21 +00:00
|
|
|
Configuration can be validated with the validation tool:
|
2016-05-31 18:03:40 +00:00
|
|
|
# ntpav --validate /etc/ntpa.conf
|
2016-03-12 16:05:05 +00:00
|
|
|
|
2016-03-23 16:52:00 +00:00
|
|
|
To start ntpa use:
|
2016-05-31 18:03:40 +00:00
|
|
|
# ntpa --config /etc/ntpa.conf
|
2016-03-11 22:22:40 +00:00
|
|
|
|
2016-03-23 16:52:00 +00:00
|
|
|
Look in the log file for errors and other clues when debugging.
|
2016-03-11 22:22:40 +00:00
|
|
|
|
2016-03-19 21:55:38 +00:00
|
|
|
To start ntpa in daemon mode:
|
2016-05-31 18:03:40 +00:00
|
|
|
# ntpa --config /etc/ntpa.conf &
|
2016-03-22 18:17:12 +00:00
|
|
|
|
2016-03-12 16:27:03 +00:00
|
|
|
Connect to ntpa and get a list of available commands:
|
|
|
|
# ntpac 127.0.0.1 9070 help
|
|
|
|
|
|
|
|
Ask ntpa how long time it has been running:
|
2016-08-11 17:32:27 +00:00
|
|
|
# ntpac 127.0.0.1 9070 uptime
|