3

Whats the command to find Nic cards serial numbers in linux ? I tried dmidecode options and lshow

may be I missed some thing

Jeff Mercado
  • 129,526
  • 32
  • 251
  • 272
allamiro
  • 31
  • 1
  • 1
  • 2

4 Answers4

1

I'm not sure about serial numbers, but lspci gives me the following information about my ethernet card:

04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
Bradley Kreider
  • 1,115
  • 10
  • 16
1

If you haven't mucked with your MAC address since bootup, it will be globally unique. See http://www.coffer.com/mac_info/locate-unix.html

NICs aren't required to have any other serial number than that, and if they do it might not be electronically readable.

Ben Voigt
  • 277,958
  • 43
  • 419
  • 720
1

Use "ifconfig" to get each ports globally unique MAC Addresses

ifconfig -a

For all adapters

Brad
  • 11,262
  • 8
  • 55
  • 74
0

Use lspci -v or lspci -v | grep Serial. The verbose option gives you more detail where you may find the serial number. If you have the vendor ID, it will be much easier to sift through the list to find the card that you are looking for by using for example one of these commands and grepping for 'Serial'.

  • For intel network cards, use lspci -d 8086: -v
  • For netronome network cards, use lspci -d 19ee: -v
  • For mellanox network cards, use lspci -d 15b3: -v
Annemie
  • 157
  • 1
  • 3
  • 13