Use Cases

Configuring time synchronization with Linux/Unix servers

Synchronize the time on most Linux/Unix servers using a simple ntpdate or rdate script.

Steps

  1. Before creating the cron job, test these commands as the root user using the following syntax:

    Choose from:

    • /usr/sbin/ntpdate -u  host
    • rdate  host  or rdate -u  host
      See the man page on your specific system for additional options.
  2. Use the following command to synchronize your time server. This example sets the synchronization event to occur at 04:00:

    # crontab -e
    0 4***/usr/sbin/ntpdate -u  host