I have built a vApp consisting of 3 virtual machine tiers, each of them running a different flavor of Linux as the guest OS. The appliance is running on a vCenter server. VMware Tools are installed in all the 3 tiers and all of them have their own IP addresses automatically assigned by the vCenter IP allocation mechanism.
I would like to know if it is possible for each of the virtual machine tiers to know the IP addresses of all the other virtual machines in the vApp. To be more specific, I would like a plain text file to be present in each of the virtual machine tiers containing the IP addresses of all the 3 virtual machine tiers. Is there any shell script or Perl script to do so? Or are there any relevant VMware Tools commands?
Any help will be highly appreciated.
Note : I have used Steve Jin's VI Java SDK to automate my virtual appliance creation process.
Thanks in advance.