Time Server NTP Division

                       Network Time Sychronization & Timestamping

Time Server

NTS-3000, NTS-4000, NTS-5000, NTS-dialup

User Manual

 

Select chapter: 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 12.1, 12.2, 12.3

 

Page 12/12

 

 

12.3 UNIX family systems

 

 

 

Most of modern Unix systems have NTP included in distribution. Please note, that xntpd is NTP version 3 daemon. Therefore the NTP daemon can be compiled on the target system at any time. There is NTP distribution included on cd:\drivers\ntp\unix. First unpack gzipped tar archive:

#gzip -dc ntp-4.2.0.tar.gz | tar xvf - -C /usr/local/src

Then run configuration script from main NTP distribution directory:

# cd /usr/local/src/ntp-4.2.0.a

# ./configure --disable-all-clocks –enable-LOCAL-CLOCK

All necessary information from the system will be collected and the corresponding make files will be generated in the subdirectories. After that the NTP daemon and all needed utilities will be generated. Please type:

# make

While compiling the several warnings may appear. This warnings are mostly unimportant. In case of problems during the compilation read the system dependent notes in the './html' subdirectory. Afterwards the generated programs and tools have to be moved in the corresponding directories in /usr/local tree. Please type:

# make install

The time adjustment can occur in different ways. Either the system time can be set once by using the tool ntpdate or the NTP daemon is started. In the first case it is recommended to set the time automatically from crontab or once when booting the system. The second case is described below.

First a file named /etc/ntp.conf has to be generated with an editor.

The NTP daemon is started with ntpd or, using rc.local, while booting the system. If you want to start NTP without downtime, consider using “-g -x” options, to force slewing time and ignore sanity 1000s offset check.

Status messages during operation are saved in /var/log/ directory (corresponding to the syslog configuration):

e.g.: # tail -f /var/log/messages

It shows the last lines from the file messages. The status messages can also be redirected in a log file by using the following option:

# ntpd -llogfile

 

 

Previous Page                                                                            Top of page                                                                          Start  Page

 

 

Site Map                                                                 Copyright © 2007 ELPROMA