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 AIOps 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 cp4aiopsNote: If you use a namespace other than
cp4aiops, you need to edit theinfrastructure_management_nsvariable in the script. -
Download the
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.shchmod +x camCollector.sh -
Run
camCollector.shscript using the following command:./camCollector.sh