Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NTP Configuration for automatic updating 1

Status
Not open for further replies.

Axoliien

Programmer
Aug 19, 2003
166
US
I have a single client machine that needs to run NTP. I have set it up to run ntpd as follows on stratum 2:
ntpdate -d -v ntp-1.vt.edu

I have already input several servers into the ntp.conf file. Now I need to auto update the system clock every few days or so, perhaps once every day or once every 3 days. Can anyone help me to determine how to do this, since I won't be restarting the system unless it crashes.
 
If you're running on Redhat you can use the ntpd service.

Edit /etc/ntp.conf and add
server ntp-1.vt.edu

Edit /etc/ntp/step-tickers and add
ntp-1.vt.edu

Now start the service
service ntpd start

And to make sure ntpd starts on boot-up
chkconfig ntpd on

I forget how often the service checks for time adjustments but you can check it's activity in /var/log/messages

Note - If you're running ntpd ntpdate will not work


 
Excellent, I looked up cron and created a few instances today to learn how it all works. Very cool ideas, thanks for pointing me in the right direction!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top