Generating a log bundle using the CLI

Unified Compute Platform (UCP) Advisor Administration Guide

Version
4.5.x
Audience
anonymous
Part Number
MK-92UCP119-13
ft:lastEdition
2024-03-11

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

  1. Log on to the Master Node 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": ["v5"]
  3. Create a yaml file in an editor:
    apiVersion: ucp.hitachivantara.com/<UCP Advisor version>
    kind: GenerateLogBundle
    metadata:
      name: <name of the log bundle>
    spec:
      timestamp: now
    Sample yaml file:
    apiVersion: ucp.hitachivantara.com/v5
    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>
  1. Check the status of the log bundle. Enter:
    $ kubectl -n ucp get glb
  2. Verify the details of the log bundle. Enter:
    $ kubectl -n ucp describe glb