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

  1. Ensure that you are logged in to your OpenShift Cluster with this command:

    oc login -n cp4aiops
    

    Note: If you use a namespace other than cp4aiops, you need to edit the infrastructure_management_ns variable in the script.

  2. 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
    
  3. Run camCollector.sh script using the following command:

    ./camCollector.sh