1. SSH into your ESXi server
2. Get a list of all registered virtual machines, identified by their VMID, Display Name and path to the .vmx configuration file
vim-cmd vmsvc/getallvms
...
Log in as root to the ESXi using SSH.
Get a list of running virtual machines, identified by World ID, UUID, Display Name, and path to the .vmxconfiguration file by running this command: ...