How to run data collector script in the container environment?

At high level, the data collector script of the container needs to be run which will generate an output file.

After that, the output located inside the container needs to be copied to the local file system before uploading to IBM.

In OpenShift environment, follow the steps below from the system where oc client has been installed and has access to the OpenShift cluster where IBM© Sterling Control Center container is running.

  1. oc exec -it <<pod name>> /app/CC/bin/runDataCollector.sh
    When the above command is run, the data collector output is written to /ap/CC folder of the container.
  2. oc rynch <<pod name>>:/app/CC/<<data collector output file name" .
    The above command will copy the data collector output to local file system.

    Example:

    Step 1:
    oc exec -it rel621rs2-ibm-sccm-0 /app/CC/bin/runDataCollector.sh
    Sample output:
    IBM Control Center Data Collector 6.2.1.0_iFix05 complete.
    Upload /app/CC/SCCdata1649358246531.zip to ECUREP.
    Step 2:
    oc rsync rel621rs2-ibm-sccm-0:/app/CC/SCCdata1649358246531.zip  .