How to Set the Time Zone of the NetScaler Appliance to UTC Time Zone

How to Set the Time Zone of the NetScaler Appliance to UTC Time Zone

book

Article ID: CTX120666

calendar_today

Updated On:

Description

This article contains the procedure to change the time zone of the NetScaler appliance to Coordinated Universal Time (UTC) if the appliance is set to another time zone. When setting the appliance to the UTC time zone, it can be confusing to refer to a relevant city. To avoid such uncertainty, you can remove the user specified time zone settings. This enables the appliance to reset the default time zone to UTC. Using the UTC time zone, it is easier to adjust the time of the appliance to the daylight saving time and the local time zone.


Instructions

To reset the time zone of a NetScaler appliance to the UTC time zone, complete the following procedure:

  1. Log on to the NetScaler appliance by using an SSH utility or the appliance console.

  2. Run the following command to switch to the FreeBSD shell:
    shell

  3. Run the following command to display the current time, date and time zone of the appliance:
    date

  4. Run the following command to remove the localtime file from the /nsconfig directory:
    rm /nsconfig/localtime

    The localtime file contains the adjusted time zone setting. If this file is missing in the /nsconfig directory, then the appliance resets to the default time zone.

  5. Run the following command to adjust the time zone:
    adjkerntz -a

    The time zone of the appliance clock is set to the UTC time zone because the localtime file no longer exists in the /nsconfig directory.

  6. Run the following command to verify the current time, date, and time zone of the appliance:
    date

    The output of the command displays the time zone of the appliance set to UTC.

The following example displays the time zone of a NetScaler appliance reset from MST time zone to UTC time zone after completing the preceding procedure on the appliance. Notice that the 100:44 MST corresponds to 18:44 UTC.

root@ns# date

Mon Mar 30 11:44:20 MST 2009
root@ns# rm /nsconfig/localtime
root@ns# adjkerntz -a
root@ns# date
Mon Mar 30 18:44:47 UTC 2009

Issue/Introduction

This article contains the procedure to change the time zone of the NetScaler appliance to Coordinated Universal Time (UTC) if the appliance is set to another time zone.