This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Report CDP Neighbors

Hi there,

I'm trying to create a report to list CDP neighbors for our every Cisco nodes.

I'm able to retrieve the Node ID, the Local Interface, the Remote Node, the remote Interface and the IP address of the remote node.

SELECT cps.NodeID AS [Node], cps.Status AS [Local Interface], cdp.IPAddress AS [IP Address], cdp.DeviceId AS [Neighbor], cdp.DevicePort AS [Remote Interface]

FROM Orion.NodeCdpEntry cdp

INNER JOIN Orion.NPM.CustomPollerStatusOnNodeTabular cps

ON cdp.NodeID = cps.NodeID

WHERE cdp.IfIndex LIKE cps.RowID AND cdp.NodeID = ${NodeID}

1.png

Now I would like to have the name of the Local Node instead of the Local Node ID, but I'm struggling with the SWQL query.

Any idea on how to display the local Node name?

Thanks in advance!

Regards,

Sylvain.