The nz timezone command
Deployment options: Netezza Performance Server for Cloud Pak for Data
Use the nz timezone command to set, list, and view all of the possible timezone values.
Syntax
nz timezone [subcommands] [options]
Inputs
Subcommand | Description |
---|---|
ls | Lists all of the possible timezone values. |
show | Displays the timezones that are set on the Netezza host. |
set | Sets the timezone of the Netezza host. For example,
|
Option | Description |
---|---|
-h | Displays the help message. |
-host | Required. Specifies the Netezza hostname. |
-apiserver | Required. Specifies Netezza Performance Server hostname. |
-u | Required. Specifies the Netezza user. |
-pw | Required. Specifies the Netezza user password. |
Tip: If you set the following environment variables, you can forgo specifying the
-u, -pw, and -host options when you are running
the command.
- CPD_HOST
- The Cloud Pak for Data endpoint or hostname.
- CPD_USER
- This value is usually the same as the privileged Netezza user or admin.
- CPD_PASSWORD
- The password for the
CPD_USER
.
Examples
- Listing timezone or
timezones:
nz timezone ls -u <user> -pw <password> -apiserver <apiserver> -host <host> TIMEZONES ---------------------------------- Africa/Abidjan Africa/Accra
- Displaying the timezone or timezones that is set on the Netezza
host:
nz timezone show -u <user> -pw <password> -apiserver <apiserver> -host <host> TIMEZONE -------------------- America/New_York
- Setting the timezone or timezones of the Netezza
host:
nz timezone set -tz America/New_York -u <user> -pw <password> -apiserver <apiserver> -host <host> Timezone set to America/New_York