It becomes difficult for an administrator to find the vCenter server VM to take a snapshot, especially when vc itself is unavailable.
Finding the vCenter server virtual machine in a large environment consisting of several hosts to take a snapshot prior to troubleshooting.
vCenter server 6.0.x
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
----------------------------+--------------+---------
vcenter.server.local | 192.168.x.x | xxxx
(1 row)
host_id
.VCDB=# select dns_name, ip_address from vpx_host where id = xxxx;
dns_name | ip_address
--------------------------+-------------
esxi1.server.local | 10.10.x.x
(1 row)
VCDB=# \q