Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

VaranAwesomenow
Mega Sage

Symptoms

When loading ip address CI data or any of the classes that have hosting / containment rules if payload doesnt contain required hosting / container CI information then you may run into missing dependency errors

Video

Share

Diagnosis

1. Navigate to configuration -> Identification / Reconciliation -> Identification simulation
2. select start with existing payload
3. provide the payload that is giving errors
sample payload : 
{
    "items": [
        {
            "className": "cmdb_ci_network_port",
            "values": {
                "discovery_source": "VARAN",
                "company": "37ce28a097af4990f90071e3a253af9b",
                "ip_address": "10.116.2.14",
                "correlation_id": "34967511",
                "serial_number": "varanserial34967511"
            },
            "sys_object_source_info": {
                "source_recency_timestamp": "2022-12-12 05:27:10",
                "source_feed": "VARANDataLoad LoadIpAddress 2.0",
                "source_name": "VARAN",
                "source_native_key": "34967511"
            },
            "internal_id": "b69ed21fa66b115029b0abfd6c5f7878",
            "settings": {
                "updateWithoutDowngrade": "true"
            },
            "sys_ire_info": {
                "ire_received_time": "2022-12-12 05:27:12"
            }
        },
        {
            "className": "cmdb_ci_ip_address",
            "values": {
                "operational_status": "1",
                "u_account": "37ce28a097af4990f90071e3a253af9b",
                "correlation_id": "10.116.2.14|34967511",
                "ip_address": "10.116.2.14",
                "u_service_id": "809099",
                "u_primary_source": "Vantive",
                "discovery_source": "VARAN",
                "owned_by_cmdb_ci": "c59141831ba74994ebf26286624bcb6c",
                "ip_version": "4",
                "install_status": "1",
                "location": "a6c469081ba3c590c4d72024604bcb47",
                "company": "37ce28a097af4990f90071e3a253af9b",
                "u_type": "Secondary"
            },
            "sys_object_source_info": {
                "source_recency_timestamp": "2022-12-12 05:27:10",
                "source_feed": "VARANDataLoad LoadIpAddress 2.0",
                "source_name": "VARAN",
                "source_native_key": "10.116.2.14|34967511"
            },
            "internal_id": "3a9ed21f136b11507eb13b8bee913978",
            "settings": {
                "updateWithoutDowngrade": "true"
            },
            "sys_ire_info": {
                "ire_received_time": "2022-12-12 05:27:12"
            }
        }
    ],
    "relations": [
        {
            "parent": 0,
            "child": 0,
            "parent_id": "b69ed21fa66b115029b0abfd6c5f7878",
            "child_id": "3a9ed21f136b11507eb13b8bee913978",
            "type": "Owns::Owned by",
            "sys_rel_source_info": {
                "source_feed": "VARANDataLoad LoadIpAddress 2.0",
                "source_name": "VARAN"
            }
        }
    ]
}

Solution

1. Navigate to configuration -> Identification / Reconciliation -> Metadata Editor
2. Open Hosting rules
3. Search for IP Address
4. Check for Hardware rule to understand how to setup a new rule
5. Depending on class to which IP address hosting rule has to be configured
    select configuration item type = class (for example esx server)
            Relationship type = Owns::Owned by
            Reverse relationship direction = true
Version history
Last update:
‎12-12-2022 08:47 PM
Updated by:
Contributors