Thanks alot. I'm already using the method stated in the above mentioned thread to get the UUID of a VM and that works. But my concern is that ESXi host allows 2 VMs with the same UUID to co-exist. I did a small experiment....created 2 VMs. By default, they had separate UUIDs. I then manually modified the .vmx file of 1 VM from the ESXi host and changed uuid.bios value to that of the other VM. Rebooted both VMs and they came up without any errors. I ran the
"esxcli vm process list" command and that showed me same UUID for both my VMs. In this case, someone can easily get around a software license in case its based on the bios UUID.