Перейти к содержимому
Калькуляторы

Просьба к владельцам SFP карт (попробовать считать ddmi)

В относительно "свежих" версиях ethtool есть поддержка считывания и декодирования SFF(1, 2)

 

У кого 10G карты, посмотрите, пожалуйста, считывается ли у вас ddmi?(на sfp+ трансиверах)

 

Мой результат: на NetXen/QLogic NX3031 не считывается:

/opt/ethtool/sbin/ethtool --module-info eth5
Cannot get module EEPROM information: Operation not supported

 

Сборка ethtool чтобы попробовать(у кого нет опции --module-info):

wget https://www.kernel.org/pub/software/network/ethtool/ethtool-3.12.1.tar.gz
tar -zxf ethtool-3.12.1.tar.gz
cd ethtool-3.12.1
./configure --prefix=/opt/ethtool
make
make install

попробовать: /opt/ethtool/sbin/ethtool --module-info ethX

Изменено пользователем srg555

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Какое ядро? Поддержка в 3.5 появилась.

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Ethernet controller: Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Connection (rev 01)
micro10g ~ # uname -a
Linux micro10g.core 3.10.7-gentoo-r1 #2 SMP Wed Oct 9 23:16:43 YEKT 2013 i686 Intel(R) Xeon(R) CPU X3440 @ 2.53GHz GenuineIntel GNU/Linux
micro10g ~ # ethtool --version
ethtool version 3.8
micro10g ~ # ethtool --module-info eth0
Cannot get Module EEPROM data: Input/output error

====================================================

testnat ~ # uname -a
Linux testnat.unlim.core 3.10.17-gentoo #1 SMP Fri Nov 1 14:13:18 YEKT 2013 x86_64 Intel(R) Xeon(R) CPU X3440 @ 2.53GHz GenuineIntel GNU/Linux
testnat ~ # ethtool --version
ethtool version 3.8
testnat ~ # ethtool --module-info eth0
Identifier                                : 0x03 (SFP)
Extended identifier                       : 0x04 (GBIC/SFP defined by 2-wire interface ID)
Connector                                 : 0x07 (LC)
Transceiver codes                         : 0x20 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Transceiver type                          : 10G Ethernet: 10G Base-LR
Encoding                                  : 0x06 (64B/66B)
BR, Nominal                               : 10300MBd
Rate identifier                           : 0x00 (unspecified)
Length (SMF,km)                           : 10km
Length (SMF)                              : 10000m
Length (50um)                             : 0m
Length (62.5um)                           : 0m
Length (Copper)                           : 0m
Length (OM3)                              : 0m
Laser wavelength                          : 1310nm
Vendor name                               : OEM             
Vendor OUI                                : 00:00:00
Vendor PN                                 : CL-SFP+_10      
Vendor rev                                :     
Optical diagnostics support               : Yes
Laser bias current                        : 22.692 mA
Laser output power                        : 0.6028 mW / -2.20 dBm
Receiver signal average optical power     : 0.0001 mW / -40.00 dBm
Module temperature                        : 44.32 degrees C / 111.78 degrees F
Module voltage                            : 3.2873 V
Alarm/warning flags implemented           : Yes
Laser bias current high alarm             : Off
Laser bias current low alarm              : Off
Laser bias current high warning           : Off
Laser bias current low warning            : Off
Laser output power high alarm             : Off
Laser output power low alarm              : Off
Laser output power high warning           : Off
Laser output power low warning            : Off
Module temperature high alarm             : Off
Module temperature low alarm              : Off
Module temperature high warning           : Off
Module temperature low warning            : Off
Module voltage high alarm                 : Off
Module voltage low alarm                  : Off
Module voltage high warning               : Off
Module voltage low warning                : Off
Laser rx power high alarm                 : Off
Laser rx power low alarm                  : On
Laser rx power high warning               : Off
Laser rx power low warning                : On
Laser bias current high alarm threshold   : 90.000 mA
Laser bias current low alarm threshold    : 2.000 mA
Laser bias current high warning threshold : 80.000 mA
Laser bias current low warning threshold  : 3.000 mA
Laser output power high alarm threshold   : 1.5900 mW / 2.01 dBm
Laser output power low alarm threshold    : 0.1600 mW / -7.96 dBm
Laser output power high warning threshold : 1.2600 mW / 1.00 dBm
Laser output power low warning threshold  : 0.2000 mW / -6.99 dBm
Module temperature high alarm threshold   : 95.00 degrees C / 203.00 degrees F
Module temperature low alarm threshold    : -25.00 degrees C / -13.00 degrees F
Module temperature high warning threshold : 90.00 degrees C / 194.00 degrees F
Module temperature low warning threshold  : -20.00 degrees C / -4.00 degrees F
Module voltage high alarm threshold       : 3.8000 V
Module voltage low alarm threshold        : 2.8000 V
Module voltage high warning threshold     : 3.7000 V
Module voltage low warning threshold      : 2.9000 V
Laser rx power high alarm threshold       : 1.2600 mW / 1.00 dBm
Laser rx power low alarm threshold        : 0.0100 mW / -20.00 dBm
Laser rx power high warning threshold     : 1.0000 mW / 0.00 dBm
Laser rx power low warning threshold      : 0.0126 mW / -19.00 dBm
NAT ~ # ethtool --module-info eth1
Identifier                                : 0x03 (SFP)
Extended identifier                       : 0x04 (GBIC/SFP defined by 2-wire interface ID)
Connector                                 : 0x00 (unknown or unspecified)
Transceiver codes                         : 0x00 0x00 0x00 0x08 0x00 0x00 0x00 0x00
Transceiver type                          : Ethernet: 1000BASE-T
Encoding                                  : 0x01 (8B/10B)
BR, Nominal                               : 1300MBd
Rate identifier                           : 0x00 (unspecified)
Length (SMF,km)                           : 0km
Length (SMF)                              : 0m
Length (50um)                             : 0m
Length (62.5um)                           : 0m
Length (Copper)                           : 100m
Length (OM3)                              : 0m
Laser wavelength                          : 16652nm
Vendor name                               : OptiCin         
Vendor OUI                                : 00:90:2e
Vendor PN                                 : SFP-RJ45        
Vendor rev                                : A   

 

 

Подозреваю, что в первом случае не считалось, так как там вместо SFP используются "10g стэковые" кабеля d-link, а остальное железо идентично.

Если у вас "слишком левые sfp"то в них может попросту не быть ddm.

Изменено пользователем Tamahome

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Если у вас "слишком левые sfp"то в них может попросту не быть ddm.

Там читается не только ддм, но и еепром. Не читается ни то, ни другое. Скорее всего, ядро/драйвер не поддерживают.

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Какое ядро? Поддержка в 3.5 появилась.

 

Ядро >3.5

 

sfp-шка, да, левая, я даже не знаю есть ли на ней ddm, но ведь и информацию о производителе, SN, PN и т.п. тоже не читает

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Вот сейчас воткнул кабель (sfp+ 28AWG-01m) и не читается (хотя он рботает, и даже драйвер не ругается, что оно unsupported).

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

А кто подскажет, в snmp есть данные? какой mib?

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

В snmp в "стандартных" мибах нет. Делаете тривиальный скрипт типа такого:

# cat /opt/stat/ethtool_stat.sh 
#!/bin/bash

INTERFACE=$1
PARAM=$2
/sbin/ethtool -S $INTERFACE | grep -F "$PARAM" | grep -v -F '[' | awk '{print $2}'

 

Вместо -S у вас будет --module-info и grep/awk чуть посложнее, чтоб выцепить значение в dBm

 

Потом расширяете snmp-агент:

extend eth3_param	/opt/stat/ethtool_stat.sh	eth3 PARAM

 

и находите ваше значени в мибе:

NET-SNMP-EXTEND-MIB::nsExtendOutput1Line."eth3_param" (.1.3.6.1.4.1.8072.1.3.2.3.1.1.7.ASCII_INDEX_CODE)

Поделиться сообщением


Ссылка на сообщение
Поделиться на других сайтах

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

×   Вставлено в виде отформатированного текста.   Вставить в виде обычного текста

  Разрешено не более 75 смайлов.

×   Ваша ссылка была автоматически встроена.   Отобразить как ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставить изображения напрямую. Загрузите или вставьте изображения по ссылке.