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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Synchronizing server to the NTP server

Status
Not open for further replies.

tovohery

Technical User
Jul 25, 2006
45
I want to synchronize my AIX 5.3 server to the NTP server with the commande ntpdate ntp_server at startup. Which file should I confugure to execute this command at startup?

Thanks and regards
 
If you just want to synchronize at startup, just create an entry in the inittab:

mkitab ntp:2:eek:nce:"ntpdate ntp_server"

But if you have an ntp server, perhaps you should enable xntpd on your server.

To enable xntpd you must first edit the /etc/ntp.conf file, and add this entry at the end:

server ntp_server_IP

After that you start the xntpd daemon:

startsrc -s xntpd

And then you add an entry to inittab to start xntpd at boot time:

mkitab xntpd:2:eek:nce:"/usr/bin/startsrc -s xntpd"

 
Forgot to say that it's better to synchronize the time with the ntp server before starting xntpd, using ntpdate. This is because if the difference between the server time and the client time is too large it may take a long time to synchronize.
 
You might want to look at /etc/ntp.conf
Try this link for full documentation.

Meanwhile this link will give you all you need to know (and so much more!) about NTP in a reasonably digestible form.

Ceci n'est pas une signature
Columb Healy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top