Skip to main content

6.6 Setting the Time


6.6 Setting the Time
This section describes the procedure for setting the system date and time.
The date and time in the factory default settings are set to coordinated universal time (UTC). If you want to display the time in local time (e.g., JST), first set the time zone, and then check and set the time.
  1. Execute the showtimezone command to check the time zone.
    The following example displays the factory default setting (UTC).
XSCF> showtimezone -c tz
UTC
  1. To set the time zone, execute the settimezone command, and check which time zones can be set.
    If you do not want to set the time zone, skip steps 2 and 3.
    The following example displays a partial list of time zones that can be set.
XSCF> settimezone -c settz -a
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Asmera
Africa/Bamako
Africa/Bangui
.
.
  1. To set the time zone, execute the settimezone command.
    The following example sets the time zone to "Asia/Tokyo."
XSCF> settimezone -c settz -s Asia/Tokyo
Asia/Tokyo
Note - In the building block configuration, time zone setting may take time to complete. Synchronization between the master XSCF and the standby XSCF is performed. Wait till the XSCF prompt appears.
  1. Execute the showdate command to display the XSCF time.
    If you have set the time zone, the command displays the time in local time (e.g., JST).
    The following example displays the current time in the local time zone.
XSCF> showdate
Tue Sep 20 14:53:00 JST 2016
  1. Execute the setdate command. Even if the time is correct, make sure to execute this.
    Setting the date and time reboots the XSCF.
    The following example sets the local time (JST) to 16:59:00 September 20, 2016.
XSCF> setdate -s 092016592016.00
Tue Sep 20 16:59:00 JST 2016
The XSCF will be reset. Continue? [y|n] :y
Tue Sep 20 7:59:00 UTC 2016
XSCF>
Note - If the reboot is canceled, the XSCF does not reflect the setting values even when the reboot is by the rebootxscf command.
  1. Log in to the XSCF again.
    For details, see "6.3 Logging In to the XSCF."
  2. Execute the showtimezone command.
    Confirm that it shows the set time zone.
XSCF> showtimezone -c tz
Asia/Tokyo
  1. Execute the showdate command.
    Confirm that it shows the set time.
XSCF> showdate
Tue Sep 20 16:59:00 JST 2016