Filter:

Submit Search

# Changing the SMC server time zone and date

By default the SMC server time zone is GMT+1 (Central European Time).

Changing the time zone

1. Log in to the SMC server via the console of your hypervisor or in SSH.
2. Enter the command `smc-date-time --timezone "timezone”` to change the time zone. Replace `timezone` with the correct time zone.
   - To see the available time zones, enter the command
     `ls -l /usr/share/zoneinfo/`,
   - To find the city in the zone of your choice (Asia for example), enter the command `ls /usr/share/zoneinfo/Asia`.
3. Restart the server with the command `reboot`. This step is required in order for the new time zone to be applied to all services.
4. Enter the command `smc-date-time` to check that the change has been properly applied.

Changing the date manually

1. Enter the command `smc-date-time --date-time "YYYY-MM-DD hh:mm:ss"` to change the date.
2. Enter the command `smc-date-time` to check that the change has been properly applied.

Changing the date via NTP

To enable NTP on the SMC server:

1. Enter the command
   `smc-date-time --ntp-servers ntp1.org,ntp2.com,IPaddress` separating each NTP server with a comma if there are several. NTP servers may also be identified by their IP addresses or DNS names.
2. Enter the command `date` to check the modification has been properly applied.

To disable NTP, you need to go back to manual date mode.

The polling frequency of an NTP server is the default frequency of the NTP daemon.

Displaying a comprehensive summary of the SMC server's date/time

- Enter the command `smc-date-time` to display all of the server's date/time parameters:

    smc-date-time
    TIMEZONE=Asia/Dubai
    NTPSERVERS=none
    LOCALDATE=2016-05-18 09:05:19