HCX: Bulk Migration customization information collection
search cancel

HCX: Bulk Migration customization information collection

book

Article ID: 314202

calendar_today

Updated On:

Products

VMware HCX

Issue/Introduction

This document consists of information about Bulk migration customization attributes collection once the migration has started or completed successfully which at the moment is not visible under HCX mobility migration UI.


Resolution

STEP 1

  • Login to HCX manager Connector Or Cloud as user admin via SSH.


STEP 2

  • Create a file (info_collection) using VIM and add the below line to this file:
select jsonb_pretty(val) from "MobilityMigrations" where val->>'migrationId' = 'MIG ID' and val->>'rowType' = 'DEFINITION_ROW';


IMP NOTE:- Replace the MIG ID with the migration ID for a BULK migration with respect to a source VM. The migration ID can be obtained from HCX mobility migration UI.



SAMPLE OUTPUT
 

$cat info_collection
select jsonb_pretty(val) from "MobilityMigrations" where val->>'migrationId' = '#####################################' and val->>'rowType' = 'DEFINITION_ROW'; 

 

STEP 3

  • Execute the command as shown below
psql -U postgres hybridity -h localhost < info_collection | grep -A30 guestCustomization


SAMPLE OUTPUT
 

$ psql -U postgres hybridity -h localhost < info_collection | grep -A30 guestCustomization
     "guestCustomization": {                                                    +
         "identity": {                                                          +
             "name": "################"                                          +
         },                                                                     +
         "changeSID": false,                                                    +
         "dnsCustomizations": {                                                 +
             "dns": [                                                           +
                 "#########",                                                     +
                 "#########"                                                      +
             ],                                                                 +
             "dnsSuffixes": [                                                   +
                 "hcxsrelab.com"                                                +
             ]                                                                  +
         },                                                                     +
         "networkCustomizations": [                                             +
             {                                                                  +
                 "dns": [                                                       +
                 ],                                                             +
                 "netmask": "#############33#",                                  +
                 "gateways": [                                                  +
                     "#############"                                             +
                 ],                                                             +
                 "ipAddress": "#############",                                   +
                 "macAddress": "#############"                              +
             }                                                                  +
         ],                                                                     +
         "personalizationScript": ""                                            +
     },                                                                         +
     "creationOrganization": "HybridityAdmin",                                  +
     "lastUpdateEnterprise": "HybridityAdmin",                                  +
     "lastUpdateOrganization": "HybridityAdmin"                                 +