I have ESXi 5.1 with many hosts in a cluster. I would like to generate a list of active NICs and thier IP addresses. Whats the easiest tool to generate such a list?
*I am not looking for the Virtual Hardware, only the Physical network hardware.
I have ESXi 5.1 with many hosts in a cluster. I would like to generate a list of active NICs and thier IP addresses. Whats the easiest tool to generate such a list?
*I am not looking for the Virtual Hardware, only the Physical network hardware.
I would use VMware vSphere PowerCLI.
It contains snapins of cmdlets based on Microsoft PowerShell for automating vSphere administration.
It can be downloaded from here https://my.vmware.com/web/vmware/details?downloadGroup=PCLI550&productId=353
Below a sample powershell script i wrote to retrieve infos you want.
Main points are :
Get-VMHost
with-Location
parameter to query a specific cluster (in case you have more than one and that you want to limit the query to just one, that is my case)Get-VMHostNetworkAdapter
with-Physical
parameter to get only physical NICs.Will produce this output :
And so on for each ESXi server in the cluster...
In my VMWare architecture i don'y have IP on physical NICs, but if you have ones they will be displayed.
Another usefull tool is RVTools. No need to write scripts. Install the tool, launch it and login, and you will have all infos, with filters and export possibilities.
Load up PowerCLI,
Connect to your Vcenter server.
Then run
and a list of all nics and thier IP address are listed.
To export to a CSV