Submit a ticketCall us

Announcing NPM 12.2
With NPM 12.2 you can monitor your Cisco ASA firewalls, to monitor VPN tunnels for basic visibility and troubleshooting tunnels. NPM 12.2 also uses the SolarWinds Orion Installer so you can easily install and upgrade one or more Orion Platform products simultaneously.
See new features and improvements.

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: 38 Votes: 3 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