VMware vSphere

 View Only
  • 1.  getting ESXI host IP from a virtual machine hosted on it

    Posted Mar 27, 2014 11:09 AM

    Hello guys,

    I'm trying to write a script on a virtual machine which does some job on the host ESXI by running vmware-cmd. the scripts works inside Virtual Machine by doing a ssh to the host ESXI ..

    the script can run on any virtual machine and I need to  find a method to retrieve the ip address for ESXI host from virtual machine  ... is there any way to get this ip address through virtual machine ??

    thanks,

    sangamesh



  • 2.  RE: getting ESXI host IP from a virtual machine hosted on it

    Posted Apr 02, 2014 05:32 PM

    just check the properties of the particular VM by righ clicking on the VM and you will find the IP address information of the ESX Host on which the VM is running



  • 3.  RE: getting ESXI host IP from a virtual machine hosted on it

    Posted Apr 04, 2014 07:22 PM

    how many host do you have? if less than five...

    from vCenter go to virtual machine tab.

    search the machine you are digging for...

    the host IP has been discovered. there is no VMWare-cmd command that do what you want.

    Try powerCLI with Get-VmHost

    \aleph0