I have a remote server with ConnectX-3 card installed, and need to get card serial number. Google shown there are two ways - one is using lspci -vvv in Linux, other is physically looking at the card. Well, but this SNs doesn't look like eath other.
lspci -vvv gives something like this:
07:00.0 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3]
Capabilities:  Device Serial Number 00-02-c9-03-00-23-90-30
Mellanox User Manual says SN should look like this one and could be seen on sticker on card itself: S/N:MT0744X00012.
What is the serial number provided by lspci? Is there any way to know SN from sticker remotely avoiding server shutdown and disassembling?
We use this command to seek a HCA serial number which has already been installed on the host.
[root@R320-02 ~]# ibdev2netdev -v
mlx4_0 (MT4099 - MT1315X02691) CX353A - ConnectX-3 QSFP fw 2.11.500 port 1 (ACTIVE) ==> ib0 (Up)
I hope what I provided works for you.