The nz ops ls command

Deployment options: Netezza Performance Server for Cloud Pak for Data

Use the nz ops ls command to list various Netezza-related operations that are performed on the cluster.

Syntax

nz ops ls [options]

Inputs

Option Description
-h Displays the help message.
-format Specifies the format of the output. You can use [table,json].
-host Required. Specifies the Cloud Pak for Data hostname of the platform .
-namespace Specifies the namespace for which to list the operations that are performed.
-pw Required. Specifies the Cloud Pak for Data user password.
-u Required. Specifies the Cloud Pak for Data user.
-r Sorts the operations that are listed in a reverse order (newest to oldest).
-status Lists all of the operations that have the status, which is specified by this option. You can list [failed,succeeded,running,scale].
-type Lists all of the operations that have the type, which is specified by this option. You can list [delete,provision,pause,scale,update,resume].
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 operations with the failed status and provision type:
    nz ops ls -status failed -type provision
      OPERATION                               NAME                                    NAMESPACE                    DATE                STATUS
    ------------ --------------------------------------------------------------- -------------------- ------------------------------- ---------
      Provision   provision-nps-console-dev-1-job-1616130432384029-srxjl-hkw9j    nps-console-dev-1    Wed, 31 Dec 2021 19:00:00 EST   Failed
      Provision   provision-nps-console-dev-1-job-1616130432384029-zeczk-j4lns    nps-console-dev-1    Wed, 31 Dec 2021 19:00:00 EST   Failed
      Provision   provision-nps-expansion-test-job-1616096864492398-kzmdq-75r9d   nps-expansion-test   Wed, 31 Dec 2021 19:00:00 EST   Failed
      Provision   provision-nps-expansion-test-job-1616096864492398-mfwpa-9plst   nps-expansion-test   Wed, 31 Dec 2021 19:00:00 EST   Failed