Knowledgebase: Operating System > Solaris
Managing Network Time Protocol
Posted by Sandi Widianto, Last modified by Sandi Widianto on 17 November 2022 12:52 PM

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

  • List the SMF properties.
    • To list all of the properties associated with the NTP service, type:

      # svcprop svc:/network/ntp:default
    • To list all of the properties in the config property group, type:

      # svcprop -p config svc:/network/ntp:default
(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: