Collecting logs using camCollector script
The 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).
Procedure
-
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 theinfrastructure_management_ns
variable in the script. -
Download the
camCollector
script 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
-
Run
camCollector.sh
script using the following command:./camCollector.sh