Hi Luc,
can you suggest the way to find firmware of physical adapter
using below .looking for correct syntax
$esxcli.network.nic.get.Invoke(nicname = vmnic6)
You mean something like this?
ForEach-Object -Process {
$esxcli = Get-EsxCli -VMHost $esx -V2
$esxcli.network.nic.list.Invoke() |
ForEach-Object -Process {
$esxcli.network.nic.get.Invoke(@{nicname="$($_.Name)"}) |
Select @{N='VMHost';E={$esx.Name}},
@{N='NIC';E={$_.Name}},
@{N='FirmwareVersion';E={$_.DriverInfo.FirmwareVersion}}
}
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You mean something like this?
ForEach-Object -Process {
$esxcli = Get-EsxCli -VMHost $esx -V2
$esxcli.network.nic.list.Invoke() |
ForEach-Object -Process {
$esxcli.network.nic.get.Invoke(@{nicname="$($_.Name)"}) |
Select @{N='VMHost';E={$esx.Name}},
@{N='NIC';E={$_.Name}},
@{N='FirmwareVersion';E={$_.DriverInfo.FirmwareVersion}}
}
}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference