Testing your AIOps connection

About this task

After you configure AIOps, you might want to test that your AIOps setup is up and running successfully.

  • Map the AIOps service to https://localhost:4001.
    oc -n wxa4z-aiops port-forward service/wxa4z-aiops-server 4001
  • Map the AIOps MCP service to https://localhost:8081.
    oc -n wxa4z-aiops port-forward service/wxa4z-zchatops-mcp-server-service 8081
  • Fetch the authentication token.
    export TOKEN=$(curl -k --location "http://localhost:8081/aiops/token" | sed -n 's/.*"token":"\([^"]*\)".*/\1/p') && echo "TOKEN=$TOKEN"
  • Get all z/OS systems.
    curl -k --location 'https://localhost:4001/ibm/bnz/v1/operation/zos-systems' \
    -H "Authorization: Bearer $TOKEN"
  • Get all the OMEGAMON situation events.
    curl -k --location 'https://localhost:4001/ibm/bnz/v1/operation/situation-events?component=zos' \
    -H "Authorization: Bearer $TOKEN"
  • Test the Db2 systems.
    curl -k --location 'https://localhost:4001/ibm/bnz/v1/operation/db2' \
    -H "Authorization: Bearer $TOKEN"
  • Get all Engine details:
    curl -k --location 'https://localhost:4001/ibm/bnz/v1/operation/engine' \
    -H "Authorization: Bearer $TOKEN"