Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-6164

Exceptions exposed on provisiond.log when the MAC address is empty

    XMLWordPrintable

    Details

      Description

      2013-09-29 20:06:41,756 WARN [DefaultUDPTransportMapping_172.28.152.116/0] PhysInterfaceTableTracker$PhysicalInterfaceRow: Cannot decode MAC address:
      java.lang.IllegalArgumentException: Cannot decode MAC address:
      at org.opennms.core.utils.InetAddressUtils.macAddressStringToBytes(InetAddressUtils.java:599)
      at org.opennms.core.utils.InetAddressUtils.normalizeMacAddress(InetAddressUtils.java:628)
      at org.opennms.netmgt.provision.service.PhysInterfaceTableTracker$PhysicalInterfaceRow.getPhysAddr(PhysInterfaceTableTracker.java:191)
      at org.opennms.netmgt.provision.service.PhysInterfaceTableTracker$PhysicalInterfaceRow.createInterfaceFromRow(PhysInterfaceTableTracker.java:208)
      at org.opennms.netmgt.provision.service.NodeScan$AgentScan$3.processPhysicalInterfaceRow(NodeScan.java:581)
      at org.opennms.netmgt.provision.service.PhysInterfaceTableTracker.rowCompleted(PhysInterfaceTableTracker.java:239)

      Based on the exception, it seems that SnmpValue.toDisplayString() returns an empty string (instead of null) if the IF-MIB::ifPhysAddress is not defined for a given interface.

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: