The Solarwinds SDK has a pretty nice query called Cirrus.EntityPhysical. But it's missing a column to show the System Name or Node Name. Can you help me add that into the query, or point me to a different inventory report that would enable me to discover, for example, all Cisco 2960 switches AND their names?
The existing query I'm starting with looks like this:
SELECT NodeID, LastDiscovery, FirstDiscovery, Missing, Name, Description, Type, ContainedIn, EntityClass, Position, HardwareRevision, FirmwareRevision, SoftwareRevision, Serial, Manufacturer, Model, Alias, AssetID, FieldReplaceable
FROM Cirrus.EntityPhysical
Here's a snippet of the output:

You'll notice there IS a "Name" column, but it only provides the name the manufacturer has provided for the specific item, not the System Name we've put on the switch.
What's the right Query to use to include all this information PLUS the System Name?
The canned Cisco Inventory Report in NPM/NCM shows the System Names, but doesn't include stack information--I don't see how many switches are in stacks with this report. I'd be open to learning what could be done to copy & edit this report to include the stack information as alternative to modifying the SWQL query above.
I've built a custom report that does a pretty good job, but it's no SWQL solution. It looks like this:

Clicking on the Edit Table option:


Would you, instead of running a bunch of manual child conditions, use the Dynamic Query Builder? If so, what options would you use in it?
Yours,
Rick Schroeder