Notifications

181 views

Description

When a device contains multiple network adapters that use the same MAC address and IP address, the identifier cannot discriminate each adapter and throws an error to avoid creating duplicate CIs in the CMDB. This error stops Discovery at the identification phase, without creating or updating any CIs.

Steps to Reproduce

Discover a device with multiple adapters with the same MAC address and IP address. For example, discover a software load balancer that uses the same mctap (macvtap) interface whose MAC mirrors one of the ethernet interfaces.

This results in an error similar to this:

 2019-04-26 15:48:55 : Error : identification_engine : DUPLICATE_LOOKUP_PAYLOAD Found duplicate Lookup items (7 and 12) in the payload index 0 using fields ip_address,mac_address

 

Workaround

    1. Navigate to Discovery Definition > CI Identification > Identifiers.

    2. Open the Hardware Rule record.

    3. In the Identifier Entries related list, add "name" to the criterion attributes on the Network Adapter [cmdb_ci_network_adapter] table.

    4. Save the record.

    5. Navigate to System Definition > Script Includes.

    6. Add "name" to the following line in the DiscoveryJSONIDSensor and DiscoveryIDSensor script includes:

      From: this.ciData.convertRelatedList(this, 'cmdb_ci_network_adapter', 'cmdb_ci', 'mac_address,ip_address');

      To: this.ciData.convertRelatedList(this, 'cmdb_ci_network_adapter', 'cmdb_ci', 'mac_address,name');

    7. Save the records.

 

 


Related Problem: PRB1342084

Seen In

There is no data to report.

Intended Fix Version

Orlando

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-07-18 12:08:43
Published:2019-07-18