Quantcast
Channel: THWACK: Popular Discussions - Orion SDK
Viewing all articles
Browse latest Browse all 3719

How does one create a custom SDK query to show UDT device info and connections?

$
0
0

For starters, I have UDT, and it's working fine.  I can open it up and see which devices are attached to any given switch and switch port--that's great!

 

Next I want a pre-built SDK query to show which computers were attached to which ports on which switches, but I couldn't find one pre-built.

 

These separate canned queries seem to each contain parts of what I want--how do I combine them in SDK?

 

 

This one shows end devices, but not their switch ports:

SELECT IPAddress, HostName, VendorIcon, MACVendor, MACAddress, ConnectedTo, VLAN, NodeID, Description

FROM Orion.UDT.VLANDevice

 

This one’s interesting in that it shows device DNS entries and IP addresses:

SELECT FirstSeen, IPAddress, DNSName, ID, IPAddressID, DNSNameID, DetailsUrl

FROM Orion.UDT.DNSNameCurrent

 

I like this one for showing the switch/blade/port ID, and the MAC address of the device attached—it just needs the device name and switch name to be what we need, I think:

SELECT DetailsUrl, ConnectedTo, ConnectionType, ConnectionTypeName, HostName, IPAddress, MACAddress, MACVendor, MACVendorIcon, PortNumber, PortName, PortID, NodeID, VLAN

FROM Orion.UDT.AllEndpoints

 

Do you know how I can select items from the three queries above, and put them into a single query?

 

Or is there a pre-built SWQL query in SDK that already does what I want?

 

Yours,

 

Rick Schroeder


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>