manage get-rsi-patch-info

Get information about RSI patches that are defined in the specified project.

Extended description

Get information about RSI patches that are defined in the specified project.

You can either:
  • Get the status of a specific patch in the project
  • Get the list of all patches in the project
If you get the status of a specific patch, the cpd-cli identifies any pods that have the labels specified by the --include_labels option for the patch. For each pod, the output returns:
  • The name of the patch
  • The ID of the patch
  • The project (namespace) where the pods exist. (This can either be the same project as the Cloud Pak for Data control plane or a project that is tethered to the control plane project.)
  • The number of ready replicas for the pod
  • The status of the pod
  • Whether the patch has been applied to the pod

If you get the status of all patches in the project, the cpd-cli returns a JSON array that includes details about all RSI patches in the project.

Syntax

cpd-cli manage get-rsi-patch-info \
--cpd_instance_ns=<project-name> \
[--patch_name=<patch-name>] \
[--all]

Arguments

The get-rsi-patch-info command has no arguments.

Options

Table 1: Command options
Option Description
--all List all of the RSI patches in the specified project.
Status
Optional. If you don't specify this option, you must specify the --patch_name option.
Syntax
--all
Default value
Not applicable.
Valid values
Not applicable.
--cpd_instance_ns The name of the project where you get information about one or more RSI patches.
Status
Required.
Syntax
--cpd_instance_ns=<project-name>
Default value
No default. User-defined.
Valid values
The name of a project. Cloud Pak for Data must be installed in this project.
--patch_name The name of the RSI patch for which you want to see the status.
Status
Optional. If you don't specify this option, you must specify the --all option.
Syntax
--patch_name=<patch-name>
Default value
No default. User defined.
Valid values
The name of an RSI patch in the specified project.

Examples

Note: The following example uses the recommended installation environment variables.

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.

List allRSI patches in the project where Cloud Pak for Data is installed
cpd-cli manage get-rsi-patch-info \
--cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \
--all
Get information about the patch-name-1 patch in the project where Cloud Pak for Data is installed
cpd-cli manage get-rsi-patch-info \
--cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \
--patch_name=patch-name-1