In case of all VMs have vmware tools installed, use below command to list all IP address assigned for VM inside a ESXi server for i in `vim-cmd vmsvc/getallvms | grep -v Vmid | awk '{print $1}'`; do vim-cmd vmsvc/get.guest $i | grep -i 'ipaddress = "'; done
Virtualization The Future!!!