JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Introduction to Oracle Solaris 11 Network Services     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Network Service (Overview)

2.  Managing Web Cache Servers

3.  Time-Related Services

Clock Synchronization (Overview)

About NTP in This Release

Managing Network Time Protocol (Tasks)

How to Set Up an NTP Server

How to Set Up an NTP Client

How to Enable NTP Logging

How to Display the SMF Properties Associated With the NTP Service

Using Other Time-Related Commands (Tasks)

How to Synchronize Date and Time From Another System

Network Time Protocol (Reference)

Index

Managing Network Time Protocol (Tasks)

The following procedures show how to set up and use the NTP service.

How to Set Up an NTP Server

  1. Become an administrator.

    For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.

  2. Create the ntp.conf file.

    To ensure proper execution of the ntpd daemon, the ntp.conf file must first be created. The ntp.client file can be used as a template.

    # cd /etc/inet
    # cp ntp.client ntp.conf
  3. Read the ntp.server file.

    If needed, add more information to the ntp.conf file.

  4. Edit the ntp.conf file.

    Make site specific changes to this file as needed.

  5. Start the ntpd daemon.
    # svcadm enable ntp

How to Set Up an NTP Client

  1. Become an administrator.

    For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.

  2. Create the ntp.conf file.

    To activate the ntpd daemon, the ntp.conf file must first be created.

    # cd /etc/inet
    # cp ntp.client ntp.conf
  3. Edit the ntp.conf file.

    Make site specific changes to this file as needed.

  4. Start the ntpd daemon.
    # svcadm enable ntp

How to Enable NTP Logging

  1. Become an administrator.

    For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.

  2. Enable logging.
    # svccfg -s svc:/network/ntp:default setprop config/verbose_logging = true

    See the svccfg(1M) man page for more information.

  3. Update the SMF repository and restart the service.
    # svcadm refresh svc:/network/ntp:default
    # svcadm restart svc:/network/ntp:default 
  4. Verify that logging has been enabled.
    # svcprop -p config/verbose_logging svc:/network/ntp:default
    true

How to Display the SMF Properties Associated With the NTP Service