VMware Cloud Community
roopali1
Enthusiast
Enthusiast

get Intel NIC version on esxi server

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

Reply
0 Kudos
7 Replies
LucD
Leadership
Leadership

Does $esxcli.software.vib.list() actually show the Intel NIC and it's version?

 

 


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
roopali1
Enthusiast
Enthusiast

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.

Reply
0 Kudos
LucD
Leadership
Leadership

Did you check?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
roopali1
Enthusiast
Enthusiast

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

Reply
0 Kudos
LucD
Leadership
Leadership

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

Reply
0 Kudos
roopali1
Enthusiast
Enthusiast

yeah i tried the same way with both driver names, however not getting any data in output.

Reply
0 Kudos
LucD
Leadership
Leadership

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