Configure Current System Timezone
Procedures for checking and changing the timezone on the system.
Check current timezone
- Check timezone on SMW.
smw# date
- Check timezone on cabinet and blade controllers.
smw# xtrsh -l root -s date
- Check timezone on boot node.
smw# ssh boot date
- Check timezone on SDB node. This command works from the SMW if the SDB node is a tier1 node with an Ethernet connection to the SMW.
smw# ssh sdb date
- Check timezone on all service nodes.
smw# ssh sdb pcmd -r -n ALL_SERVICE_NOT_ME "date"
- Check timezone on all compute nodes.
smw# ssh sdb pcmd -r -n ALL_COMPUTE "date"
Change SMW local timezone
- Execute this command to change the default timezone. The default timezone on the SMW is "America/Chicago".
smw# yast2 timezone
The change on the SMW will be immediate, but users will need to logout and then login again to get the new environment.
This does not change the timezone for the CLE nodes or the cabinet and blade controllers. See below to make those changes.
Change timezone in global config set
- Set cray_time.settings.service.data.timezone to be the desired timezone. A list of possible timezones is available on the SMW in /usr/share/zoneinfo/zone1970.tab.
smw# cfgset update -s cray_time -m interactive global
- Validate the config set.
smw# cfgset validate global
Change timezone in CLE config set
If the CLE config set has cray_time.inherit set to true, then the timezone and other time settings from the global config set will be inherited by the CLE config set.
If the CLE config set has cray_time.inherit set to false, then use the following command to change the setting.
- Set cray_time.settings.service.data.timezone to be the desired timezone. A list of possible timezones is available on the SMW in /usr/share/zoneinfo/zone1970.tab.
smw# cfgset update -s cray_time -m interactive p0
- Validate the config set.
smw# cfgset validate p0
Reboot for new timezone
Follow these steps to set a new timezone for all components in the SMW and CLE system after the global and CLE config sets and SMW yast2 have been updated with the new setting.
- Reboot SMW.
- Shutdown CLE and reboot the SMW.
crayadm@smw> xtbootsys -s last -a auto.hostname.stop crayadm@adm> su - root smw# reboot
- Check that the SMW has the desired timezone setting once the SMW reboots.
smw# date
- Shutdown CLE and reboot the SMW.
- Power down the system.
smw# xtcli power down s0
- Reboot the cabinet controllers
smw# xtccreboot -c all xtccreboot: reboot sent to specified CCs smw# sleep 120 smw# xtalive -l cc
- Power up the system.
smw# xtcli power up s0
- Boot CLE nodes for new timezone.
crayadm@smw> xtbootsys -a auto.rhine
- Check current timezone.
- Check timezone on SMW.
smw# date
- Check timezone on cabinet and blade controllers.
smw# xtrsh -l root -s date
- Check timezone on boot node.
smw# ssh boot date
- Check timezone on SDB node. This command works from the SMW if the SDB node is a tier1 node with an Ethernet connection to the SMW.
smw# ssh sdb date
- Check timezone on all service nodes.
smw# ssh sdb pcmd -r -n ALL_SERVICE_NOT_ME "date"
- Check timezone on all compute nodes.
smw# ssh sdb pcmd -r -n ALL_COMPUTE "date"
- Check timezone on SMW.