Views:
  1. Connect to the SSPS over SSH as root.
  2. Verify if you can manually sync with the NTP servers using the following command:

    ntpdate -u 0.centos.pool.ntp.org

    The result should be similar to the following:

    10 Apr 17:48:26 ntpdate[3951]: step time server 199.102.46.73 offset 0.537451 sec

    If the test fails, verify that port 123 for UDP is open in both directions.

  3. Edit the ntp configuration file:

    vi /etc/ntp.conf

  4. Add the following lines to enable the NTP service and configure it to start when system is rebooted.

    service ntpd start
    chkconfig ntpd on

  5. Run the command below to restart SSPS:

    shutdown -r now

  6. Use the following command to verify that the ntp service is running:

    ps aux | grep ntp

    The result should be similar to the following:

    ntp 3389 0.0 0.3 17808 5552 ? SLs 00:23 0:00 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g
    root 24803 0.0 0.0 61120 804 pts/0 S+ 15:45 0:00 grep ntp
  7. Verify if the server synchronized properly using the command below:

    ntpq -p

    The result should be the same with the following:
    remote refid st t when poll reach delay offset jitter
    ==============================================================================
    +soft-sjc-01.ser 216.171.120.36 2 u 380 1024 377 197.359 0.418 6.062
    *lithium.constan 165.193.126.229 2 u 665 1024 377 116.463 -0.296 0.814
    +rapture.kno-tec 129.6.15.28 2 u 374 1024 377 118.378 2.240 0.540
    LOCAL(0) .LOCL. 10 l 15 64 377 0.000 0.000 0.001
  1. Connect to the SSPS over SSH as root.
  2. Run the following command to download the latest DST tzdata file from IANA for 2014:

    wget

    For example, http://www.iana.org/time-zones/repository/releases/tzdata2014b.tar.gz. You may check the latest package available on Internet Assigned Numbers Authority site.

  3. Unpack the downloaded archive by running the command below:

    tar xzf tzdata2014b.tar.gz

  4. Convert the time zone data for Asia and Europe using the following commands:

    zic Asia
    zic Europe

  5. Run the command below to create a symlink for CentOS to update tzdata. For example, time zone of Yekaterinburg:

    ln -sf /usr/share/zoneinfo/Asia/Yekaterinburg /etc/localtime

  6. Set the hw clock from system time using the command below:

    hwclock --systohc

  7. Change the necessary time zone for the web UI. The following steps uses our previous sample which is Yekaterinburg.
    1. Modify the clock settings using the following command:

      vi /etc/sysconfig/clock

    2. Edit the parameter below:

      ZONE="Asia/Yekaterinburg"

    3. Save the settings.
  8. Modify the php time zone using the command below:

    /usr/tmcss/bin/set_php_timezone.sh

  9. Reboot the SSPS server by running the following command:

    shutdown -r now

To check the new time settings in CentOS, see the date and hw clock.

To check the changes in web UI:

  1. Log in to the SSPS web console.
  2. Go to Logs > Update Log.
  3. Verify that the time is correct.