Hi @VivekSattanatha 

The KB article does not explain IP switch -- > Ip router  relationship debug 😞.

Debugging procedure

  • Set the ’sa.discolog.sys_log’ system property to true.
  • Run the following script in scripts-background: ​
    • var npm = new SNC.NetworkPathManager();
    • npm.createPhysicalConnections(ciId);
  • In case of layer 2 connection between a server and switch, the ciId should be the sys id of the server.​
  • In case of layer 2 connection between 2 switches, the ciId should be the sys id of one of the switches.
  • Look at the debug messages to understand why the connection was not created.
  • Note: The actual relation in the CMDB is created between the ports of the devices or between port of one device directly to another device (in case the target port was not found).
  • The algorithm is not creating a direct relation between the server and the network device or between 2 network devices.

 

Also servicenow doc does not provide relation ship between IP Switch ---> IP Router.

 

How Layer 2 Discovery works

When device discovery is complete, the system runs the Service Discovery - Device Complete business rule on the Device [discovery_device_history] table. This business rule uses several strategies, together with information from various tables to create Connects to:Connected by relationships in the CMDB. Relationships can be created between:
  • A server and a switch
  • Two switches
  • A device and the port of another device
  • The ports of two devices