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 of the 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 --selector
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 of the patches in the project, the cpd-cli
returns a JSON
array that includes details about all of the 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
Option | Description |
---|---|
--all |
List all of the RSI patches in the specified
project.
|
--cpd_instance_ns |
The name of the project where you get information about one or more RSI patches.
|
--patch_name |
The name of the RSI patch for which you want to see the
status.
|
Examples
Note: The following example uses the recommended installation environment variables.
Use a script to create environment variables with the correct values for your environment. For details, see Best practice: Setting up install variables.
- List all of the RSI patches in the project where Cloud Pak for Data is installed
-
cpd-cli manage get-rsi-patch-info \ --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \ --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_INSTANCE} \ --patch_name=patch-name-1