Minggu, 17 Januari 2010

NTPDATE TO SYNCHRONIZE DATE AND TIME ON LINUX MACHINE FROM REMOTE SERVER

NTPDATE TO SYNCHRONIZE DATE AND TIME ON LINUX MACHINE FROM REMOTE SERVER

In a small computer infrastructure of 20 different servers like what we have inter connectivity of the servers are important. An Apache Dedicated Web server could communicate with an Oracle Database Server. A web application could be accessing a database server and trigger mail server action. Web applications could store information of files uploaded on a database and save physical files in a file server.

The date and time stamps when transactions are done are very significant. I have encountered some cases where the uploaded file date and time stamp on the database does not match with the actual file uploaded on the file server. This creates confusion. Thus, synchronization of date and time from a single standard time server source for every networked computer server is important.

Most of the servers we have are Linux box and ntpdate is the command used to synchronize time with a Network Time Protocol server.

Updating date and time from a remote server is simple using the ntpdate command.

The ntpdate command to update is as follows:

$ntpdate -u 1.th.pool.ntp.org

where 1.th.pool.ntp.org is the remote ntp server and the option -u is for update.

You could read more about ntpdate from the following:

http://en.wikipedia.org/wiki/Ntpdate

0 Comments: