How To
Summary
A command line tool to gather information such as configmaps, pods, secrets, and log files about the CP4BA resources in the target namespace.
Objective
Steps
Important: For air gap installations, this image is included in the list of images downloaded for an air gap setup. Although, you might need to change the tag to that of the latest image you downloaded. Or, push the new image into your image registry.
oc adm must-gather --image=icr.io/cpopen/cp4ba/icp4a-must-gather:23.0.2-IF005 ....
- To gather all the logs and configurations of each capability in CP4BA (recommended), you can execute a single command:
oc adm must-gather --image=icr.io/cpopen/cp4ba/icp4a-must-gather:<version>-IF<xxx> <--run-namespace=cp4ba-namespace> -- gather -m cp4ba -n <cp4ba_namespaces>
This command gathers information about the CP4BA and Cloud Pak foundational services (CPfs) resources in the namespace. If you are running the command as a non-cluster admin, use the --run- namespace parameter with the appropriate namespace. This parameter requires OCP 4.11 or later. If the command is executed by a cluster-admin, it is optional.
- The command in cp4ba mode takes about 10 - 12 minutes to complete. If you installed the CP4BA operator, use the cp4ba mode and want to collect logs on specific components/patterns:
oc adm must-gather --image=icr.io/cpopen/cp4ba/icp4a-must-gather:<version>-IF<xxx> -- gather -m cp4ba –p <option1, option2,..,> -n <cp4ba_namespace>
oc adm must-gather --image=icr.io/cpopen/cp4ba/icp4a-must-gather:<version>-IF<xxx> -- gather -m cp4ba –p cpe,css,ban -n cp4ba-prod
- If you installed the Content operator, use the content mode and want to collect logs on specific components/patterns:
oc adm must-gather --image=icr.io/cpopen/cp4ba/icp4a-must-gather:<version>-IF<xxx> -- gather -m content –p <option1, option2,..,> -n <cp4ba_namespace>
Starting from 24.0.0, if you installed the
Business Automation Insightsoperator (BAI standalone), use the bais mode:
oc adm must-gather --image=icr.io/cpopen/cp4ba/icp4a-must-gather:24.0.0 -- gather -m bais -n <cp4ba_namespace>
For example:
oc adm must-gather --image=icr.io/cpopen/cp4ba/icp4a-must-gather:<version>-IF<xxx> -- gather -m cp4ba –p content -n cp4ba-prod
Refer to the table below for more details on other components and patterns.
Important: Some of the collections do not support multiple namespaces provided to the -n parameter. Multiple namespaces are only supported by the -p option and not the foundation collection. Cluster admin permission is also required for the broad collections that get cluster information. If the capability or component is not installed in the namespace, the command returns only the information that it can find.
Additional Information
Module |
Components and Pattern(s) |
What is gathered |
-m cp4ba |
None |
All pod logs and most configurations in the namespace + ICP4ACluster CR |
-m cp4ba |
-p systeminfo |
OCP versions, events, csv, nodes, and status of CPU and memory usage |
-m cp4ba |
-p operators |
CP4BA operator logs, sub-operator logs (content, bts, wfps, pfs, insightsengine, and dependency operators) + systeminfo + ICP4ACluster CR |
-m cp4ba |
-p application |
Application Engine, FNCM, BAN, Resource Registry, BAS, BTS, and operators logs/configurations + ICP4ACluster CR |
-m cp4ba |
-p content |
FNCM, BAN, IER, ICCSAP, ADP content services (CPDS/CDRA/CDS/Viewone/Gitgateway/Mongo), and content sub-operator logs/configurations + systeminfo + ICP4ACluster CR |
-m cp4ba |
-p document_processing |
Automation Document Processing (Content, ACA, AE, BAS, BTS, Operators) logs and configurations + systeminfo + ICP4ACluster CR |
-m cp4ba |
-p foundation |
Automation Foundation logs/configurations + ICP4ACluster CR |
-m cp4ba |
-p decision |
Operational Decision Manager logs/configurations + ICP4ACluster CR |
-m cp4ba |
-p decision_ads |
Automation Decision Services logs and configurations + ICP4ACluster CR |
-m cp4ba |
-p workflow_runtime |
Application Engine, FNCM, BAN, Resource Registry, BAML, PFS, workflow-runtime, BTS, and operators logs/configurations + ICP4ACluster CR |
-m cp4ba |
-p workflow_authoring |
BAS, FNCM, BAN, Resource Registry, BAML, PFS, BTS, and operators logs/configurations + ICP4ACluster CR |
-m cp4ba |
-p wfps |
Resource Registry, WPFS, WPFS, and CP4BA operators logs/configurations + ICP4ACluster CR |
-m cp4ba |
-p wfps_authoring |
|
-m cp4ba -m content |
-p cpe |
CPE and content sub-operator logs and configurations + systeminfo + ICP4ACluster CR |
-m cp4ba or -m content |
-p css |
CSS and content sub-operator logs and configurations + systeminfo |
-m cp4ba or -m content |
-p graphql |
GraphQL and content sub-operator logs and configurations + systeminfo |
-m cp4ba or -m content |
-p cmis |
CMIS and content sub-operator logs and configurations + systeminfo |
-m cp4ba or -m content |
-p taskmgr |
Task Manager and content sub-operator logs and configurations + systeminfo |
-m cp4ba or -m content |
-p extshare |
External Share and content sub-operator logs and configurations + systeminfo |
-m cp4ba or -m content |
-p ban |
BAN and content sub-operator logs and configurations + systeminfo |
-m cp4ba or -m content |
-p ier |
IER and content sub-operator logs and configurations + systeminfo |
-m cp4ba or -m content |
-p iccsap |
ICCSAP and content sub-operator logs and configurations + systeminfo |
-m cp4ba or -m content |
-p bai | BAI, CP4BA operator and content sub-operator logs and configurations + systeminfo or BAI and content sub-operator logs and configurations + systeminfo + Content CR |
-m content |
None |
FNCM, BAN, IER, ICCSAP, ADP content services (CPDS/CDRA/CDS/Viewone/Gitgateway/Mongo) and content sub-operator logs/configurations + systeminfo + Content CR |
-m bais (starting from 24.0.0 only) |
None | BAI opearators logs, configurations, and CPfs resources |
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
03 July 2024
UID
ibm17002379