It becomes difficult for an administrator to find the vCenter server VM to take a snapshot, especially when vCenter itself is inaccessible.
Finding the vCenter server virtual machine in a large environment consisting of several hosts to take a snapshot prior to troubleshooting.
vCenter server 7.0.x
vCenter server 8.0.x
When the vCenter server virtual machine is down/unavailable due to some underlying issues on its internal services, it helps in finding the vCenter server VM amongst all available hosts in a large environment.
/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres
VCDB=# select dns_name, ip_address, host_id from vpx_vm where dns_name like '%vcenter%';
dns_name | ip_address | host_id----------------------------+--------------+--------- vc.example.com | ###.###.###.### | ### (1 row)
host_id.VCDB=# select dns_name, ip_address from vpx_host where id = xxxx; dns_name | ip_address--------------------------+------------- esxi.example.com | ###.###.###.###(1 row)
VCDB=# \q