L2 discovery and relationships
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10 hours ago
Hello
We want to populate our ServiceNow instance with CMDB data. We are mainly interested in network equipment data and have therefore been experimenting with L2 discovery in our ServiceNow instance. So far our discovery setup retrieves a lot of the L2 data like switches, VLANs, ports, etc and that a lot of CIs are created. The discovery also creates a lot of relationships type Contains::Contained by and Uses::Used by typically between switch CIs and "port" CIs. But the discovery does not create any relationships of the type Connects to::Connected by between the switches. We can see that the Device Neighbors (discovery_device_neighbors table) is populated with data from LLDP, but no relationships are created. Is it possible to make the discovery create these relationships?
PS A side question is what are the differences between the relationship types Connects to::Connected by and Connected by::Connects and their usage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Look at the discovery logs for your CI in question, and notice the steps where the relationships are created. Use that logic, and create an extension section for the pattern(s) that uses logic similar to the OOTB pattern steps that configure the L2 relationships. Example below from Windows OS pattern.
You may also need to update the related CI types in the pattern to make sure discovery can create the relationship/update the corresponding record. Do this by accessing the pattern via the [sa_pattern] table and using the related list on the pattern record.
Hope this helps!