Sunday, November 8, 2015

Time syncing between servers using Terminator


There are instances where we have to synchronize the time between servers or multiple computers for various purposes. We can simply achieve this by following the blow steps in a linux distribution.



I am using:

  • Ubuntu 14
  • Terminator

Steps:

1. Install Terminator       
sudo apt-get install terminator






2. Open the Terminator -> right click and split the terminal horizontally or vertically 
3. Login to the required servers from each of the terminals
4. Click on the square icon on the top left hand side and select Broadcast all. Now everything you write in one terminal will reflect on other terminals as well.


5. Then, set the date
sudo date -s "08/11/2015 08:15:00"

You will see the same date is set on all servers. You can verify that by obtaining the Unix time which represents the time in seconds.

date +%s 


Now, we can confirm that the time is accurate up to seconds.




No comments:

Post a Comment