Juniper SNMP OIDs DDM для оптического сигнала трансиверов

Приведу пример получения оптического сигнала по SNMP с оптических трансиверов подключенных в Juniper устройства.

Для примера возьму QFX5100 и MX204, сначала командой посмотрим оптический сигнал на трансивере и прочую информацию (в порт et-0/0/0 у меня подключен трансивер 40G, который использует 2 оптических волокна и 4 линии на разной длине волн):

show interfaces diagnostics optics et-0/0/0
show interfaces diagnostics optics et-0/0/0 | match "Laser receiver power"
...
  Lane 0
    Laser bias current                        :  39.166 mA
    Laser output power                        :  1.423 mW / 1.53 dBm
    Laser receiver power                      :  0.662 mW / -1.79 dBm
  Lane 1
    Laser bias current                        :  33.344 mA
    Laser output power                        :  1.439 mW / 1.58 dBm
    Laser receiver power                      :  0.598 mW / -2.23 dBm
  Lane 2
    Laser bias current                        :  33.071 mA
    Laser output power                        :  1.256 mW / 0.99 dBm
    Laser receiver power                      :  0.550 mW / -2.59 dBm
  Lane 3
    Laser bias current                        :  35.768 mA
    Laser output power                        :  1.328 mW / 1.23 dBm
    Laser receiver power                      :  0.663 mW / -1.78 dBm

Полный вывод команды:

show interfaces diagnostics optics et-0/0/0
Physical interface: et-0/0/0
    Module temperature                        :  24 degrees C / 74 degrees F
    Module voltage                            :  3.2650 V
    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
    Module temperature high alarm threshold   :  78 degrees C / 172 degrees F
    Module temperature low alarm threshold    :  -5 degrees C / 23 degrees F
    Module temperature high warning threshold :  75 degrees C / 167 degrees F
    Module temperature low warning threshold  :  0 degrees C / 32 degrees F
    Module voltage high alarm threshold       :  3.6300 V
    Module voltage low alarm threshold        :  2.9700 V
    Module voltage high warning threshold     :  3.4640 V
    Module voltage low warning threshold      :  3.0990 V
    Laser bias current high alarm threshold   :  105.000 mA
    Laser bias current low alarm threshold    :  8.000 mA
    Laser bias current high warning threshold :  105.000 mA
    Laser bias current low warning threshold  :  10.000 mA
    Laser output power high alarm threshold   :  3.3884 mW / 5.30 dBm
    Laser output power low alarm threshold    :  0.0794 mW / -11.00 dBm
    Laser output power high warning threshold :  1.9953 mW / 3.00 dBm
    Laser output power low warning threshold  :  0.1995 mW / -7.00 dBm
    Laser rx power high alarm threshold       :  2.1380 mW / 3.30 dBm
    Laser rx power low alarm threshold        :  0.0170 mW / -17.70 dBm
    Laser rx power high warning threshold     :  1.6982 mW / 2.30 dBm
    Laser rx power low warning threshold      :  0.0427 mW / -13.70 dBm
  Lane 0
    Laser bias current                        :  38.891 mA
    Laser output power                        :  1.406 mW / 1.48 dBm
    Laser receiver power                      :  0.666 mW / -1.76 dBm
    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 receiver power high alarm           :  Off
    Laser receiver power low alarm            :  Off
    Laser receiver power high warning         :  Off
    Laser receiver power low warning          :  Off
    Tx loss of signal functionality alarm     :  Off
    Rx loss of signal alarm                   :  Off
    Tx laser disabled alarm                   :  Off
  Lane 1
    Laser bias current                        :  33.344 mA
    Laser output power                        :  1.443 mW / 1.59 dBm
    Laser receiver power                      :  0.599 mW / -2.23 dBm
    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 receiver power high alarm           :  Off
    Laser receiver power low alarm            :  Off
    Laser receiver power high warning         :  Off
    Laser receiver power low warning          :  Off
    Tx loss of signal functionality alarm     :  Off
    Rx loss of signal alarm                   :  Off
    Tx laser disabled alarm                   :  Off
  Lane 2
    Laser bias current                        :  33.206 mA
    Laser output power                        :  1.270 mW / 1.04 dBm
    Laser receiver power                      :  0.556 mW / -2.55 dBm
    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 receiver power high alarm           :  Off
    Laser receiver power low alarm            :  Off
    Laser receiver power high warning         :  Off
    Laser receiver power low warning          :  Off
    Tx loss of signal functionality alarm     :  Off
    Rx loss of signal alarm                   :  Off
    Tx laser disabled alarm                   :  Off
  Lane 3
    Laser bias current                        :  35.633 mA
    Laser output power                        :  1.335 mW / 1.25 dBm
    Laser receiver power                      :  0.669 mW / -1.74 dBm
    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 receiver power high alarm           :  Off
    Laser receiver power low alarm            :  Off
    Laser receiver power high warning         :  Off
    Laser receiver power low warning          :  Off
    Tx loss of signal functionality alarm     :  Off
    Rx loss of signal alarm                   :  Off
    Tx laser disabled alarm                   :  Off

Заранее посмотрим индексы интерфейсов:

snmpwalk -v2c -c ixnfo.com 10.0.150.2 ifDescr
...
IF-MIB::ifDescr.6 = STRING: lo0
IF-MIB::ifDescr.516 = STRING: irb.0
IF-MIB::ifDescr.517 = STRING: et-0/0/0

Как видим et-0/0/0 имеет индекс 517, теперь получим общую информацию по следующему SNMP OID:

1.3.6.1.4.1.2636.3.60.1

У меня отобразилась информация (результат нужно умножить на 0.01):

RX:
1.3.6.1.4.1.2636.3.60.1.2.1.1.6.517.0 = INTEGER: -178
1.3.6.1.4.1.2636.3.60.1.2.1.1.6.517.1 = INTEGER: -223
1.3.6.1.4.1.2636.3.60.1.2.1.1.6.517.2 = INTEGER: -255
1.3.6.1.4.1.2636.3.60.1.2.1.1.6.517.3 = INTEGER: -179
TX:
1.3.6.1.4.1.2636.3.60.1.2.1.1.8.517.0 = INTEGER: 159
1.3.6.1.4.1.2636.3.60.1.2.1.1.8.517.1 = INTEGER: 160
1.3.6.1.4.1.2636.3.60.1.2.1.1.8.517.2 = INTEGER: 99
1.3.6.1.4.1.2636.3.60.1.2.1.1.8.517.3 = INTEGER: 122
Bias current:
1.3.6.1.4.1.2636.3.60.1.2.1.1.7.517.0 = INTEGER: 39166
1.3.6.1.4.1.2636.3.60.1.2.1.1.7.517.1 = INTEGER: 33344
1.3.6.1.4.1.2636.3.60.1.2.1.1.7.517.2 = INTEGER: 32937
1.3.6.1.4.1.2636.3.60.1.2.1.1.7.517.3 = INTEGER: 35500

Температура трансивера (°C):

1.3.6.1.4.1.2636.3.60.1.1.1.1.8.517 = INTEGER: 23

1.3.6.1.4.1.2636.3.60.1.2.1.1.9.517.0 = INTEGER: 23
1.3.6.1.4.1.2636.3.60.1.2.1.1.9.517.1 = INTEGER: 23
1.3.6.1.4.1.2636.3.60.1.2.1.1.9.517.2 = INTEGER: 23
1.3.6.1.4.1.2636.3.60.1.2.1.1.9.517.3 = INTEGER: 23

Напряжение (3.2650 V):

1.3.6.1.4.1.2636.3.60.1.1.1.1.25.517 = INTEGER: 3265

На примере SNMP OIDs которые я привел, можно написать в Zabbix автообнаружение, чтобы триггеры о низком оптическом сигнале и элементы данных для оптического сигнала и т.д. создавались автоматически при подключении в порты новых трансиверов.

Смотрите также мои статьи:
Juniper QSFP Temperature low warning set
Cisco Nexus SNMP OID для Transceiver
BDCOM OLT DDM SNMP OID

Оставьте комментарий

Добавить комментарий