Network Management

SQL Query to trace unassigned nodes to any groups

This article provides the SQL query to quickly find nodes that do not belong to any groups.

First published date

11/6/2018 11:09 PM

Last published date

4/8/2020 12:18 PM

Overview

This article discusses about a custom SQL query wherein it will quickly find nodes that do not belong to any groups. 

Product section

Orion Platform

Resolution

Run the following SQL query against the Orion database:

select Caption,IP_Address from nodes where not Caption in(SELECT distinct[FullName] FROM [ContainerMemberSnapshots] where [EntityDisplayName] = 'Node')

-- Scripts are not supported under any SolarWinds support program or service.
-- Scripts are provided AS IS without warranty of any kind. SolarWinds further
-- disclaims all warranties including, without limitation, any implied warranties
-- of merchantability or of fitness for a particular purpose. The risk arising
-- out of the use or performance of the scripts and documentation stays with you.
-- In no event shall SolarWinds or anyone else involved in the creation,
-- production, or delivery of the scripts be liable for any damages whatsoever
-- (including, without limitation, damages for loss of business profits, business
-- interruption, loss of business information, or other pecuniary loss) arising
-- out of the use of or inability to use the scripts or documentation.