EEPROM Cable Information Reader
EEPROM cable reading feature allows reading important information about the plugged cable, such as cable type, cable speed, vendor and more.
In order to read the cable EEPROM info, either:
Read the cable information by enabling the following sysctl parameter.
#> sysctl dev.mce.<X>.conf.eeprom_info=
1Output will be printed in dmesg.
Example:
#>sysctl dev.mce.
1.conf.eeprom_info=1dev.mce.1.conf.eeprom_info:0->0#>dmesg Offset Values ------ ------0x00000d0506000000000000000000000000000x0010000000000000000000000000000000000x0020000000000000000000000000000000000x0030000000000000000000000000000000000x0040000000000000000000000000000000000x0050000000000000000000000000000000000x0060000000000000000000000000010004000x0070000000000000000000000000000000000x00800d0023880000000000000000ff0000000x0090000001a0 4d656c 6c616e 6f78202020200x00a0202020201f0002c9 4d4350313630302d0x00b04530304120202020413202030407003f0x00c00b0000004d54313532315653303634380x00d03420202031353035323620200000675e0x00e0313238383535323338443333000000000x00f000000000000000000000000000300000OR
Use ifconfig:
#>ifconfig -v mce<X> #>ifconfig -vv mce<X> #>ifconfig -vvv mce<X>
Example:
#> ifconfig -vvv mce1 plugged: QSFP+ 40GBASE-CR4 (No separate connector) vendor: Mellanox PN: MCP1600-E00A SN: MT1521VS06484 DATE:
2015-05-26compliance level: SFF-8636rev <=1.5nominal bitrate:25750Mbps SFF8436 DUMP (0xA0128..255range): 0D0023880000000000000000FF000000000001A0 4D656C 6C616E 6F7820202020202020201F0002C9 4D4350313630302D4530304120202020413202030407003F 0B0000004D54313532315653303634383420202031353035323620200000675E3132383835353233384433330000000000000000000000000000000000300000SFF8436 DUMP (0xA00..81range): 0D050600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000