Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

SWQL : NCM ConnectionProfiles table

$
0
0

Hi, the SQL statement below works in SQL Management studio. The objective is to retrieve the connection profile Name and build rules around it based on its name.

 

SELECT A.[NodeID]

      ,A.[IP_Address]

      ,A.[Caption]

      ,A.[DNS]

  ,B.EQUIPE_OPS

  ,C.ConnectionProfile

  ,D.Name

  FROM ((([SolarWindsOrion].[dbo].[NodesData] as A

  INNER JOIN SolarWindsOrion.dbo.NodesCustomProperties as B on B.NodeID = A.NodeID)

  INNER JOIN SolarwindsOrion.dbo.NCM_NodeProperties as C on C.CoreNodeID = A.NodeID)

  INNER JOIN SolarwindsOrion.dbo.NCM_ConnectionProfiles as D on D.ID = C.ConnectionProfile)

 

 

When I use the SQWL query api with the given statement as $query , (see code below) , I receive the error "Message" : "Source entity [NCM.ConnectionProfiles] not found in catalog",

 

my $query = sprintf(

"SELECT A.[NodeID]

        ,A.[IP_Address]

        ,A.[Caption]

        ,A.[DNS]

        ,B.EQUIPE_OPS

        ,C.ConnectionProfile

        ,D.Name

  FROM Orion.Nodes A

  INNER JOIN Orion.NodesCustomProperties B on B.NodeID = A.NodeID

  INNER JOIN NCM.NodeProperties C on C.CoreNodeID = A.NodeID

  INNER JOIN NCM.ConnectionProfiles D on D.ID = C.ConnectionProfile

");

 

What am I missing ?


Viewing all articles
Browse latest Browse all 2677

Trending Articles



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