IBM Support

Using the mongo hybridity command in troubleshooting HCX

Troubleshooting


Problem

Using the mongo hybridity command in troubleshooting HCX

Resolving The Problem

What';s Happening

You need to look at the configuration tables in HCX Manager as part of a troubleshooting session.

How to Resolve

Use the following steps:

  1. SSH onto the HCX Enterprise Manager. You might need to enable SSH on the appliance; if so refer to the VMware article Enable SSH on the HCX Manager.

  2. Log into the HCX Enterprise Manager by referring to the VMware article Logging into the VMware HCX Manager CLI.

  3. Connect to the HCX Mongo database by using the following command: mongo hybridity

  4. To list the tables in the database, use the command: show collections

  5. To examine the contents of a table, use the following command: db.<table-name>.find().pretty()
    For example to view the virtual networks table use the following command: db.VirtualNetwork.find().pretty()

  6. Press q to exit the database and return to the shell.

Note that changing or deleting anything in the database is not supported in production environments by VMware, and such changes should be done under the guidance of VMware support.

Document Location

Worldwide

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSCLB3","label":"VMware Solutions"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
01 August 2019

UID

ibm1KB0013173