Version information for pods running on Red Hat OpenShift

You need to send version numbers when reporting a support issue to IBM® Support L2 or L3.

Generate version and image information by running the following command.
for P in $(oc get po|awk '{print $1}'|grep -v NAME); do echo $P; echo; oc describe po $P|egrep "Image|product[NV]"; echo; echo "==============================="; echo; done | tee /tmp/NOI_version_info.txt
This produces an output file that can be attached to a support case.

The following code snippets provide examples of the content of this file:

Example 1:
===============================
noi-operator-7fbfd7dc48-k55hg

              productName: IBM Netcool Operations Insight
              productVersion: 1.6.9
    Image:          icr.io/cpopen/ibmcom/noi-operator@sha256:976fe419feb8735379cd5100c0012cc5749b5c98a1f452c89a81fc852e7f9987
    Image ID:       icr.io/cpopen/ibmcom/noi-operator@sha256:976fe419feb8735379cd5100c0012cc5749b5c98a1f452c89a81fc852e7f9987

===============================
Example 2:
===============================
om204-topology-status-669cb6c44-ksw9w
              productName: IBM Netcool Operations Insight Agile Service Manager
              productVersion: 1.1.8
    Image:         hyc-hdm-staging-docker-virtual.artifactory.swg-devops.com/nasm-ubi-base-layer:3.2.0-202006121630-L-PPAN-BNYCMS
    Image ID:      hyc-hdm-staging-docker-virtual.artifactory.swg-devops.com/nasm-ubi-base-layer@sha256:a245018c2cef2712335ea50c3b074767d8ee2476d7bb86940734026daa98d3ff
    Image:          hyc-hdm-staging-docker-virtual.artifactory.swg-devops.com/nasm-status-service:1.0.0.11808-L-PPAN-BNYCMS
    Image ID:       hyc-hdm-staging-docker-virtual.artifactory.swg-devops.com/nasm-status-service@sha256:d2ebac219adc762ab8bb87450e8c6af72c55b1c2268953841fc0b72888e99969
===============================
Draft comment: LOUISERoberts
#4658 Needs triage/work