Through this script you will get the Nic details of require Esxi and export to CSV format.
VM report powerCLI script :

Open the PowerCLI icon (Run as Administrator) and you can execute commands manually, run scripts manually or automate your scripts with Task Scheduler (see below).
Del *.csv
$i=0
$hosts = "EsxList.txt"
$vhosts = Get-Content $hosts
$cnt = $vhosts.Count
$vhosts | ForEach-Object {
$vhost=$_
$outfile = ".\$($vhost).csv"
$i++
try{
Write-Progress -Activity "Scan In Progress " -Status ("Esx Host : {0}" -f $vhost) -PercentComplete ($i/$cnt*100) -Id 0
}
catch [System.DivideByZeroException]{}
. ".\getcdp.ps1" -VMHost $vhost | Export-Csv -NotypeInformation $outfile
}
Write-Host "Finalizing ......" -f blue
$swp = @() ; ls *.csv | %{ $tmp = Import-CSV $_ ; $swp += $tmp } ; $swp | Export-CSV .\Esxi-Nic-Info.csv -NoTypeInformation
Write-Host "Completed....Please Check the Generated : Esxi-Nic-Info.csv" -f cyan
Thanks hope you like it.
Rajiv Pandey.