Is there any way to query the vsphere in order to get info on which switch / network is the NIC connected to ?
The plan goes something like this:
1. Plant a script in the startup dir of Windows VM. The script is going to detect if the VM was clonned.
2. If it was clonned then the IP of the vm needs to be changed
3. If the network card was attached to NetPoolX then the IP should be 10.10.X0.1
The problem is that the VM is not aware of the vsphere environment.
I have heard that it should be possible to query the vsphere environment via vmware tools.
I just struggle to figure out how.