Network Time Protocol (NTP) Tips
Common Tasks
Syncing clocks with another system
- rdate <host to sync with>
Checking status of ntp
Configuring an NTP client
1. Create the ntp.conf file
- Location:
- Solaris - /etc/inet/ntp.conf
- HPUX
- Linux - /etc/ntp.conf
- Contents
- server <NTP Master IP Address>
- driftfile /etc/ntp.drift
2. Create the /etc/ntp.drift file with 0.0 as the entry.
3. Restart the NTP service
- Solaris - /etc/init.d/xntp.d stop and then start
- Linux - /etc/init.d//ntpd stop and then start
- HPUX - /sbin/init.d/
4. Verify status
ntpq
ntpq> peers