VMware vSphere

 View Only
  • 1.  Host IP Details

    Posted Dec 15, 2014 02:59 PM

    How to get Host IP address details for ESXi in VC, is there any command or process to get all IP details with subnet mask and gateway.

    Example if the Host is having multiple ports I need all port details like these multiple Hosts



  • 2.  RE: Host IP Details

    Posted Dec 15, 2014 03:43 PM

    Are you looking for the VMkernels specifically? Or do you need Guest VM IP's as well?

    If you are just looking to list out the VMKernel ports, you can simply turn on SSH-- In vSphere client -> security profile -> properties -> SSH -> turn on.

    SSH into the host using a program of choice (if unfamiliar google PuTTY).. Host IP and log in with root/local password that you've set.

    Run this command :

    esxcli network ip interface ipv4 get

    Let me know if this helps or if that command doesn't run.



  • 3.  RE: Host IP Details

    Posted Dec 19, 2014 10:17 AM

    Run this command :

    esxcli network ip interface ipv4 get

    this will reslut only the on ESXi which we logeed in but i need multiple hosts like this, is there any way?



  • 4.  RE: Host IP Details
    Best Answer

    Posted Dec 19, 2014 05:47 PM

    Hi,

    Can you download VMware PowerCLI? (Powershell cmdlets for VMware).

    If you are using VMware 5.5 please see this link : https://my.vmware.com/group/vmware/details?downloadGroup=PCLI550&productId=352

    1. Launch PowerCLI and type - Connect-VIServer "yourvcenter"

    2. Run this : Get-VMHostNetworkAdapter -VMKernel -VMHost (get-cluster "YOUR CLUSTER NAME HERE"|get-vmhost) | select Name,VMhost,Mac,IP

    Let me know if this helps...



  • 5.  RE: Host IP Details

    Posted Dec 19, 2014 08:12 PM

    Well you can access this command in batches via my script Scripting Corner: Send Commands as a root via SSH to ESXi with permit root login disabled. | VMXP although powershell is much more suited for this task retrieving it straight from vCenter :smileyhappy:



  • 6.  RE: Host IP Details

    Posted Dec 15, 2014 06:29 PM

    Try RV Tools for reporting work.

    http://robware.net/