Hi, looking for some SWQL assistance as a beginner.
I have a working report that I'm using to pull UDT data on phones connected to our network. The phones only have 3 OUIs so I'm matching that. This works great, but now I'd like to supliment the data I'm pulling with lldp data from another table.
I think I'm going to need to JOIN or UNION but I'm very new at this and haven't wrapped my head around it yet.
Here is the base (working) query.
SELECT
m.NodeAccessPoint AS [NodeName],
m.PortName AS [PortName],
m.PortDescription AS [PortDescription],
m.MacAddress AS [MACAddress],
m.IPAddress AS [IPAddess],
m.MACVendor AS [MACVendor],
m.OperationalStatus AS [Status],
m.LastSeen AS [LastSeen]
FROM ORION.UDT.MACCurrentInformation m
WHERE m.MACAddress like '64:16:7F:%'
OR m.MACAddress like '00:90:8F:%'
OR m.MACAddress like '00:04:F2:%'
GROUP BY m.NodeAccessPoint, m.PortName, m.PortDescription, m.MacAddress, m.IPAddress, m.MACVendor, m.OperationalStatus, m.LastSeen
I'd like to suppliment it with
Table ORION.UDT.LldpEntries
Field RemoteSystemName
And I think I should be able to match ORION.UDT.LldpEntries RemotePortId (which is an unformated mac-address value for the LLDP neighbor) with the mac addresses in ORION.UDT.MACCurrentInformation RawMAC.
Am I on the right track here? I've made some attempts but must be structuring it wrong because it keeps throwing an error.