You can generate a log bundle using the CLI if you are unable to generate it using UCP Advisor.
- Log on to the UCP Advisor VM as a ucpadmin user.
- Identify the UCP Advisor version. Enter:
kubectl -n ucp get crd consolidationinformations.ucp.hitachivantara.com -ojson |grep -w storedVersions -A 2
Sample output:"storedVersions": ["v6"]
- Create a yaml file in an editor:
apiVersion: ucp.hitachivantara.com/<stored version> kind: GenerateLogBundle metadata: name: <name of the log bundle> spec: timestamp: now
Sample yaml file:apiVersion: ucp.hitachivantara.com/v6 kind: GenerateLogBundle metadata: name: test spec: timestamp: now
- Exit the edit mode. Press the Esc key.
- Save the changes. Enter:
:wq
- Generate the log bundle using the yaml file that you just created. Enter:
$ kubectl -n ucp apply -f <yaml file name>
- Check the status of the log bundle generation. Enter:
$ kubectl -n ucp get glb
- (Optional) Verify the details of the log bundle generation task. Enter:
$ kubectl -n ucp describe glb
After the status of the log bundle generation task is Normal, you can find the newly generated log bundle, UCP_Advisor_Log_Bundle_MMDDYYYY_HH:MM:SS.zip in the /var/ucpadvisor/logbundles/archives folder of the UCP Advisor VM. The log bundle is also listed in UCP Advisor under Settings > Support Log.