How to Generate UCP Advisor Log Bundle via CLI

Content

 

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

 

Procedure

  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

  3. Sample output:
    "storedVersions": ["v5"]

  4. 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

  5. Exit the edit mode. Press the Esc key.

  6. Save the changes. Enter:
    :wq

  7. Generate the log bundle using the yaml file that you just created. Enter:
    $ kubectl -n ucp apply -f <yaml file name>

Next steps

  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

 

Solution Properties

Keywords
https://knowledge.hitachivantara.com/Support_Information/Data_Collection/Converged_Infrastructure/How_to_Generate_UCP_Advisor_Log_Bundle_via_CLI
Solution ID
242403060184896
Last Modified Date
08/18/2024 09:38:00 PM
Attributes
Page Privacy and Permission Assignment
  • Page Privacy: Private
  • Page Level Permissions: Anonymous; Employee; Service Partner; Customer; Knowledge Author; Knowledge Editor; IT; eServices; Knowledge Draft
  • Article: reference
  • Pagetype: documentationarticle
Taxonomy
  • Support Information > Data Collection > Converged Infrastructure
Collections
  • Customer
  • Employee
  • Guest
  • Service Partner
Views
0