Hi all,
can someone pls help with the powershell syntax to get the Intel nic version on esxi server.
Below is for Dell and its working however same way its not working for Intel NIC though I changed the driver name
-------------------------
$dellnic = $esxcli.software.vib.list() | where {$_.name -eq "i40en"}
@{N="Dell NIC Version";E={if($dellnic){$dellnic.version}else{n/a}}}
Does $esxcli.software.vib.list() actually show the Intel NIC and it's version?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
not sure, but the syntax mentioned for dell is working fine and returns nic version like - 1.8.1.9-2vmw.670.3.73.14320388.
Did you check?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
yeah its working from ssh shell
esxcli software vib list | grep gb
igbn 1.4.11.2-1vmw.703.0.20.19193900 VMW VMwareCertified 2022-03-17
ixgben 1.7.1.35-1vmw.703.0.20.19193900 VMW VMwareCertified 2022-03-17
i need to get this infor from powershell
Did you try like this?
$intelnic = $esxcli.software.vib.list() | where {$_.name -eq "igbn"}
@{N="Intel NIC Version";E={if($intelnic){$intelnic.version}else{n/a}}}
or with the other name that was returned?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
yeah i tried the same way with both driver names, however not getting any data in output.
What does this return?
$esxcli.software.vib.list() | where {$_.name -match "igbn|ixgben"} |
Format-Custom -Depth 1
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference