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

Port Sensors not correlated on IOS-XE

Details

    • Vendor Bug
    • Resolution: Fixed
    • Minor
    • None
    • Professional Edition
    • Discovery

    Description

      Sensors aren't linked to ports on IOS-XE devices. I'm guessing this is because of the way the physical entities are being reported by the device. On IOS the SFP is a child of the port container and the sensors children of the SFP. On IOS-XE the port is child of the transceiver along with the sensors. I attached some screen shots of of the inventory of two different devices that show this.

      Attachments

        1. ASR99K-sensors-debug.txt
          514 kB
        2. image-2017-11-30-20-25-33-874.png
          image-2017-11-30-20-25-33-874.png
          75 kB
        3. IOS.PNG
          IOS.PNG
          47 kB
        4. IOS-Port-Sensor.PNG
          IOS-Port-Sensor.PNG
          40 kB
        5. IOS-XE.PNG
          IOS-XE.PNG
          66 kB
        6. IOS-XE-Sensor.PNG
          IOS-XE-Sensor.PNG
          69 kB
        7. obs-2295-port-sensor-interface-mapping.txt
          110 kB
        8. r8964-ASR99K-sensors-debug.txt
          515 kB

        Activity

          [OBS-2295] Port Sensors not correlated on IOS-XE
          landy Mike Stupalov made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          timcooper Tim Cooper made changes -
          Attachment New: r8964-ASR99K-sensors-debug.txt [ 14511 ]
          timcooper Tim Cooper made changes -
          Attachment New: image-2017-11-30-20-25-33-874.png [ 14510 ]
          timcooper Tim Cooper made changes -
          Attachment New: ASR99K-sensors-debug.txt [ 14509 ]
          landy Mike Stupalov made changes -
          Issue Type Original: Bug [ 1 ] New: Vendor Bug [ 10000 ]
          Resolution New: Fixed [ 1 ]
          Status Original: Pending Response [ 10000 ] New: Resolved [ 5 ]
          ddenk Derek Denk made changes -
          Attachment New: IOS-XE-Sensor.PNG [ 14406 ]
          Attachment New: IOS-Port-Sensor.PNG [ 14407 ]
          ddenk Derek Denk made changes -
          Comment [ To elaborate a bit further, the driver for this was to ignore low light level alarms associated with ports that are shutdown. Right now if we have an SFP installed in a port that is shutdown and not connected to anything a low RX (and sometimes TX) alert is shown. When the sensors are linked to ports we can run the following queries to ignore those sensors associated with shutdown ports (and undo this if the port is enabled)... Ideally we'd like the discovery job to handle this and also add an event log entry, but that is probably worthy of it's own ticket/bug/issue tracker..

          Query to ignore sensors on shutdown ports:
          UPDATE sensors INNER JOIN ports ON sensors.measured_entity = ports.port_id
          SET sensor_ignore = 1 WHERE ports.ifAdminStatus = "down" AND sensors.sensor_ignore=0;

          Query to undo ignored sensors on enabled ports:
          UPDATE sensors INNER JOIN ports ON sensors.measured_entity = ports.port_id
          SET sensor_ignore = 0 WHERE ports.ifAdminStatus = "up" AND sensors.sensor_ignore=1;
          ]
          ddenk Derek Denk made changes -
          Attachment New: obs-2295-port-sensor-interface-mapping.txt [ 14405 ]
          landy Mike Stupalov made changes -
          Issue Type Original: Add device/os support [ 10002 ] New: Bug [ 1 ]
          Labels New: sensors
          Status Original: Open [ 1 ] New: Pending Response [ 10000 ]
          ddenk Derek Denk made changes -
          Attachment New: IOS-XE.PNG [ 13803 ]

          People

            landy Mike Stupalov
            ddenk Derek Denk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: