manage get-rsi-patch-logs

Extract and display the logs from the RSI webhook pod.

Extended description

Extract and display the logs from the RSI webhook pod.

The logs include the following information:
  • RSI patch history
  • RSI patch failures

You can filter the logs by project and by patch name.

Remember: Logs are deleted when the RSI webhook pod is restarted.

Syntax

cpd-cli manage get-rsi-patch-logs \
--cpd_instance_ns=<project-name> \
[--patch_name=<patch-name>] \
[-v][-vv][-vvv]

Arguments

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

Options

Table 1: Command options
Option Description
--cpd_instance_ns The project (namespace) where the RSI patch exists.
Status
Required.
Syntax
--cpd_instance_ns=<project-name>
Default value
No default. User-defined.
Valid values
The name of the project where the RSI feature is installed.
--patch_name The name of the RSI patch for which you want to see logs.
If you don't specify this option, you see either:
  • Logs for all patches in the specified project (if you also specify --cpd_instance_ns).
  • Logs for all patches in all projects where the RSI feature is enabled.
Status
Optional.
Syntax
--patch_name=<patch-name>
Default value
No default. User defined.
Valid values
The name of the project where IBM Cloud Pak foundational services and the RSI webhook are installed.
-v
-vv
-vvv
Display verbose output.

Options are listed from least verbose to the most verbose.

Status
Optional.
Syntax
Verbose output
-v
Very verbose output
-vv
Most verbose output
-vvv
Default value
Not applicable.
Valid values
Not applicable.

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.

See the logs for the RSI patches in a specific project
cpd-cli manage get-rsi-patch-logs \
--cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS}
See the logs for the patch-name-1 patch in a specific project
cpd-cli manage get-rsi-patch-logs \
--cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \
--patch_name=patch-name-1