Submit a ticketCall us

Looking to compare latest NPM features with previous versions of NPM?
The NPM new feature summary offers a comparison of new features and improvements offered with this release.

 

Home > Success Center > Server & Application Monitor (SAM) > Use SQL to show components and credentials applied to them

Use SQL to show components and credentials applied to them

Table of contents
Created by Riggs Clough, last modified by MindTouch on Jun 23, 2016

Views: 12 Votes: 2 Revisions: 4

Overview

This article describes how to show components and applications and credentials that are applied to them.

Environment

All SAM versions

Detail

  1. Navigate to the Orion Server.
  2. Open Database Manager.
  3. Open the Default Server.
  4. Right click  the SolarWindsOrion database.
    Note: This may be called NetPerfMon depending on when you originally installed the software.
  5. Select New Query.
  6. Run the following query:
    SELECT n.NodeID, n.Caption as Node, a.ID as ApplicationID, a.Name as [Application], c.ID as ComponentId, c.Name as Component,

    cts.Value as TemplateCredId, cs.[Value] as OverridenCredId, cred.Name as CredName
FROM APM_Component c
    INNER JOIN APM_Application a ON c.ApplicationID = a.ID
    INNER JOIN Nodes n ON a.NodeID = n.NodeID
    LEFT JOIN APM_ComponentSetting cs ON cs.ComponentID = c.ID AND cs.[Key] = '__CredentialSetId'
    LEFT JOIN APM_ComponentTemplate ct ON ct.ID = c.TemplateID
    LEFT JOIN APM_ComponentTemplateSetting cts ON cts.ComponentTemplateID = ct.ID AND cts.[Key] = '__CredentialSetId'
    LEFT JOIN [Credential] cred ON cred.ID = ISNULL(cs.Value, cts.Value)

 

This returns Node ID/Name, ApplicationID/Name, ComponentID/Name, and the credentials that are applied to it. A TemplateCredID of -3 means it is inherited from the template.

 

 

Last modified
03:43, 23 Jun 2016

Tags

Classifications

Public