Skip to content

Instantly share code, notes, and snippets.

@ikurni
Last active December 14, 2023 10:04
Show Gist options
  • Save ikurni/785d964ac62379ac9570f80f5e6933a9 to your computer and use it in GitHub Desktop.
Save ikurni/785d964ac62379ac9570f80f5e6933a9 to your computer and use it in GitHub Desktop.
Red Hat Openshift Must Gather for Specific Products
###Data Collection for Red Hat Threescale
$ oc adm must-gather --image=quay.io/3scale/must-gather
###Data Collection Audit logs
$ oc adm must-gather -- /usr/bin/gather_audit_logs
#It's also possible to generate the default must-gather including the audit logs:
$ oc adm must-gather -- '/usr/bin/gather && /usr/bin/gather_audit_logs'
#Also see https://access.redhat.com/solutions/5373481
###Data Collection for Openshift Container Native Virtualization (CNV)
$ oc adm must-gather --image-stream=openshift/must-gather --image=registry.redhat.io/container-native-virtualization/cnv-must-gather-rhel8:[cluster_version]
#The [cluster_version] tag should be in format v4.y.z
###Data Collection for Red Hat OpenShift Logging
$ oc adm must-gather --image=$(oc -n openshift-logging get deployment.apps/cluster-logging-operator -o jsonpath='{.spec.template.spec.containers[?(@.name == "cluster-logging-operator")].image}')
###Data Collection for OpenShift Networking (OpenShiftSDN and OVN Kubernetes)
#For all versions of Red Hat OpenShift Container Platform except for 4.12 and 4.13
$ oc adm must-gather -- /usr/bin/gather_network_logs
###Data collection for Red Hat OpenShift Service Mesh.
$ oc adm must-gather --image-stream=openshift/must-gather --image=registry.redhat.io/openshift-service-mesh/istio-must-gather-rhel8:[servicemesh_version]
###Data Collection for Red Hat Advanced Cluster Management for Kubernetes
$ oc adm must-gather --image=registry.redhat.io/rhacm2/acm-must-gather-rhel8:[ACM_version]
###Data collection for Local Storage Operator.
$ oc adm must-gather --image=registry.redhat.io/openshift4/ose-local-storage-mustgather-rhel8:[Version]
###Data Collection for Red Hat OpenShift Data Foundation(ODF)
#For ODF-4.9 through ODF-4.12
$ oc adm must-gather --image=registry.redhat.io/odf4/ocs-must-gather-rhel8:v4.9 --dest-dir=<directory-name>
#For ODF-4.13 and above (Change to RHEL9)
$ oc adm must-gather --image=registry.redhat.io/odf4/ocs-must-gather-rhel9:v4.13 --dest-dir=<directory-name>
###Data Collection for OpenShift APIs for Data Protection.
oc adm must-gather --image=registry.redhat.io/oadp/oadp-mustgather-rhel8:[version]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment