manage
get-cr-status
Extended description
- Installed at the correct version
- In maintenance mode during an offline backup
- Shut down to prevent the service from using resources
For each component, the output of the command includes the following information:
- The custom resource kind and name
- The project where the custom resource exists
- The status of the custom resource
- The version of the component from the
spec
section of the custom resource - The timestamp when the custom resource was created
- The version in the
status
section after the last operator reconcile loop - The operator version and build number, if available
The output has the following format:
Component CR-kind CR-name Namespace Status Version Creationtimestamp Reconciled-version Operator-info
------------ ---------- ---------- ------------ --------- --------- -------------------- -------------------- -----------------------------------
<component-ID> <cr-kind> <cr-name> <project-name> <status> <version> <creation-timestamp> <operand-version> <operator-version> <build-number>
The following table provides more information about the statuses for each custom resource:
For more information about the statuses that are returned for each component, see Getting the status of installed components.
Syntax
cpd-cli manage get-cr-status \
[--cpd_instance_ns=<project-name>] \
[--tethered_instance_ns=<project-name>] \
[--cluster_component_ns=<project-name>] \
[--components=<comma-separated-list-of-component-names>]
Arguments
The get-cr-status
command has no arguments.
Options
Option | Description |
---|---|
--components |
A comma-separated list of the components for which you want to see
the status.
|
--cpd_instance_ns |
The project for the IBM Cloud Pak® for Data control plane and services. If you specify a component that isn't in the project, the output will not include information about the component.
|
--cluster_component_ns |
The project where the cluster-wide component that you want to get the
status of is installed.
|
--tethered_instance_ns |
The tethered project where you want to get the status of installed
components.
|
Examples
It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For details, see Setting up installation environment variables.
- Get the status of all components in the specified project
-
cpd-cli manage get-cr-status \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS}
- Get the status of the control plane in the specified project
-
cpd-cli manage get-cr-status \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=zen
- Get the status of all components in the specified tethered project
-
cpd-cli manage get-cr-status \ --tethered_instance_ns=${PROJECT_CPD_INSTANCE_TETHERED}
- Get the status of the scheduling service
-
cpd-cli manage get-cr-status \ --cluster_component_ns=${PROJECT_SCHEDULING_SERVICE} \ --components=scheduler