NTP Setup
By Paul A. Fortin
- Check for ntp service status
root@devdb1 # svcs -l network/ntp:default fmri svc:/network/ntp:default name Network Time Protocol (NTP) enabled false state disabled next_state none state_time Wed Aug 02 17:01:08 2006 restarter svc:/system/svc/restarter:default dependency require_all/error file://localhost/usr/sbin/ntpq (online) file://localhost/usr/sbin/ntpdate (online) dependency require_any/error svc:/network/service (online)
- Setup the configuration
Edit the /etc/inet/ntp.conf file to add your NTP servers in the file. here is the file on my server devdb1.urbanout.com
____________________________
server 10.1.1.30
server 10.1.1.31
driftfile /var/ntp/ntp.drift
____________________________
- Enable the service root@devdb1 # svcadm enable network/ntp:default
- Recheck for ntp service status
root@devdb1 # svcs -l network/ntp:default fmri svc:/network/ntp:default name Network Time Protocol (NTP) enabled true state online next_state none state_time Tue Nov 21 12:29:04 2006 logfile /var/svc/log/network-ntp:default.log restarter svc:/system/svc/restarter:default contract_id 18200 dependency require_all/error file://localhost/usr/sbin/ntpq (online) file://localhost/usr/sbin/ntpdate (online) dependency require_any/error svc:/network/service (online)
|