I'm attempting to get the port and switch for some IP Addresses that are connected and in use. I've attempted a couple of different ways, but haven't had any luck. Can anyone provide some advice?
Raw non UDT based.
SELECT P.PortID , P.IfIndex , P.VlanId , P.PortType , p.Description , N.IPAddress , N.DisplayName FROM Orion.NodePortInterfaceMap AS P JOIN Orion.Nodes AS N ON N.NodeID = P.NodeId WHERE N.IPAddress = '#.#.#.#' -- with a real IP Address
UDT based.
SELECT N.DisplayName , N.IPAddress , P.PortDescription , P.PortIndex FROM Orion.Nodes N INNER JOIN Orion.UDT.Port AS P on P.NodeID=N.NodeID WHERE N.IPAddress = '#.#.#.#' -- with a real IP Address
Thanks in advance.