Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-2937

Huawei S5720 & S6720 optical values not correct TX/RX

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • Professional Edition
    • Discovery, Poller
    • None

    Description

      Optical Sensor TX / RX values are the same, tested with V11 and V10 of huawei.

      When i put on mw to db conversion TX disappears.

      V200R010 & V200R011

       

      Observium 19.2.9725

      Attachments

        1. debug_er013_nikhef.txt
          219 kB
        2. er013_discovery_logs_dBm.txt
          242 kB
        3. er013_poller_logs_dBm.txt
          393 kB
        4. huawei_observium.png
          huawei_observium.png
          13 kB

        Activity

          [OBS-2937] Huawei S5720 & S6720 optical values not correct TX/RX

          Yes! many many thanks for this quick service!

          It works now, limits are okay.

          bjedelijn Bernd Edelijn added a comment - Yes! many many thanks for this quick service! It works now, limits are okay.

          Try rediscover with latest revision.
          Should be fixed in r9766.

          landy Mike Stupalov added a comment - Try rediscover with latest revision. Should be fixed in r9766.

          Ohh, derp.. seems as value reported as W, but limits as dBm Ooo.

          landy Mike Stupalov added a comment - Ohh, derp.. seems as value reported as W, but limits as dBm Ooo.

          CMD[/usr/bin/snmpget -v2c -c *** -Pu -OQUs -m HUAWEI-ENTITY-EXTENT-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/huawei 'udp':'er013.nikhef.qonnected.net':'161' hwEntityOpticalVoltage.67469646 hwEntityOpticalBiasCurrent.67469646 hwEntityOpticalRxPower.67469646 hwEntityOpticalRxHighThreshold.67469646 hwEntityOpticalRxHighWarnThreshold.67469646 hwEntityOpticalRxLowThreshold.67469646 hwEntityOpticalRxLowWarnThreshold.67469646 hwEntityOpticalTxPower.67469646 hwEntityOpticalTxHighThreshold.67469646 hwEntityOpticalTxHighWarnThreshold.67469646 hwEntityOpticalTxLowThreshold.67469646 hwEntityOpticalTxLowWarnThreshold.67469646]
          
          CMD EXITCODE[0]
          CMD RUNTIME[0.3042s]
          STDOUT[
          hwEntityOpticalVoltage.67469646 = 3298
          hwEntityOpticalBiasCurrent.67469646 = 16136
          hwEntityOpticalRxPower.67469646 = 286
          hwEntityOpticalRxHighThreshold.67469646 = -100
          hwEntityOpticalRxHighWarnThreshold.67469646 = -1
          hwEntityOpticalRxLowThreshold.67469646 = -2200
          hwEntityOpticalRxLowWarnThreshold.67469646 = -1
          hwEntityOpticalTxPower.67469646 = 257
          hwEntityOpticalTxHighThreshold.67469646 = -200
          hwEntityOpticalTxHighWarnThreshold.67469646 = -1
          hwEntityOpticalTxLowThreshold.67469646 = -1000
          hwEntityOpticalTxLowWarnThreshold.67469646 = -1
          ]

          SQL[SELECT `attrib_value` FROM `entity_attribs` WHERE `entity_type` = 'sensor' AND `entity_id` = '2373' AND `attrib_type` = 'sensor_addition']
          SQL RUNTIME[0.00371385s]
          .DOM power sensor forced to dBm sensor.
          Converted DBM value: 0.000286 W -> -5.4363396687096 dBm
          Converted DBM value: -0.0001 W -> FALSE
          Converted DBM value: -0.0022 W -> FALSE
          Discover sensor: [class: dbm, device: er013.nikhef.qonnected.net, oid: .1.3.6.1.4.1.2011.5.25.31.1.1.3.1.8.67469646, index: 67469646, type: -, descr: XGigabitEthernet0/0/5 Rx Power, scale: 1.0E-6, limits: (, , , ), CURRENT: -5.4363396687096, 67469646,

          SQL[INSERT INTO `eventlog` (`device_id`,`entity_id`,`entity_type`,`timestamp`,`severity`,`message`) VALUES ('74','2374','sensor',NOW(),'6','Sensor updated: dbm - 67469646 XGigabitEthernet0/0/5 Rx Power')]
          SQL RUNTIME[0.00533390s]
          DOM power sensor forced to dBm sensor.
          Converted DBM value: 0.000257 W -> -5.9006687666871 dBm
          Converted DBM value: -0.0002 W -> FALSE
          Converted DBM value: -0.001 W -> FALSE
          Discover sensor: [class: dbm, device: er013.nikhef.qonnected.net, oid: .1.3.6.1.4.1.2011.5.25.31.1.1.3.1.9.67469646, index: 67469646, type: -, descr: XGigabitEthernet0/0/5 Tx Power, scale: 1.0E-6, limits: (, , , ), CURRENT: -5.9006687666871, 67469646,

          <er013.nikhef.qonnected.net>dis transceiver diagnosis interface XGigabitEthernet 0/0/5
          Port XGigabitEthernet0/0/5 transceiver diagnostic information:
          Parameter Current Low Alarm High Alarm
          Type Value Threshold Threshold Status
          ------------- --------- --------- ---------- --------
          TxPower(dBm) -5.87 -10.00 -2.00 normal
          RxPower(dBm) -5.44 -22.00 -1.00 normal
          Current(mA) 16.02 0.50 70.00 normal
          Temp.(▒▒C) 47.38 -5.00 85.00 normal
          Voltage(V) 3.30 3.00 3.60 normal

          bjedelijn Bernd Edelijn added a comment - CMD[/usr/bin/snmpget -v2c -c *** -Pu -OQUs -m HUAWEI-ENTITY-EXTENT-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp:/opt/observium/mibs/huawei 'udp':'er013.nikhef.qonnected.net':'161' hwEntityOpticalVoltage.67469646 hwEntityOpticalBiasCurrent.67469646 hwEntityOpticalRxPower.67469646 hwEntityOpticalRxHighThreshold.67469646 hwEntityOpticalRxHighWarnThreshold.67469646 hwEntityOpticalRxLowThreshold.67469646 hwEntityOpticalRxLowWarnThreshold.67469646 hwEntityOpticalTxPower.67469646 hwEntityOpticalTxHighThreshold.67469646 hwEntityOpticalTxHighWarnThreshold.67469646 hwEntityOpticalTxLowThreshold.67469646 hwEntityOpticalTxLowWarnThreshold.67469646 [0m]  CMD EXITCODE[0 [0m] CMD RUNTIME[0.3042s [0m]  STDOUT[ hwEntityOpticalVoltage.67469646 = 3298 hwEntityOpticalBiasCurrent.67469646 = 16136 hwEntityOpticalRxPower.67469646 = 286 hwEntityOpticalRxHighThreshold.67469646 = -100 hwEntityOpticalRxHighWarnThreshold.67469646 = -1 hwEntityOpticalRxLowThreshold.67469646 = -2200 hwEntityOpticalRxLowWarnThreshold.67469646 = -1 hwEntityOpticalTxPower.67469646 = 257 hwEntityOpticalTxHighThreshold.67469646 = -200 hwEntityOpticalTxHighWarnThreshold.67469646 = -1 hwEntityOpticalTxLowThreshold.67469646 = -1000 hwEntityOpticalTxLowWarnThreshold.67469646 = -1 ] SQL[SELECT `attrib_value` FROM `entity_attribs` WHERE `entity_type` = 'sensor' AND `entity_id` = '2373' AND `attrib_type` = 'sensor_addition' [0m]  SQL RUNTIME[0.00371385s [0m]  .DOM power sensor forced to dBm sensor. Converted DBM value: 0.000286 W -> -5.4363396687096 dBm Converted DBM value: -0.0001 W -> FALSE Converted DBM value: -0.0022 W -> FALSE Discover sensor: [class: dbm, device: er013.nikhef.qonnected.net, oid: .1.3.6.1.4.1.2011.5.25.31.1.1.3.1.8.67469646, index: 67469646, type: -, descr: XGigabitEthernet0/0/5 Rx Power, scale: 1.0E-6, limits: (, , , ), CURRENT: -5.4363396687096, 67469646, SQL[INSERT INTO `eventlog` (`device_id`,`entity_id`,`entity_type`,`timestamp`,`severity`,`message`) VALUES ('74','2374','sensor',NOW(),'6','Sensor updated: dbm - 67469646 XGigabitEthernet0/0/5 Rx Power') [0m]  SQL RUNTIME[0.00533390s [0m]  DOM power sensor forced to dBm sensor. Converted DBM value: 0.000257 W -> -5.9006687666871 dBm Converted DBM value: -0.0002 W -> FALSE Converted DBM value: -0.001 W -> FALSE Discover sensor: [class: dbm, device: er013.nikhef.qonnected.net, oid: .1.3.6.1.4.1.2011.5.25.31.1.1.3.1.9.67469646, index: 67469646, type: -, descr: XGigabitEthernet0/0/5 Tx Power, scale: 1.0E-6, limits: (, , , ), CURRENT: -5.9006687666871, 67469646, <er013.nikhef.qonnected.net>dis transceiver diagnosis interface XGigabitEthernet 0/0/5 Port XGigabitEthernet0/0/5 transceiver diagnostic information: Parameter Current Low Alarm High Alarm Type Value Threshold Threshold Status ------------- --------- --------- ---------- -------- TxPower(dBm) -5.87 -10.00 -2.00 normal RxPower(dBm) -5.44 -22.00 -1.00 normal Current(mA) 16.02 0.50 70.00 normal Temp.(▒▒C) 47.38 -5.00 85.00 normal Voltage(V) 3.30 3.00 3.60 normal

          Hello Mike,

          It seems that the optical limits are not correct read out from Huawei S5720/S6720.

          I suspect that they are read from SNMP?

           

          Gr,

           

          Bernd

          bjedelijn Bernd Edelijn added a comment - Hello Mike, It seems that the optical limits are not correct read out from Huawei S5720/S6720. I suspect that they are read from SNMP?   Gr,   Bernd

          Indeed, thanks for the super quick solving!

          bjedelijn Bernd Edelijn added a comment - Indeed, thanks for the super quick solving!

          Derp, this also fixed now in r9756.

          Tnx for debugging

          landy Mike Stupalov added a comment - Derp, this also fixed now in r9756. Tnx for debugging

          see attachments.

          bjedelijn Bernd Edelijn added a comment - see attachments.

          please attach this debug: ./discovery.php -d -m ports,sensors -h er013.nikhef.**
          with enabled "Convert Port DOM power sensors to dBm"!

          landy Mike Stupalov added a comment - please attach this debug: ./discovery.php -d -m ports,sensors -h er013.nikhef.** with enabled "Convert Port DOM power sensors to dBm"!

          Helllo Mike,

           

          I did following, disabled "Convert Port DOM power sensors to dBm".

          Patch observium with:

          svn update

          ./discovery -u

          ./discovery.php -d -m ports,sensors -h er013.nikhef.****

          ./poller.php -h er013.nikhef.****

          Then  RX and TX values are ok, but in mW instead of dBm.

           

          Then i reenabled "Convert Port DOM power sensors to dBm".

          and did:

          ./discovery.php -d -m ports,sensors -h er013.nikhef.****

          ./poller.php -h er013.nikhef.****

          After that only TX is listed and in dBm. RX is removed.

           

          I Hope you understand me now.

           

           

           

          bjedelijn Bernd Edelijn added a comment - Helllo Mike,   I did following, disabled " Convert Port DOM power sensors to dBm ". Patch observium with: svn update ./discovery -u ./discovery.php -d -m ports,sensors -h er013.nikhef.**** ./poller.php -h er013.nikhef.**** Then  RX and TX values are ok, but in mW instead of dBm.   Then i reenabled " Convert Port DOM power sensors to dBm ". and did: ./discovery.php -d -m ports,sensors -h er013.nikhef.**** ./poller.php -h er013.nikhef.**** After that only TX is listed and in dBm. RX is removed.   I Hope you understand me now.      

          People

            landy Mike Stupalov
            bjedelijn Bernd Edelijn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: