VMware Cloud Community
prakash9339
Enthusiast
Enthusiast
Jump to solution

Host IP Details

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

0 Kudos
1 Solution

Accepted Solutions
bspagna89
Hot Shot
Hot Shot
Jump to solution

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...

New blog - https://virtualizeme.org/

View solution in original post

0 Kudos
5 Replies
bspagna89
Hot Shot
Hot Shot
Jump to solution

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.

New blog - https://virtualizeme.org/
0 Kudos
Sateesh_vCloud
Jump to solution

Try RV Tools for reporting work.

http://robware.net/

------------------------------------------------------------------------- Follow me @ www.vmwareguruz.com Please consider marking this answer "correct" or "helpful" if you found it useful T. Sateesh VCIX-NV, VCAP 5-DCA/DCD,VCP 6-NV,VCP 5 DCV/Cloud/DT, ZCP IBM India Pvt. Ltd
0 Kudos
prakash9339
Enthusiast
Enthusiast
Jump to solution

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?

0 Kudos
bspagna89
Hot Shot
Hot Shot
Jump to solution

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...

New blog - https://virtualizeme.org/
0 Kudos
Alistar
Expert
Expert
Jump to solution

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 Smiley Happy

Stop by my blog if you'd like 🙂 I dabble in vSphere troubleshooting, PowerCLI scripting and NetApp storage - and I share my journeys at http://vmxp.wordpress.com/
0 Kudos