ChorusOS 5.0 System Administrator's Guide

How to Use NTP

The ntpd daemon sets and maintains the system time-of-day.

The ntpd daemon reads the /etc/ntp.conf file at system startup. See ntpd(1M) for information about configuration options of ntpd.

An NTP client synchronizes automatically with an NTP server when it boots, and if it gets out of sync, it will resync again when it sees a time server.


Note -

The method of authentication provided in the NTP implementation of the ChorusOS operating system is MD5.

The only reference clock driver supported is the undisciplined local clock.


Setting up an NTP Client

  1. Become superuser.

  2. Change to the /etc directory.

  3. Copy the ntp.client file to the ntp.conf file:

    # cp ntp.client ntp.conf
    

  4. Synchronize the date manually, by using the ntpdate command:


    # rsh target ntpdate <timeserver>
    
    where <timeserver> is the NTP server running on the network.

  5. Start the ntpd daemon:


    # rsh target ntpd
    

Setting up an NTP Server

  1. Become superuser.

  2. Change to the /etc directory.

  3. Copy the ntp.server file to the ntp.conf file.

    # cp ntp.server ntp.conf
    

  4. Start the ntpd daemon:


    # rsh target ntpd