Pro Tip: Cleaning up VMware HCX for a Demo

Following on from the VMware HCX Breadcrumb Build, I was aiming to cut a demo video and wanted to clean up the migration history of the workloads I had run test migrations on. It’s one thing showing a lot of successful runs, but who wants to capture that one failed run where you forgot to click the correct button??

This is definitely not for production use. Only for cleaning up a demo environment. Though its not too far a stretch to see VMware being able to help you out should you need to selectively remove some entries.

Cleaning up Migration History

To clean up these values:

  • SSH into your source/enterprise HCX appliance as ‘admin’.
  • At the shell type
    • mongo hybridity
  • At mongo prompt type
    • db.VmMigrations.remove({})
    • exit
  • Refresh your HCX browser

Cleaning up Alert History

To clean up these values:

  • SSH into your source/enterprise HCX appliance as ‘admin’.
  • At the shell type
    • mongo hybridity
  • At mongo prompt type
    • db.alerts.remove({})
    • exit
  • Refresh your HCX browser

Cleaning up Alert History

To clean up these values:

  • SSH into your source/enterprise HCX appliance as ‘admin’.
  • At the shell type
    • mongo hybridity
  • At mongo prompt type
    • db.Job.remove({})
    • exit
  • Refresh your HCX browser

Enjoy, but be careful!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s