Collecting logs using camCollector script
camCollector script is used to collect diagnostic information for Managed services and the underlying platform.
About the task
The script collects the following information:
- About Managed services Helm chart, such as the persistent volumes and its claims, secrets, config maps and deployments.
- OpenShift information for Managed services, such as namespaces/persistent volumes/pvc/secrets/config maps and status of each pod.
- Status of IBM Cloud Pak® for Multicloud Management pods.
- Logs for each of the Managed services pods.
Before you begin
To run the
camCollector script, you must have configured OpenShift Client(oc).
Ensure that you are logged in to your OpenShift Cluster with this command:
oc login -n management-infrastructure-management
Note: If you use a namespace other than
management-infrastructure-management, you need to edit the
infrastructure_management_nsvariable in the script.
camCollectorscript from GitHub using the following commands:
curl https://raw.githubusercontent.com/IBM-CAMHub-Open/cam-support/release-2.0/scripts/camCollector.sh --output camCollector.sh
chmod +x camCollector.sh
camCollector.shscript using the following command: