Junos OS

last person joined: 22 hours ago 

Ask questions and share experiences about Junos OS.
  • 1.  SNMP DOM Alarm Trap Interpretation

    Posted 02-27-2018 10:51

    I have a JunOS v15.1 EX4200 that I have setup with SNMP traps.  One of the traps I have received is for DOM alarms.  The text I get returned is as follows: "Notification of a recently set Dom alarm. ifDescr=ge-1/1/0 DomLastAlarms=00 00 00 DomCurrentAlarms=08 00 00 DomCurrentAlarmDate=07 E2 02 1B 0A 20 11 00 2D 05 00".  I have found via the MIB files that the format of the alarms variable is based on the JnxDomAlarmId type, which is as follows:

     

    JnxDomAlarmId ::= TEXTUAL-CONVENTION
        STATUS     current
        DESCRIPTION
                "Identifies specific DOM alarms that may exist on an
                 interface."
        SYNTAX     BITS {
            domRxLossSignalAlarm(0),               -- Input Loss of signal
            domRxCDRLossLockAlarm(1),              -- Input Loss of Lock
            domRxNotReadyAlarm(2),                 -- Input rx path
            domRxLaserPowerHighAlarm(3),           -- Input laser power
            domRxLaserPowerLowAlarm(4),            -- Input laser power
            domTxLaserBiasCurrentHighAlarm(5),     -- Output laser bias current
            domTxLaserBiasCurrentLowAlarm(6),      -- Output laser bias current
            domTxLaserOutputPowerHighAlarm(7),     -- Output laser power
            domTxLaserOutputPowerLowAlarm(8),      -- Output laser power
            domTxDataNotReadyAlarm(9),             -- Output A/D data not ready
            domTxNotReadyAlarm(10),                -- Output tx path
            domTxLaserFaultAlarm(11),              -- Output laser safety
            domTxCDRLossLockAlarm(12),             -- Output CDR
            domModuleTemperatureHighAlarm(13),     -- Module temperature
            domModuleTemperatureLowAlarm(14),      -- Module temperature
            domModuleNotReadyAlarm(15),            -- Module MOD_NR
            domModulePowerDownAlarm(16),           -- Module P_DOWN
            domLinkDownAlarm(17),                  -- Wire Unplugged or Down
            domModuleRemovedAlarm(18),             -- Module Unplugged or Down
            domModuleVoltageHighAlarm(19),         -- Module Voltage High
            domModuleVoltageLowAlarm(20)           -- Module Voltage Low
        }

     

    My question - how do I interpret "DomCurrentAlarms=08 00 00" and get the correct alarm that it represents, which I think is "Laser rx power low alarm (4)".  I have tried a few differnet ways, but I never seem to get the result that "show interfaces diagnostics optics ge-1/1/0" gives:

     

    show interfaces diagnostics optics ge-1/1/0
    Physical interface: ge-1/1/0
        Laser bias current                        :  5.416 mA
        Laser output power                        :  0.2800 mW / -5.53 dBm
        Module temperature                        :  27 degrees C / 81 degrees F
        Module voltage                            :  3.2250 V
        Receiver signal average optical power     :  0.0005 mW / -33.01 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 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   :  17.000 mA
        Laser bias current low alarm threshold    :  1.000 mA
        Laser bias current high warning threshold :  14.000 mA
        Laser bias current low warning threshold  :  2.000 mA
        Laser output power high alarm threshold   :  0.6310 mW / -2.00 dBm
        Laser output power low alarm threshold    :  0.0670 mW / -11.74 dBm
        Laser output power high warning threshold :  0.6310 mW / -2.00 dBm
        Laser output power low warning threshold  :  0.0790 mW / -11.02 dBm
        Module temperature high alarm threshold   :  95 degrees C / 203 degrees F
        Module temperature low alarm threshold    :  -25 degrees C / -13 degrees F
        Module temperature high warning threshold :  90 degrees C / 194 degrees F
        Module temperature low warning threshold  :  -20 degrees C / -4 degrees F
        Module voltage high alarm threshold       :  3.900 V
        Module voltage low alarm threshold        :  2.700 V
        Module voltage high warning threshold     :  3.700 V
        Module voltage low warning threshold      :  2.900 V
        Laser rx power high alarm threshold       :  1.2590 mW / 1.00 dBm
        Laser rx power low alarm threshold        :  0.0100 mW / -20.00 dBm
        Laser rx power high warning threshold     :  0.7940 mW / -1.00 dBm
        Laser rx power low warning threshold      :  0.0158 mW / -18.01 dBm

    Thanks.

     



  • 2.  RE: SNMP DOM Alarm Trap Interpretation
    Best Answer

    Posted 03-05-2018 19:46

    Hi,

    As you already figured out for jnxDomCurrentAlarms which is part of JUNIPER-DOM-MIB, the syntax is JnxDomAlarmId

        jnxDomCurrentAlarms OBJECT-TYPE
            SYNTAX      JnxDomAlarmId                                    <<<<
            MAX-ACCESS  read-only
            STATUS      current
            DESCRIPTION
                    "This object identifies all the active DOM alarms
                     on a SFF physical interface on this router."
            ::= { jnxDomCurrentEntry 1 }
            

    JnxDomAlarmId is syntax bits, there are 22 IDs which are represented in 3 octets starting from left most significant bit.

    For example:

    00000000 00000000 00000000

    If the left most bit is set to 1, the domRxLossSignalAlarm(0) is set, similarly if we convert 08 00 00 into binary it will be as follows:

    00001000 00000000 00000000

    If we see above binary result, 5th bit is set to 1, which is corresponding to domRxLaserPowerLowAlarm(4)

     

    Thanks

     



  • 3.  RE: SNMP DOM Alarm Trap Interpretation

    Posted 03-12-2018 07:19

    Thanks!  This is exactly what I was looking for!