This short Ruby script example can be used to retrieve to IP of an VM in vCenter as seen by the VM Tools, as well as retrieve the VM Name by searching for an assigned IP address