Hi ,
I want to find a command to retrieve details of a NIC card.
I tried
esxcli network nic list
but it does not show some details like speed , version and firmware. Also it is difficult to understand the model and vendor.
Is there any other CLI?
Thank you
Dee
Hey
esxcli network nic get -n vmnic. #Command will give you firmware details and driver details
esxcli network nic stats get #Command will you give current statstics of the specified vmnic
Hi,
Thanks for your response.
This is what I get when I run
esxcli network nic list
Name PCI Device Driver Admin Link Speed Duplex MAC Address MTU Description
status status
------ ------------ ------ ------------ ----------- ----- ------ ----------------- ---- ------------------------------------------------------------------------------------
vmnic0 0000:01:00.0 ntg3 Up Up 1000 Full c8:1f:66:e9:4b:xx 1500 Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet
vmnic1 0000:01:00.1 ntg3 Up Down 0 Half c8:1f:66:e9:4b:xx 1500 Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet
vmnic2 0000:02:00.0 ntg3 Up Down 0 Half c8:1f:66:e9:4b:xx 1500 Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet
vmnic3 0000:02:00.1 ntg3 Up Down 0 Half c8:1f:66:e9:4b:xx 1500 Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet
vmnic4 0000:04:00.0 bnx2 Up Down 0 Half e8:39:35:b2:cc:xx 1500 QLogic Corporation NC382T PCI Express Dual Port Multifunction Gigabit Server Adapter
vmnic5 0000:04:00.1 bnx2 Up Down 0 Half e8:39:35:b2:cc:xx 1500 QLogic Corporation NC382T PCI Express Dual Port Multifunction Gigabit Server Adapter
---------------------------
This output only shows the speed of first NIC 1000mb/s right? How can I know the speed of other NICs. Why is it showing the speed as 0 for vmnic 1 to vmnic5. On linux if I run lshw to detect these nics, I see the speed of all nics as 1Gbit/s
Thank you
Dee
That shows Link Status down .
Check https://kb.vmware.com/s/article/2006074 and get the Link Status up
To do so, SSH to the pertinent host and run the esxcli network nic list command. Here we can see a record of devices and general information. Now that we have a list of the installed NICs, we can pull detailed configuration information. Run the esxcli network nic get command specifying the name of the NIC necessary.
Hi Ajay,
Thanks for the reply. So I'll see the speed if the link status is up right?
I have another question.
In the following output that I get from esxcli network nic list, How do I identify which NICs are on motherboard and which ones are in PCI slots? I know that in this particular case first four are on the motherboard and last 2 are in PCI slot. But how do I know that from the output of this command. Or is there another CLI for that.
Thanks
Dee
Name PCI Device Driver Admin Link Speed Duplex MAC Address MTU Description
status status
------ ------------ ------ ------------ ----------- ----- ------ ----------------- ---- ------------------------------------------------------------------------------------
vmnic0 0000:01:00.0 ntg3 Up Up 1000 Full c8:1f:66:e9:4b:xx 1500 Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet
vmnic1 0000:01:00.1 ntg3 Up Down 0 Half c8:1f:66:e9:4b:xx 1500 Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet
vmnic2 0000:02:00.0 ntg3 Up Down 0 Half c8:1f:66:e9:4b:xx 1500 Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet
vmnic3 0000:02:00.1 ntg3 Up Down 0 Half c8:1f:66:e9:4b:xx 1500 Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet
vmnic4 0000:04:00.0 bnx2 Up Down 0 Half e8:39:35:b2:cc:xx 1500 QLogic Corporation NC382T PCI Express Dual Port Multifunction Gigabit Server Adapter
vmnic5 0000:04:00.1 bnx2 Up Down 0 Half e8:39:35:b2:cc:xx 1500 QLogic Corporation NC382T PCI Express Dual Port Multifunction Gigabit Server Adapter
---------------------------