Learn how to change time zones of the Netezza host with the nz
timezone command.
Before you begin
Make sure that the nz tool is downloaded. For more information, see Downloading nz.
About this task
The nz timezone
commandnz timezone [subcommands] [options]
Subcommand |
Description |
ls |
Lists all of the possible time zone values. |
show |
Displays the time zones that are set on the host. |
set |
Sets the time zone of the host. |
Option |
Description |
-h |
Displays the help message. |
-host |
Required. Specifies the Netezza hostname or external IP. It must be followed by
:8443 . |
-u |
Required. Specifies the Netezza user. |
-pw |
Required. Specifies the Netezza user password. |
Procedure
-
Log in to Netezza.
- Run the nz timezone command.
nz timezone set -tz TIME_ZONE -host NPS_EXTERNAL_IP:8443 -u NETEZZA_USER -pw NETEZZA_USER_PASSWORD
Example:
nz timezone set -tz America/New_York -host 9.30.20.46:8443 -u admin -pw password
Timezone set to America/New_York
Tip: To see available time zones, run the following
command.
nz timezone ls -host NPS_EXTERNAL_IP:8443 -u NETEZZA_USER -pw NETEZZA_USER_PASSWORD