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
- Become an administrator.
For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.
- 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
- Read the ntp.server file.
If needed, add more information to the ntp.conf file.
- Edit the ntp.conf file.
Make site specific changes to this file as needed.
- Start the ntpd daemon.
# svcadm enable ntp
How to Set Up an NTP Client
- Become an administrator.
For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.
- 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
- Edit the ntp.conf file.
Make site specific changes to this file as needed.
- Start the ntpd daemon.
# svcadm enable ntp
How to Enable NTP Logging
- Become an administrator.
For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.
- Enable logging.
# svccfg -s svc:/network/ntp:default setprop config/verbose_logging = true
See the svccfg(1M) man page for more information.
- Update the SMF repository and restart the service.
# svcadm refresh svc:/network/ntp:default
# svcadm restart svc:/network/ntp:default
- 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
|