How to check NG License in Harness On-Prem

Introduction
This article will walk you through how you can check the NG License details in Harness On-Prem.

Process

Step 1: Get Mongo password

kubectl get secret -n <namespace> mongodb-replicaset-chart -o jsonpath={.data.mongodb-root-password} | base64 --decode | awk '{print $1}'

Step 2: Shell into Mongo

kubectl exec -it mongodb-replicaset-chart-0 -n <namespace> -- /bin/sh

mongo

Step 3: Mongo Commands

  • use admin
  • db.auth('admin', <password>)
  • use ng-harness
  • db.moduleLicenses.find({})

The above commands will return NG License presence.