Generating a log bundle using the CLI

Unified Compute Platform (UCP) Advisor Administration Guide

Version
4.6.x
Audience
anonymous
Part Number
MK-92UCP119-15
ft:lastEdition
2024-09-24

You can generate a log bundle using the CLI if you are unable to generate it using UCP Advisor.

  1. Log on to the UCP Advisor VM as a ucpadmin user.
  2. 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"]
  3. 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
  4. Exit the edit mode. Press the Esc key.
  5. Save the changes. Enter:
    :wq
  6. Generate the log bundle using the yaml file that you just created. Enter:
    $ kubectl -n ucp apply -f <yaml file name>
  7. Check the status of the log bundle generation. Enter:
    $ kubectl -n ucp get glb
  8. (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.