18 Replies Latest reply on Jan 11, 2019 4:26 PM by tdanner

    Create WMI Node via API Request

    royaltigerfan

      When attempting to create a new WMI node I am running into an issue where the node is created but its not receiving a value for the WMICredential field in "Orion.NodeSettings" which I am attempting to update after the node is created with the output of the NodeID I am getting in the return sting. The host shows up under manage hosts, but when you click on edit node properties it returns the exact error below:

       

       

      So to run through the steps I am taking to get this issue:

      1. I pass a JSON string to create the new node: REST to '/SolarWinds/InformationService/v3/Json/Create/Orion.Nodes' with json string {"EntityType":"Orion.Nodes", "IPAddress":"'+ip+'", "IPAddressGUID":"nnnnnnnn-0000-0000-0000-000000000000", "Caption":"'+newHostname+'", "DynamicIP": false, "EngineID": 2, "Status": 0, "UnManaged": false, "Allow64BitCounters": false, "SysObjectID": "", "MachineType": "", "VendorIcon": "", "ObjectSubType": "WMI"}

       

      2. Grab the NodeID from the json API return and pass it to the "Node.NodeSettings"

       

      3. Update the "Node.NodeSettings" value for "WMICredntial": REST to '/SolarWinds/InformationService/v3/Json/swis://orion/Orion/Orion.NodeSettings'; with json sting '{"EntityType":"Orion.NodeSettings", "NodeID":"11006" "SettingName":"WMICredential", "SettingValue": 22}'

       

      4. Result is 200. Which would lead me to believe that field is being updated, but the error still exists.

       

      Could anyone point me in the right direction of updating that "WMICredential" value for the specific Node after its been created?

       

      I've looked at a few different threads but this one had some good info it and its where I got the idea of updating the node after its been created >> Create node with credential set

      This is the document that points out the WMICredential value is missing which is causing the issue >> Given key is not present in the dictionary - SolarWinds Worldwide, LLC. Help and Support

       

      Thanks!

        • Re: Create WMI Node via API Request
          tdanner

          Use the "save error report locally" button to get the stack trace for this error in a text file. Post it as a reply in this thread - that will help us narrow down the issue.

            • Re: Create WMI Node via API Request
              royaltigerfan

              Time: 10/23/2018 14:14:13.4662

              Server: Microsoft-IIS/8.5

              Pipeline: Integrated

              User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

              Error Instance: 27869a0896634b9d8e5a15632a369342

              User: lab\solarjoin

              URL: https://orion:443/Orion/Nodes/NodeProperties.aspx?Nodes=11052&GuidID=1c34ae2a-8c4c-4610-af79-0612a599173d&ReturnTo=aHR0cHM6Ly9zb2xhcndpbmRzLmdzYS5nb3YvT3Jpb24vTmV0UGVyZk1vbi9Ob2RlRGV0YWlscy5hc3B4P05ldE9iamVjdD1OOjExMDUy

              Referrer: https://orion:443/Orion/Nodes/NodeProperties.aspx?Nodes=11052&GuidID=1c34ae2a-8c4c-4610-af79-0612a599173d&ReturnTo=aHR0cHM6Ly9zb2xhcndpbmRzLmdzYS5nb3YvT3Jpb24vTmV0UGVyZk1vbi9Ob2RlRGV0YWlscy5hc3B4P05ldE9iamVjdD1OOjExMDUy

              Message: The given key was not present in the dictionary.

              ErrorSite: mscorlib.Dictionary`2.get_Item

              ErrorType: System.Collections.Generic.KeyNotFoundException

              Stack:

              at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

              at Orion_Nodes_Controls_WmiInfo.Initialize(IList`1 nodes, NodePropertyPluginExecutionMode mode, Dictionary`2 pluginState)

              at Orion_Nodes_Controls_PollingMethodSelector.Page_Load(Object sender, EventArgs e)

              at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)

              at System.Web.UI.Control.OnLoad(EventArgs e)

              at System.Web.UI.Control.LoadRecursive()

              at System.Web.UI.Control.LoadRecursive()

              at System.Web.UI.Control.LoadRecursive()

              at System.Web.UI.Control.LoadRecursive()

              at System.Web.UI.Control.LoadRecursive()

              at System.Web.UI.Control.LoadRecursive()

              at System.Web.UI.Control.LoadRecursive()

              at System.Web.UI.Control.LoadRecursive()

              at System.Web.UI.Control.LoadRecursive()

              at System.Web.UI.Control.LoadRecursive()

              at System.Web.UI.Control.LoadRecursive()

              at System.Web.UI.Control.LoadRecursive()

              at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

              Assemblies:

              Version           Assembly

              ----------------- -----------------------------------------------------

              7.0.3300.0,       ADODB

              3.1.0.39271,      Antlr3.Runtime

              8.2.20082.1000,   Infragistics2.WebUI.Shared.v8.2

              8.2.20082.1000,   Infragistics2.WebUI.UltraWebChart.v8.2

              8.2.20082.1000,   Infragistics2.WebUI.UltraWebGauge.v8.2

              8.2.20082.1000,   Infragistics2.WebUI.UltraWebNavigator.v8.2

              8.2.20082.1000,   Infragistics2.WebUI.WebDataInput.v8.2

              7.0.0.0,          Microsoft.Web.Administration

              4.0.0.0,          Accessibility

              12.1.20121.2038,  Infragistics4.Documents.Excel.v12.1

              4.0.0.0,          Microsoft.Build.Framework

              4.0.0.0,          Microsoft.Build.Utilities.v4.0

              4.0.0.0,          Microsoft.CSharp

              10.0.0.0,         Microsoft.JScript

              10.0.0.0,         Microsoft.VisualBasic

              10.0.0.0,         Microsoft.VisualBasic.Activities.Compiler

              4.0.0.0,          mscorlib

              4.0.0.0,          PresentationCore

              4.0.0.0,          PresentationFramework

              4.0.0.0,          ReachFramework

              4.0.0.0,          SMDiagnostics

              4.0.0.0,          System

              4.0.0.0,          System.Activities

              4.0.0.0,          System.ComponentModel.Composition

              4.0.0.0,          System.ComponentModel.DataAnnotations

              4.0.0.0,          System.Configuration

              4.0.0.0,          System.Configuration.Install

              4.0.0.0,          System.Core

              4.0.0.0,          System.Data

              4.0.0.0,          System.Data.DataSetExtensions

              4.0.0.0,          System.Data.Entity

              4.0.0.0,          System.Data.Linq

              4.0.0.0,          System.Data.Services.Client

              4.0.0.0,          System.Data.Services.Design

              4.0.0.0,          System.Data.SqlXml

              4.0.0.0,          System.Design

              4.0.0.0,          System.DirectoryServices

              4.0.0.0,          System.DirectoryServices.AccountManagement

              4.0.0.0,          System.DirectoryServices.Protocols

              4.0.0.0,          System.Drawing

              4.0.0.0,          System.Drawing.Design

              4.0.0.0,          System.Dynamic

              4.0.0.0,          System.EnterpriseServices

              4.0.0.0,          System.IdentityModel

              4.0.0.0,          System.IdentityModel.Selectors

              4.0.0.0,          System.Management

              4.0.0.0,          System.Net.Http

              4.0.0.0,          System.Net.Http.WebRequest

              4.0.0.0,          System.Numerics

              4.0.0.0,          System.Printing

              4.0.0.0,          System.Runtime

              4.0.0.0,          System.Runtime.Caching

              4.0.0.0,          System.Runtime.DurableInstancing

              4.0.0.0,          System.Runtime.Serialization

              4.0.0.0,          System.Security

              4.0.0.0,          System.ServiceModel

              4.0.0.0,          System.ServiceModel.Activation

              4.0.0.0,          System.ServiceModel.Activities

              4.0.0.0,          System.ServiceModel.Channels

              4.0.0.0,          System.ServiceModel.Internals

              4.0.0.0,          System.ServiceModel.Web

              4.0.0.0,          System.ServiceProcess

              4.0.0.0,          System.Transactions

              4.0.0.0,          System.Web

              4.0.0.0,          System.Web.ApplicationServices

              4.0.0.0,          System.Web.DynamicData

              4.0.0.0,          System.Web.Entity

              4.0.0.0,          System.Web.Extensions

              4.0.0.0,          System.Web.Extensions.Design

              4.0.0.0,          System.Web.Mobile

              4.0.0.0,          System.Web.RegularExpressions

              4.0.0.0,          System.Web.Services

              4.0.0.0,          System.Windows.Forms

              4.0.0.0,          System.Workflow.Activities

              4.0.0.0,          System.Workflow.ComponentModel

              4.0.0.0,          System.Workflow.Runtime

              4.0.0.0,          System.WorkflowServices

              4.0.0.0,          System.Xaml

              4.0.0.0,          System.Xaml.Hosting

              4.0.0.0,          System.Xml

              4.0.0.0,          System.Xml.Linq

              4.0.0.0,          WindowsBase

              4.1.50927.0,      AjaxControlToolkit

              4.2.0.0,          AntiXssLibrary

              3.5.0.2,          Antlr3.Runtime

              1.0.0.0,          AxInterop.C1Query80

              5.5.0.0,          AxTomSawyer

              3.3.0.0,          Castle.Core

              3.3.0.0,          Castle.Windsor

              16.0.55.0,        EO.Base

              16.0.55.0,        EO.Pdf

              16.0.55.0,        EO.WebBrowser

              16.0.55.0,        EO.WebEngine

              1.0.1.6,          FiftyOne.Foundation

              1.4.6.0,          HtmlAgilityPack

              4.2.0.0,          HtmlSanitizationLibrary

              0.86.0.527,       ICSharpCode.SharpZipLib

              1.0.0.0,          Interop.C1Query80

              1.0.0.0,          Interop.cdosys

              1.1.0.0,          Interop.SHDocVw

              2.0.0.0,          Interop.stdole

              1.2.10.0,         log4net

              3.0.0.0,          LumenWorks.Framework.IO

              1.1.0.0,          Microsoft.AspNet.SignalR.Client

              1.1.0.0,          Microsoft.AspNet.SignalR.Core

              1.1.0.0,          Microsoft.AspNet.SignalR.Owin

              1.1.0.0,          Microsoft.AspNet.SignalR.SystemWeb

              1.0.0.0,          Microsoft.CodeDom.Providers.DotNetCompilerPlatform

              1.0.0.0,          Microsoft.Owin.Host.SystemWeb

              5.1.1209.0,       Microsoft.Practices.TransientFaultHandling.Core

              2.1.505.0,        Microsoft.Practices.Unity

              1.0.0.0,          Microsoft.Web.Infrastructure

              3.0.0.0,          Microsoft.Web.Services3

              2.0.0.0,          MiniProfiler

              7.0.3300.0,       MSDATASRC

              4.2.2.3145,       NetflowConfig

              4.2.2.3145,       NetflowReporting

              4.2.2.3145,       NetflowWeb

              2017.1.5300.1825, NetPerfMonWeb

              6.0.0.0,          Newtonsoft.Json

              3.2.0.0,          Ninject

              9.0.5077.0,       nsoftware.IPWorksSSNMP

              2017.1.5300.1825, OrionWeb

              1.0.0.0,          Owin

              2.0.0.0,          SmartThreadPool

              1.1.0.1112,       SolarWinds.Administration.Contract

              1.7.0.259,        SolarWinds.AgentManagement.Common

              1.7.0.259,        SolarWinds.AgentManagement.Contract

              1.7.0.259,        SolarWinds.AgentManagement.Strings

              1.7.0.259,        SolarWinds.AgentManagement.Web

              1.0.0.21,         SolarWinds.ApiProxyFactory

              6.4.0.1020,       SolarWinds.APM.BlackBox.Exchg.Common

              6.4.0.1020,       SolarWinds.APM.BlackBox.Exchg.Strings

              6.4.0.1020,       SolarWinds.APM.BlackBox.Exchg.Web

              6.4.0.1020,       SolarWinds.APM.BlackBox.IIS.Actions

              6.4.0.1020,       SolarWinds.APM.BlackBox.IIS.Common

              6.4.0.1020,       SolarWinds.APM.BlackBox.IIS.Strings

              6.4.0.1020,       SolarWinds.APM.BlackBox.IIS.Web

              6.4.0.1020,       SolarWinds.APM.BlackBox.Sql.Common

              6.4.0.1020,       SolarWinds.APM.BlackBox.Sql.Strings

              6.4.0.1020,       SolarWinds.APM.BlackBox.Sql.Web

              6.4.0.1020,       SolarWinds.APM.BlackBox.Wstm.Common

              6.4.0.1020,       SolarWinds.APM.BlackBox.Wstm.Strings

              6.4.0.1020,       SolarWinds.APM.BlackBox.Wstm.Web

              6.4.0.1020,       SolarWinds.APM.Common

              6.4.0.1020,       SolarWinds.APM.ProbesMetadata

              6.4.0.1020,       SolarWinds.APM.Reporting

              6.4.0.1020,       SolarWinds.APM.Strings

              6.4.0.1020,       SolarWinds.APM.Transformation.Contract

              6.4.0.1020,       SolarWinds.APM.Web

              1.8.0.164,        SolarWinds.AssetInventory.Common

              1.8.0.164,        SolarWinds.AssetInventory.Reporting

              1.8.0.164,        SolarWinds.AssetInventory.Strings

              1.8.0.164,        SolarWinds.AssetInventory.Web

              1.1.0.4358,       SolarWinds.Batching.Contract

              7.6.0.1375,       SolarWinds.Cirrus.IS.Client

              7.6.0.1375,       SolarWinds.Cirrus.OrionLayer

              7.6.0.1375,       SolarWinds.Cirrus.Web

              1.0.0.804,        SolarWinds.CloudMonitoring.Common

              1.0.0.134,        SolarWinds.CloudMonitoring.Contract

              1.0.0.804,        SolarWinds.CloudMonitoring.Data

              1.0.0.134,        SolarWinds.CloudMonitoring.Shared

              1.0.0.804,        SolarWinds.CloudMonitoring.Strings

              1.0.0.804,        SolarWinds.CloudMonitoring.Swis

              1.0.0.804,        SolarWinds.CloudMonitoring.SystemAdapters

              1.0.0.804,        SolarWinds.CloudMonitoring.Web

              0.0.0.0,          SolarWinds.Common

              7.6.0.1375,       SolarWinds.ConfigManagement.Core

              2017.1.1.418,     SolarWinds.Data

              2017.1.1.418,     SolarWinds.Data.Entity

              4.0.0.67,         SolarWinds.DeviceStudio.Common

              4.0.0.20,         SolarWinds.DeviceStudio.CpuMemory.Strings

              4.0.0.67,         SolarWinds.DeviceStudio.Framework

              4.0.0.20,         SolarWinds.DeviceStudio.NodeDetails.Strings

              4.0.0.67,         SolarWinds.DeviceStudio.Strings

              4.0.0.67,         SolarWinds.DeviceStudio.Web

              11.0.0.471,       SolarWinds.DPA.Common

              11.0.0.471,       SolarWinds.DPA.Data

              11.0.0.471,       SolarWinds.DPA.InformationService

              11.0.0.471,       SolarWinds.DPA.ServiceLocator

              11.0.0.471,       SolarWinds.DPA.Strings

              11.0.0.471,       SolarWinds.DPA.Web

              2.3.0.61,         SolarWinds.DPI.Common

              2.3.0.61,         SolarWinds.DPI.Strings

              2.3.0.61,         SolarWinds.DPI.Web

              1.2.0.19,         SolarWinds.ESI.Common

              1.2.0.19,         SolarWinds.ESI.Strings

              1.2.0.19,         SolarWinds.ESI.Web

              7.0.0.128,        Solarwinds.F5.Common

              7.0.0.128,        SolarWinds.F5.Strings

              7.0.0.128,        SolarWinds.F5.Web

              8.0.0.286,        SolarWinds.HardwareHealth.Common

              8.0.0.286,        SolarWinds.HardwareHealth.Strings

              8.0.0.286,        SolarWinds.HardwareHealth.Web

              1.0.0.0,          SolarWinds.InformationService.Contract

              2017.1.1.418,     SolarWinds.InformationService.Contract2

              1.0.0.0,          SolarWinds.InformationService.Linq

              0.0.0.0,          SolarWinds.InformationService.Linq.Plugins.Core

              0.0.0.0,          SolarWinds.InformationService.Linq.Plugins.DPA

              0.0.0.0,          SolarWinds.InformationService.Linq.Plugins.F5

              0.0.0.0,          SolarWinds.InformationService.Linq.Plugins.SSH

              3.0.0.52,         SolarWinds.Interfaces.Common

              3.0.0.53,         SolarWinds.Interfaces.Discovery.Strings

              3.0.0.53,         SolarWinds.Interfaces.Discovery.Web

              8.0.0.168,        SolarWinds.Interfaces.Import.Common

              5.0.0.46,         SolarWinds.Interfaces.SNMP.Common

              8.0.0.168,        SolarWinds.Interfaces.Strings

              8.0.0.168,        SolarWinds.Interfaces.Web

              5.0.0.10,         SolarWinds.Interfaces.WMI.Common

              0.0.0.0,          SolarWinds.Internationalization

              4.5.0.417,        SolarWinds.IPAM.BusinessObjects

              4.5.0.417,        SolarWinds.IPAM.Client

              4.5.0.417,        SolarWinds.IPAM.Common

              4.5.0.417,        SolarWinds.IPAM.Contract

              4.5.0.417,        SolarWinds.IPAM.DHCP

              4.5.0.417,        SolarWinds.IPAM.DHCPMultiDevice

              4.5.0.417,        SolarWinds.IPAM.DNS

              4.5.0.417,        SolarWinds.IPAM.DNSMultiDevice

              4.5.0.417,        SolarWinds.IPAM.Import

              4.5.0.417,        Solarwinds.IPAM.Jobs

              4.5.0.417,        SolarWinds.IPAM.Pollers

              4.5.0.417,        SolarWinds.IPAM.Storage

              4.5.0.417,        SolarWinds.IPAM.Strings

              4.5.0.417,        SolarWinds.IPAM.Web.Common

              4.5.0.417,        SolarWinds.IPAM.Web.Helpers

              4.5.0.417,        SolarWinds.IPAM.Web.Layout

              4.5.0.417,        SolarWinds.IPAM.Web.Master

              4.5.0.417,        SolarWinds.IPAM.Web.Widgets

              4.4.0.352,        SolarWinds.IpSla.Alerting.Migration.Plugin

              1.6.0.28,         SolarWinds.JobEngine.Contract

              2.11.0.276,       SolarWinds.JobEngine.Contract2

              4.1.0.188,        SolarWinds.Licensing.Framework

              4.1.26.0,         SolarWinds.Licensing.Gen4

              2.0.0.0,          SolarWinds.Logging

              1.16.0.41,        SolarWinds.MapEngine

              1.16.0.41,        SolarWinds.MapStudio.Common

              1.16.0.41,        SolarWinds.MapStudio.Strings

              1.16.0.41,        SolarWinds.MapStudio.Web

              1.2.0.34,         SolarWinds.MessageBus

              1.2.0.34,         SolarWinds.MessageBus.Contract

              1.2.0.34,         SolarWinds.MessageBus.RabbitMQ

              7.6.0.1375,       SolarWinds.NCM.AlertAction

              7.6.0.1375,       SolarWinds.NCM.Common

              7.6.0.1375,       SolarWinds.NCM.Contracts

              7.6.0.1375,       SolarWinds.NCM.NodeManagement

              7.6.0.1375,       SolarWinds.NCM.Reporting

              7.6.0.1375,       SolarWinds.NCM.Strings

              1.0.0.0,          SolarWinds.NCMModule.Web.Inventory

              7.6.0.1375,       SolarWinds.NCMModule.Web.Resources

              7.6.0.1375,       SolarWinds.NCMModule.Web.Search

              0.0.0.0,          SolarWinds.Net.SNMP

              0.0.0.0,          SolarWinds.Net.WMI

              4.2.2.3145,       SolarWinds.Netflow.Common

              4.2.2.3145,       SolarWinds.Netflow.Contracts

              4.2.2.3145,       SolarWinds.Netflow.DeviceConfiguration.Contracts

              4.2.2.3145,       SolarWinds.Netflow.FastBit.Client

              4.2.2.3145,       SolarWinds.Netflow.FastBit.Contract

              4.2.2.3145,       SolarWinds.Netflow.Reporting.Common

              4.2.2.3145,       SolarWinds.Netflow.Strings

              4.2.2.3145,       SolarWinds.Netflow.Utils

              12.1.5300.470,    SolarWinds.NPM.Auditing

              12.1.5300.470,    SolarWinds.NPM.Common

              12.1.5300.470,    SolarWinds.NPM.Strings

              12.1.5300.470,    SolarWinds.NPM.Ucs

              12.1.5300.470,    SolarWinds.NPM.Web

              1.0.0.0,          SolarWinds.NPM.Web.Gauge.V1

              1.0.1.10,         SolarWinds.Orion.ActiveBackupStateStorage

              10001.1.400.311,  SolarWinds.Orion.Auditing

              10001.1.1.288,    SolarWinds.Orion.Batching

              10001.1.1.284,    SolarWinds.Orion.Channels

              2.0.0.0,          SolarWinds.Orion.Common

              10001.1.1.46,     SolarWinds.Orion.Composition

              10001.1.1.350,    SolarWinds.Orion.Configuration

              1.1.0.31,         SolarWinds.Orion.Content.Models

              2017.1.5300.1825, SolarWinds.Orion.Core.Actions

              2017.1.5300.1825, SolarWinds.Orion.Core.Alerting

              2017.1.5300.1825, SolarWinds.Orion.Core.Alerting.Plugins

              2017.1.5300.1825, SolarWinds.Orion.Core.Common

              2017.1.5300.1825, SolarWinds.Orion.Core.Data

              2017.1.5300.1825, SolarWinds.Orion.Core.Jobs

              2017.1.5300.1825, SolarWinds.Orion.Core.Models

              2017.1.5300.1825, SolarWinds.Orion.Core.Reporting

              10001.1.1.260,    SolarWinds.Orion.Core.SharedCredentials

              2017.1.5300.1825, SolarWinds.Orion.Core.Strings

              2017.1.5300.1825, SolarWinds.Orion.Core.Web

              2017.1.5300.1825, SolarWinds.Orion.Discovery.Contract

              1.0.1.91,         SolarWinds.Orion.FluentSqlClientProxy

              2017.1.1.130,     SolarWinds.Orion.HighAvailability.Strings

              0.0.0.0,          SolarWinds.Orion.HighAvailability.Strings.resources

              0.0.0.0,          SolarWinds.Orion.HighAvailability.Strings.resources

              1.4.1.96,         SolarWinds.Orion.Http.Content

              1.1.0.31,         SolarWinds.Orion.Identity.Models

              4.5.0.417,        SolarWinds.Orion.IPAM.Web

              4.4.0.352,        SolarWinds.Orion.IpSla.Common

              4.4.0.352,        SolarWinds.Orion.IpSla.Contracts

              4.4.0.352,        SolarWinds.Orion.IpSla.Data

              4.4.0.352,        SolarWinds.Orion.IpSla.Localization

              4.4.0.352,        SolarWinds.Orion.IpSla.Parsing

              4.4.0.352,        SolarWinds.Orion.IpSla.Strings

              4.4.0.352,        SolarWinds.Orion.IpSla.Web

              1.1.0.188,        SolarWinds.Orion.Licensing

              1.1.0.31,         SolarWinds.Orion.Licensing.Models

              1.1.0.188,        SolarWinds.Orion.Licensing.Strings

              10001.1.200.627,  SolarWinds.Orion.MacroProcessor

              0.0.0.0,          SolarWinds.Orion.MacroProcessor.Contract

              0.0.0.0,          SolarWinds.Orion.MacroProcessor.DataFormatters

              0.0.0.0,          SolarWinds.Orion.MacroProcessor.Strings

              0.0.0.0,          SolarWinds.Orion.Module.Common

              0.0.0.0,          SolarWinds.Orion.Module.Models

              7.6.0.1375,       SolarWinds.Orion.NCM.Actions

              0.0.0.0,          SolarWinds.Orion.NetObjects.Models

              0.0.0.0,          SolarWinds.Orion.NetObjects.Strings

              1.1.0.3418,       SolarWinds.Orion.NetPath.Strings

              1.0.0.246,        SolarWinds.Orion.NodeManagement.Strings

              1.0.0.699,        SolarWinds.Orion.PerfStack.Strings

              2017.1.5300.1825, SolarWinds.Orion.Pollers.Framework

              1.0.0.0,          SolarWinds.Orion.Proxy.I18N

              1.0.0.0,          SolarWinds.Orion.Proxy.I18N.Strings

              1.1.0.4358,       SolarWinds.Orion.Recommendations.Strings

              0.0.0.0,          SolarWinds.Orion.Security

              10001.1.1.212,    SolarWinds.Orion.ServiceDirectory

              1.1.0.31,         SolarWinds.Orion.ServiceDirectory.Models

              10001.1.400.311,  SolarWinds.Orion.Swis.Client

              10001.1.400.311,  SolarWinds.Orion.Swis.Contract

              10001.1.400.311,  SolarWinds.Orion.Swis.PubSub

              10001.1.400.311,  SolarWinds.Orion.Swis.SchemaProvider

              1.0.0.121,        SolarWinds.Orion.Web.I18n

              2017.1.5300.1825, SolarWinds.Orion.Web.Integration.Common

              1.6.4.413,        SolarWinds.Orion.Web.Platform

              1.6.3.413,        SolarWinds.Orion.Web.Services

              1.6.3.413,        SolarWinds.Orion.Web.Strings

              2.6.107.0,        SolarWinds.OrionImprovement.Common

              2.6.107.0,        SolarWinds.OrionImprovement.Strings

              1.2.0.44,         SolarWinds.RecommendationEngine.Common

              1.2.0.44,         SolarWinds.RecommendationEngine.Contract

              1.2.0.44,         SolarWinds.RecommendationEngine.Strings

              1.2.0.44,         SolarWinds.RecommendationEngine.Web

              1.1.0.4358,       SolarWinds.Recommendations.Contract

              1.1.0.4358,       SolarWinds.Recommendations.Web

              2017.1.5300.1825, SolarWinds.Reporting

              1.0.0.46,         SolarWinds.Serialization

              1.1.0.6,          SolarWinds.ServiceDirectory.Client

              1.1.0.6,          SolarWinds.ServiceDirectory.Client.Contract

              1.1.0.6,          SolarWinds.ServiceDirectory.Contract

              1.1.0.6,          SolarWinds.ServiceDirectory.LocalCache

              1.0.0.43,         SolarWinds.Settings

              10001.1.1.111,    SolarWinds.Shared

              10001.1.1.111,    SolarWinds.Shared.Strings

              1.2.0.19,         SolarWinds.SNI.Actions

              1.2.0.19,         SolarWinds.SNI.Client

              1.2.0.19,         SolarWinds.SNI.Common

              1.2.0.19,         SolarWinds.SNI.Strings

              6.4.0.1465,       SolarWinds.SRM.Common

              6.4.0.1465,       SolarWinds.SRM.Strings

              6.4.0.1465,       SolarWinds.SRM.Web

              1.0.0.0,          SolarWinds.SSH.Common

              1.0.0.0,          SolarWinds.SSH.Strings

              1.0.0.0,          SolarWinds.SSH.Web

              1.0.0.36,         SolarWinds.SSO.Provider

              2013.2.0.1,       SolarWinds.Syslog

              2013.2.0.1,       SolarWinds.Syslog.Strings

              6.4.0.1020,       SolarWinds.TaskScheduler.Contract

              3.2.4.5117,       SolarWinds.UDT.Common

              3.2.4.5117,       SolarWinds.UDT.Logging

              3.2.4.5117,       SolarWinds.UDT.Strings

              3.2.4.5117,       SolarWinds.UDT.Web

              3.2.4.5117,       Solarwinds.UDT.Web.Convertors

              7.1.0.4312,       SolarWinds.VIM.Actions

              7.1.0.4312,       SolarWinds.VIM.Common

              7.1.0.4312,       SolarWinds.VIM.Strings

              7.1.0.4312,       SolarWinds.VIM.Web

              1.0.0.0,          SolarWinds.Wireless.Common

              3.0.0.159,        SolarWinds.Wireless.Heatmaps.Common

              3.0.0.159,        SolarWinds.Wireless.Heatmaps.Strings

              3.0.0.159,        SolarWinds.Wireless.Heatmaps.Web

              8.0.0.440,        SolarWinds.Wireless.Meraki

              8.0.0.440,        SolarWinds.Wireless.Strings

              1.0.0.0,          SolarWinds.Wireless.Web

              1.0.0.0,          SWPicExtFactoryLib

              5.2.3.0,          System.Net.Http.Formatting

              2.2.0.0,          System.Reactive.Core

              2.2.0.0,          System.Reactive.Interfaces

              2.2.0.0,          System.Reactive.Linq

              2.2.0.0,          System.Reactive.PlatformServices

              5.2.3.0,          System.Web.Http

              5.2.3.0,          System.Web.Http.WebHost

              5.5.0.0,          TomSawyer

              5.5.0.0,          TSEDefaultExtFactoryLib

              2.6.4.162,        WeOnlyDo.Client.SSH.FIPS

              0.0.0.0,          App_Code.xdciifnd

              0.0.0.0,          App_global.asax.vnrptl2f

              0.0.0.0,          App_GlobalResources.ihp5dzjn

              0.0.0.0,          App_LocalResources.timeperiodpicker.3e67a336.tpck05fu

              0.0.0.0,          App_Web_02r2vnqj

              0.0.0.0,          App_Web_0324t2q1

              0.0.0.0,          App_Web_035544mb

              0.0.0.0,          App_Web_0cej0i5v

              0.0.0.0,          App_Web_0rf5a5pp

              0.0.0.0,          App_Web_0rfguwsf

              0.0.0.0,          App_Web_0xa205cn

              0.0.0.0,          App_Web_10blzx55

              0.0.0.0,          App_Web_1cyugohb

              0.0.0.0,          App_Web_1d0ko1hy

              0.0.0.0,          App_Web_1f1kcong

              0.0.0.0,          App_Web_1jnyw5ij

              0.0.0.0,          App_Web_1mq3bg1z

              0.0.0.0,          App_Web_1noledli

              0.0.0.0,          App_Web_1qjtyx0x

              0.0.0.0,          App_Web_1rga421v

              0.0.0.0,          App_Web_1zx0jjna

              0.0.0.0,          App_Web_23is02qm

              0.0.0.0,          App_Web_2akqwovb

              0.0.0.0,          App_Web_2drtx5nc

              0.0.0.0,          App_Web_32hb2nui

              0.0.0.0,          App_Web_34r1m1f5

              0.0.0.0,          App_Web_35iut04g

              0.0.0.0,          App_Web_3hygjewj

              0.0.0.0,          App_Web_3k0oyxnj

              0.0.0.0,          App_Web_3pzp2044

              0.0.0.0,          App_Web_3rb3xalv

              0.0.0.0,          App_Web_3t4ww0af

              0.0.0.0,          App_Web_3w3jpbpa

              0.0.0.0,          App_Web_3zkyjgca

              0.0.0.0,          App_Web_401ot0rp

              0.0.0.0,          App_Web_4dhceviy

              0.0.0.0,          App_Web_4hhfdrdz

              0.0.0.0,          App_Web_4hpm1sqh

              0.0.0.0,          App_Web_4hqli4yk

              0.0.0.0,          App_Web_4rc1ytbd

              0.0.0.0,          App_Web_4uu334bv

              0.0.0.0,          App_Web_501jmuri

              0.0.0.0,          App_Web_5uagibfd

              0.0.0.0,          App_Web_5xhho5iq

              0.0.0.0,          App_Web_5zsh3x05

              0.0.0.0,          App_Web_a0dnr2ip

              0.0.0.0,          App_Web_ajspi3wc

              0.0.0.0,          App_Web_alhkeiww

              0.0.0.0,          App_Web_aqt414tt

              0.0.0.0,          App_Web_asp43yoc

              0.0.0.0,          App_Web_audmna0b

              0.0.0.0,          App_Web_avl2vtke

              0.0.0.0,          App_Web_ay5y2v3d

              0.0.0.0,          App_Web_b0pvbfta

              0.0.0.0,          App_Web_b5sx01yk

              0.0.0.0,          App_Web_be0juq1o

              0.0.0.0,          App_Web_bolqftl0

              0.0.0.0,          App_Web_bonw1zb2

              0.0.0.0,          App_Web_bsuzfxzg

              0.0.0.0,          App_Web_bundogg2

              0.0.0.0,          App_Web_bwcexznz

              0.0.0.0,          App_Web_cbqoslegendpolicies.ascx.be89cd80.yky3n6od

              0.0.0.0,          App_Web_cd5lrdcd

              0.0.0.0,          App_Web_cghyzo0g

              0.0.0.0,          App_Web_czmczly0

              0.0.0.0,          App_Web_d0nrdfdy

              0.0.0.0,          App_Web_deocpn53

              0.0.0.0,          App_Web_diuztut3

              0.0.0.0,          App_Web_dnxrjfti

              0.0.0.0,          App_Web_dxgpsrm4

              0.0.0.0,          App_Web_dy0c1noq

              0.0.0.0,          App_Web_dzjomlvh

              0.0.0.0,          App_Web_ea2kf0hn

              0.0.0.0,          App_Web_efjuiy1d

              0.0.0.0,          App_Web_egq3fpej

              0.0.0.0,          App_Web_euydp5d5

              0.0.0.0,          App_Web_evprfxfv

              0.0.0.0,          App_Web_exerm1m0

              0.0.0.0,          App_Web_exwp5hs3

              0.0.0.0,          App_Web_ezqfrrvu

              0.0.0.0,          App_Web_fv1yo1e1

              0.0.0.0,          App_Web_fxhfxjqm

              0.0.0.0,          App_Web_gfqio5xc

              0.0.0.0,          App_Web_glhdfgoh

              0.0.0.0,          App_Web_gp0nnhnn

              0.0.0.0,          App_Web_gupbxd4z

              0.0.0.0,          App_Web_h55mfg3s

              0.0.0.0,          App_Web_habraqoe

              0.0.0.0,          App_Web_hd30pozy

              0.0.0.0,          App_Web_hfhhptsb

              0.0.0.0,          App_Web_ho0pwppg

              0.0.0.0,          App_Web_ho32dkzp

              0.0.0.0,          App_Web_i03v2fsn

              0.0.0.0,          App_Web_i0bp0vrg

              0.0.0.0,          App_Web_ibildz4w

              0.0.0.0,          App_Web_iccx4ald

              0.0.0.0,          App_Web_idbcfp43

              0.0.0.0,          App_Web_igxjtndr

              0.0.0.0,          App_Web_iiznqvz1

              0.0.0.0,          App_Web_imx0ehwi

              0.0.0.0,          App_Web_inaccuratedatawarning.ascx.be89cd80.fny7kgjm

              0.0.0.0,          App_Web_inhsdm3a

              0.0.0.0,          App_Web_injg1cky

              0.0.0.0,          App_Web_interfacelink.ascx.be89cd80.ozgwen9i

              0.0.0.0,          App_Web_ipjb1my3

              0.0.0.0,          App_Web_ir1pkmn2

              0.0.0.0,          App_Web_iw5lmgts

              0.0.0.0,          App_Web_iw5me5mr

              0.0.0.0,          App_Web_jbno2t2q

              0.0.0.0,          App_Web_jdtj0xz5

              0.0.0.0,          App_Web_jkmp4sv2

              0.0.0.0,          App_Web_js3ar554

              0.0.0.0,          App_Web_jsm3shys

              0.0.0.0,          App_Web_jtjlvjf5

              0.0.0.0,          App_Web_k1k5xpaj

              0.0.0.0,          App_Web_k4qz0viz

              0.0.0.0,          App_Web_k5xhia5q

              0.0.0.0,          App_Web_kamgk2lp

              0.0.0.0,          App_Web_kbz3riaz

              0.0.0.0,          App_Web_kducmo25

              0.0.0.0,          App_Web_kijycbdl

              0.0.0.0,          App_Web_klrbsjjo

              0.0.0.0,          App_Web_kqfquorf

              0.0.0.0,          App_Web_lbx0ruf5

              0.0.0.0,          App_Web_lcklt03e

              0.0.0.0,          App_Web_ldoetgy0

              0.0.0.0,          App_Web_lfyxdvk1

              0.0.0.0,          App_Web_lyfd3bkl

              0.0.0.0,          App_Web_m0lk2udr

              0.0.0.0,          App_Web_m32cy4k4

              0.0.0.0,          App_Web_m5tcy213

              0.0.0.0,          App_Web_marwhxv3

              0.0.0.0,          App_Web_mfpy0ess

              0.0.0.0,          App_Web_mhi1w0rx

              0.0.0.0,          App_Web_msso4fvg

              0.0.0.0,          App_Web_n3gnmypb

              0.0.0.0,          App_Web_nkpkmgva

              0.0.0.0,          App_Web_nodelink.ascx.be89cd80.uchh7vs9

              0.0.0.0,          App_Web_np5f51pm

              0.0.0.0,          App_Web_npuwev1l

              0.0.0.0,          App_Web_nuujqcyp

              0.0.0.0,          App_Web_ofky4lgr

              0.0.0.0,          App_Web_ojlxgumv

              0.0.0.0,          App_Web_ojxfyyfn

              0.0.0.0,          App_Web_orj0bcxn

              0.0.0.0,          App_Web_ovscrv5c

              0.0.0.0,          App_Web_pblitzsn

              0.0.0.0,          App_Web_pcmekesd

              0.0.0.0,          App_Web_pcx313vk

              0.0.0.0,          App_Web_pdkifuw0

              0.0.0.0,          App_Web_pg42xtq4

              0.0.0.0,          App_Web_pk13udic

              0.0.0.0,          App_Web_psp3ewn5

              0.0.0.0,          App_Web_q1yxcsgi

              0.0.0.0,          App_Web_qudhys0w

              0.0.0.0,          App_Web_qvcxjco0

              0.0.0.0,          App_Web_raae4fqn

              0.0.0.0,          App_Web_rarp0l5y

              0.0.0.0,          App_Web_relzx0cb

              0.0.0.0,          App_Web_rom0do1g

              0.0.0.0,          App_Web_rpguz4o2

              0.0.0.0,          App_Web_rqbqdztd

              0.0.0.0,          App_Web_rrhq1a5z

              0.0.0.0,          App_Web_rupyvzxw

              0.0.0.0,          App_Web_s4qnkf0f

              0.0.0.0,          App_Web_sakwkh1d

              0.0.0.0,          App_Web_shei3ehj

              0.0.0.0,          App_Web_smwitwfo

              0.0.0.0,          App_Web_spayn1wn

              0.0.0.0,          App_Web_srsnopug

              0.0.0.0,          App_Web_sxqpakhe

              0.0.0.0,          App_Web_tc5nn1fy

              0.0.0.0,          App_Web_tggqnmvs

              0.0.0.0,          App_Web_tkvfgmfn

              0.0.0.0,          App_Web_tkvwfoka

              0.0.0.0,          App_Web_twua4o0h

              0.0.0.0,          App_Web_uener151

              0.0.0.0,          App_Web_ufbm1kmh

              0.0.0.0,          App_Web_ul5ztufq

              0.0.0.0,          App_Web_unrvtnir

              0.0.0.0,          App_Web_uo4uqejx

              0.0.0.0,          App_Web_v1ixqo0e

              0.0.0.0,          App_Web_v33epmuo

              0.0.0.0,          App_Web_vpozdds1

              0.0.0.0,          App_Web_wggt3ugz

              0.0.0.0,          App_Web_x2mmch2t

              0.0.0.0,          App_Web_x4vx3nnb

              0.0.0.0,          App_Web_xncch4s5

              0.0.0.0,          App_Web_xqu4pxom

              0.0.0.0,          App_Web_y3fbwm2q

              0.0.0.0,          App_Web_yeeewmla

              0.0.0.0,          App_Web_yg03u5co

              0.0.0.0,          App_Web_yjf1psm5

              0.0.0.0,          App_Web_yuzp4te3

              0.0.0.0,          App_Web_z1d2tdz4

              0.0.0.0,          App_Web_zawwn1mj

              0.0.0.0,          App_Web_zcwggvdj

              0.0.0.0,          App_Web_zgnrdn30

              0.0.0.0,          App_Web_zhwmn40h

              0.7.1.263,        SolarWinds.Orion.Apollo.Strings

              0.7.1.263,        SolarWinds.Orion.Apollo.Strings

              2017.1.1.130,     SolarWinds.Orion.HighAvailability.Strings

              2017.1.1.130,     SolarWinds.Orion.HighAvailability.Strings

              4.2.2.3145,       SolarWinds.Orion.Netflow.Strings

              4.2.2.3145,       SolarWinds.Orion.Netflow.Strings

              1.1.0.3418,       SolarWinds.Orion.NetPath.Strings

              1.1.0.3418,       SolarWinds.Orion.NetPath.Strings

              1.1.0.4358,       SolarWinds.Orion.Recommendations.Strings

              1.1.0.4358,       SolarWinds.Orion.Recommendations.Strings

              0.7.1.172,        SolarWinds.Orion.UI.Components.Strings

              0.7.1.172,        SolarWinds.Orion.UI.Components.Strings

              1.6.3.413,        SolarWinds.Orion.Web.Strings

              1.6.3.413,        SolarWinds.Orion.Web.Strings

              0.0.0.0,          A_d267fa22_c590_428e_89bd_813fab50368b

              0.0.0.0,          A_dafee594_1423_4f6e_9254_913fa799a263

              0.0.0.0,          Anonymously Hosted DynamicMethods Assembly

              0.0.0.0,          DynamicProxyGenAssembly2

              0.0.0.0,          DynamicProxyGenAssembly2

              0.0.0.0,          DynamicProxyGenAssembly2

              1.0.0.0,          Microsoft.GeneratedCode

              1.0.0.0,          Microsoft.GeneratedCode

              1.0.0.0,          Microsoft.GeneratedCode

              1.0.0.0,          Microsoft.GeneratedCode

              1.0.0.0,          Microsoft.GeneratedCode

              1.0.0.0,          Microsoft.GeneratedCode

                • Re: Create WMI Node via API Request
                  tdanner

                  I think the problem is how you are setting the credential ID. To create a NodeSettings entry, you need to post to this URL:

                   

                  /SolarWinds/InformationService/v3/Json/Create/Orion.NodeSettings

                   

                  With contents like this:

                   

                  {"NodeID":"11006", "SettingName":"WMICredential", "SettingValue": 22}

                   

                  You might find it helpful to refer to this powershell sample for adding a WMI node. You would still have to translate to REST calls, but this would at least make it clear what properties are needed. OrionSDK/CRUD.AddWMINode.ps1 at master · solarwinds/OrionSDK · GitHub

                    • Re: Create WMI Node via API Request
                      royaltigerfan

                      Okay, after following your suggestions above it returns a 200 result so its creating the new setting for the node. But I am still getting the same error when trying to click edit properties...

                       

                      See the log file below.

                       

                       

                      Time: 10/25/2018 21:40:59.2771

                      Server: Microsoft-IIS/8.5

                      Pipeline: Integrated

                      User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

                      Error Instance: 5950a9cae5ba487abe919604de0d70d5

                      User: orion

                      URL: https://orion:443/Orion/Nodes/NodeProperties.aspx?Nodes=11083&GuidID=70989ba5-7a9a-42c6-8261-b1ea909143c9&ReturnTo=aHR0cHM6Ly9zb2xhcndpbmRzLmdzYS5nb3YvT3Jpb24vTmV0UGVyZk1vbi9Ob2RlRGV0YWlscy5hc3B4P05ldE9iamVjdD1OOjExMDgz

                      Referrer: https://orion:443/Orion/Nodes/NodeProperties.aspx?Nodes=11083&GuidID=70989ba5-7a9a-42c6-8261-b1ea909143c9&ReturnTo=aHR0cHM6Ly9zb2xhcndpbmRzLmdzYS5nb3YvT3Jpb24vTmV0UGVyZk1vbi9Ob2RlRGV0YWlscy5hc3B4P05ldE9iamVjdD1OOjExMDgz

                      Message: ProvideFault failed, check fault information.

                      ErrorSite: mscorlib.RealProxy.HandleReturnMessage

                      ErrorType: System.ServiceModel.FaultException`1[[SolarWinds.Orion.Core.Common.CoreFaultContract, SolarWinds.Orion.Channels, Version=10001.1.1.284, Culture=neutral, PublicKeyToken=null]]

                      Stack:

                       

                       

                      Server stack trace:

                      at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

                      at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

                      at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

                      at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

                       

                      Exception rethrown at [0]:

                      at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

                      at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

                      at SolarWinds.Orion.Core.Common.ICoreBusinessLayer.GetWmiCredential(Int32 credentialID)

                      at SolarWinds.Orion.Core.Common.CoreBusinessLayerProxy.GetWmiCredential(Int32 credentialID)

                      at Castle.Proxies.Invocations.ICoreBusinessLayer_GetWmiCredential_1.InvokeMethodOnTarget()

                      at Castle.DynamicProxy.AbstractInvocation.Proceed()

                      at SolarWinds.Orion.Core.Common.Proxy.BusinessLayer.CoreBusinessLayerProxyPoolInterceptor.CallMethodWithPool(IInvocation invocation)

                      at SolarWinds.Orion.Core.Common.Proxy.BusinessLayer.CoreBusinessLayerProxyPoolInterceptor.Intercept(IInvocation invocation)

                      at Castle.DynamicProxy.AbstractInvocation.Proceed()

                      at Castle.Proxies.ICoreBusinessLayerProxy_1.GetWmiCredential(Int32 credentialID)

                      at Orion_Nodes_Controls_WmiInfo.Initialize(IList`1 nodes, NodePropertyPluginExecutionMode mode, Dictionary`2 pluginState)

                      at Orion_Nodes_Controls_PollingMethodSelector.Page_Load(Object sender, EventArgs e)

                      at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)

                      at System.Web.UI.Control.OnLoad(EventArgs e)

                      at System.Web.UI.Control.LoadRecursive()

                      at System.Web.UI.Control.LoadRecursive()

                      at System.Web.UI.Control.LoadRecursive()

                      at System.Web.UI.Control.LoadRecursive()

                      at System.Web.UI.Control.LoadRecursive()

                      at System.Web.UI.Control.LoadRecursive()

                      at System.Web.UI.Control.LoadRecursive()

                      at System.Web.UI.Control.LoadRecursive()

                      at System.Web.UI.Control.LoadRecursive()

                      at System.Web.UI.Control.LoadRecursive()

                      at System.Web.UI.Control.LoadRecursive()

                      at System.Web.UI.Control.LoadRecursive()

                      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

                        • Re: Create WMI Node via API Request
                          tdanner

                          My best guess for the cause of this one would be that the credential indicated by that credentialID either doesn't exist or is not the right kind. There should be more details in this log file:

                           

                          C:\ProgramData\SolarWinds\Logs\Orion\Core.BusinessLayer.log

                            • Re: Create WMI Node via API Request
                              royaltigerfan

                              Would the settingvalue be the ID of the credential or the name of the credential itself? So ID of 22 or name of OrionWMI?

                                • Re: Create WMI Node via API Request
                                  tdanner

                                  SettingValue would be the ID of the credential, a number.

                                   

                                  You can query Orion.Credential to list them all:

                                   

                                  SELECT ID, Name, Description, CredentialType FROM Orion.Credential

                                    • Re: Create WMI Node via API Request
                                      royaltigerfan

                                      The credential type associated with ID 22 is SolarWinds.Orion.Core.SharedCredentials.Credentials.UsernamePasswordCredential is that the proper kind for WMI?



                                        • Re: Create WMI Node via API Request
                                          tdanner

                                          Yes, that's the right kind. Please check C:\ProgramData\SolarWinds\Logs\Orion\Core.BusinessLayer.log for error details.

                                            • Re: Create WMI Node via API Request
                                              royaltigerfan

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for threshold name 'SRM.Volumes.Stats.IOSizeRead' not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for 'SRM.Volumes.Stats.IOSizeWrite' was not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for threshold name 'SRM.Volumes.Stats.IOSizeWrite' not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for 'SRM.Volumes.Stats.BytesPSTotal' was not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for threshold name 'SRM.Volumes.Stats.BytesPSTotal' not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for 'SRM.Volumes.Stats.BytesPSRead' was not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for threshold name 'SRM.Volumes.Stats.BytesPSRead' not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for 'SRM.Volumes.Stats.BytesPSWrite' was not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for threshold name 'SRM.Volumes.Stats.BytesPSWrite' not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for 'SRM.Vservers.Stats.IOPSTotal' was not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for threshold name 'SRM.Vservers.Stats.IOPSTotal' not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for 'SRM.Vservers.Stats.IOPSRead' was not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for threshold name 'SRM.Vservers.Stats.IOPSRead' not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for 'SRM.Vservers.Stats.IOPSWrite' was not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for threshold name 'SRM.Vservers.Stats.IOPSWrite' not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for 'SRM.Vservers.Stats.IOPSOther' was not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for threshold name 'SRM.Vservers.Stats.IOPSOther' not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for 'SRM.Vservers.Stats.IOSizeTotal' was not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for threshold name 'SRM.Vservers.Stats.IOSizeTotal' not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for 'SRM.Vservers.Stats.IOSizeRead' was not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for threshold name 'SRM.Vservers.Stats.IOSizeRead' not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for 'SRM.Vservers.Stats.IOSizeWrite' was not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for threshold name 'SRM.Vservers.Stats.IOSizeWrite' not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for 'SRM.Vservers.Stats.BytesPSTotal' was not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for threshold name 'SRM.Vservers.Stats.BytesPSTotal' not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for 'SRM.Vservers.Stats.BytesPSRead' was not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for threshold name 'SRM.Vservers.Stats.BytesPSRead' not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for 'SRM.Vservers.Stats.BytesPSWrite' was not found.

                                              2018-10-26 15:00:20,170 [146] ERROR SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Threshold data provider for threshold name 'SRM.Vservers.Stats.BytesPSWrite' not found.

                                              2018-10-26 15:00:20,170 [146] INFO  SolarWinds.Orion.Core.BusinessLayer.Thresholds.ThresholdProcessingEngine - (null)  Update thresholds processed 0 rows and finished in 12 ms.

                                               

                                              Thats a dump of the log. Anything useful?

                            • Re: Create WMI Node via API Request
                              royaltigerfan

                              tdanner Any chance you can revisit this? I am still unable to add the node.

                               

                              Below is the javascript I am using to create the REST call to add the node. You can see I add the node, and attempt to update the new node with the credential ID I specify. I've also attached the log that generates when you can click edit properties. This error is generated after the node is created and you attempt to view the WMI credentials that you should see associated with the node.

                               

                              var restHost = RESTHostManager.createHost("DynamicRequest");
                              var transientHost = RESTHostManager.createTransientHostFrom(restHost);
                              transientHost.url = baseUrl;
                              
                              
                              if (user != null && user != "") {
                              var authParams = ["Per User Session", user, password];
                                  var authenticationObject = RESTAuthenticationManager.createAuthentication("Basic", authParams);
                                  transientHost.authentication = authenticationObject;
                              }
                              
                              
                              var json = '{"EntityType":"Orion.Nodes", "IPAddress":"'+ip+'", "IPAddressGUID":"nnnnnnnn-0000-0000-0000-000000000000", "Caption":"'+caption+'", "DynamicIP": false, "EngineID": 2, "Status": 0, "UnManaged": false, "Allow64BitCounters": false, "SysObjectID": "", "MachineType": "", "VendorIcon": "", "ObjectSubType": "WMI", "SNMPVersion": 0, "Community":"entstringp"}'
                              content = json
                              var requestUrl = baseUrl + queryString;
                              
                              System.log("Request full URL: " + requestUrl);
                              var request = transientHost.createRequest(httpMethod, queryString, content);
                              request.contentType = contentType;
                              
                              var response;
                              
                              if (user != null && user != "") {
                                  System.log("Executing REST request with dynamic credentials: " + user);
                                  System.log("Query string: " + request.url);
                                  System.log("Base URL: " + request.host.url);
                                  response = request.executeWithCredentials(user, password);
                              } else {
                                  response = request.execute();
                              }
                              
                              
                              System.log("Content as string: " + response.contentAsString);
                              
                              
                              statusCode = response.statusCode;
                              statusCodeAttribute = statusCode;
                              System.log("Status code: " + statusCode);
                              contentLength = response.contentLength;
                              headers = response.getAllHeaders();
                              contentAsString = response.contentAsString;
                              System.log("Query Solarwinds node name and nodeid: " + contentAsString);
                              
                              
                              var str = contentAsString;
                              var res = str.substring(55,67);
                              var resnumber = str.substring(62,67);
                              var nodeid = res
                              var nodenumber = resnumber.toString();
                              
                              
                              System.log("Solarwinds NodeID: " + res)
                              System.log("Status code: " + statusCode);
                              System.log("Create Solarwinds Node Completed for " +caption);
                              
                              
                              //******************************//Solarwinds WMI Credentials Configuartion//****************************************//
                              
                              
                              var nodeString = '/SolarWinds/InformationService/v3/Json/Create/Orion.NodeSettings';
                              var credID = "27"
                              var credString = credID.toString();
                              System.log("Credential ID Selected: " + credString)
                              var settingID = "WMICredential"
                              System.log("System Setting Name Defined: " + setString)
                              var setString = settingID.toString();
                              var swwmi = '{"NodeID":"'+nodenumber+'", "SettingName":"'+setString+'", "SettingValue":"'+credString+'"}'
                                  System.log("swwmi: " + swwmi);
                              var nodeUrl = baseUrl + nodeString;
                                  System.log("Request full URL: " + nodeUrl);
                              var request = transientHost.createRequest(httpMethod, nodeUrl, swwmi);
                              request.contentType = contentType;
                              
                              
                              var response;
                              
                              
                              if (user != null && user != "") {
                                  System.log("Executing REST request with dynamic credentials: " + user);
                                  System.log("Query string: " + request.url);
                                  System.log("Base URL: " + request.host.url);
                                  response = request.executeWithCredentials(user, password);
                              } else {
                                  response = request.execute();
                              }
                              
                              
                              System.log("Content as string: " + response.contentAsString);
                              
                              
                              statusCode = response.statusCode;
                              statusCodeAttribute = statusCode;
                              System.log("Status code for credential response: " + statusCode);
                              contentLength = response.contentLength;
                              headers = response.getAllHeaders();
                              contentAsString = response.contentAsString;
                                • Re: Create WMI Node via API Request
                                  tdanner

                                  I can't find an obvious cause of the error within this script, though there are some questionable items such as:

                                   

                                  * Using fixed string offsets to extract the new NodeID from the return Uri.

                                  * Supplying unnecessary properties when creating the node (the minimal set is IPAddress, EngineID, ObjectSubType)

                                   

                                  And some other things that I can't validate without more knowledge of your system:

                                   

                                  * EngineID hard-coded to "2" - is this correct?

                                  * The CredentialID is hard-coded to "27" - is this correct?

                                   

                                  Also, to be a complete script you would also need to add the appropriate pollers. See https://github.com/solarwinds/OrionSDK/blob/master/Samples/PowerShell/CRUD.AddWMINode.ps1  for an example.

                                    • Re: Create WMI Node via API Request
                                      royaltigerfan
                                      [2019-01-07 13:53:35.586] [I] Executing REST request with dynamic credentials: *REMOVED*
                                      [2019-01-07 13:53:35.587] [I] Query string: /SolarWinds/InformationService/v3/Json/Create/Orion.Nodes
                                      [2019-01-07 13:53:35.588] [I] Base URL: https://localhost:17778
                                      [2019-01-07 13:53:36.690] [I] Content as string: "swis://localhost/Orion/Orion.Nodes/NodeID=11455"
                                      [2019-01-07 13:53:36.692] [I] Status code: 200
                                      [2019-01-07 13:53:36.693] [I] Query Solarwinds node name and nodeid: "swis://localhost/Orion/Orion.Nodes/NodeID=11455"
                                      [2019-01-07 13:53:36.695] [I] Solarwinds NodeID: NodeID=11455
                                      [2019-01-07 13:53:36.696] [I] Status code: 200
                                      [2019-01-07 13:53:36.697] [I] Create Solarwinds Node Completed for HostNameSample
                                      [2019-01-07 13:53:36.725] [I] Base URL: https://localhost:17778
                                      [2019-01-07 13:53:37.685] [I] Credential ID Selected: 27
                                      [2019-01-07 13:53:37.686] [I] System Setting Name Defined: WMICredential
                                      [2019-01-07 13:53:37.687] [I] swwmi: {"NodeID":"11455", "SettingName":"WMICredential", "SettingValue":27}
                                      [2019-01-07 13:53:37.688] [I] Request full URL: https://localhost:17778/SolarWinds/InformationService/v3/Json/Create/Orion.NodeSettings
                                      [2019-01-07 13:53:37.690] [I] Executing REST request with dynamic credentials: *REMOVED*
                                      [2019-01-07 13:53:37.691] [I] Query string: https://localhost:17778/SolarWinds/InformationService/v3/Json/Create/Orion.NodeSettings
                                      [2019-01-07 13:53:37.692] [I] Base URL: https://localhost:17778
                                      [2019-01-07 13:53:38.789] [I] Content as string: "swis://localhost/Orion/Orion.NodeSettings/NodeSettingID=618035"
                                      [2019-01-07 13:53:38.791] [I] Status code for credential response: 200
                                      [2019-01-07 13:53:38.799] [I] OK

                                       

                                      Here is an output of the execution of running the create node script and attempting to assign the WMICredential.

                                       

                                      "Using fixed string offsets to extract the new NodeID from the return Uri." - I agree this could be done using another method, but works as you can see to grab the node value returned in line 07 above.

                                       

                                      "Supplying unnecessary properties when creating the node (the minimal set is IPAddress, EngineID, ObjectSubType)" - I've attempted to remove those properties down to just IPAddress, EngineID, ObjectSubType and receive the same error.

                                       

                                      "EngineID hard-coded to "2" - is this correct?" - Yes

                                       

                                      "The CredentialID is hard-coded to "27" - is this correct?" - Yes, this is the ID shown when querying the database for a confirmed working account against other WMI nodes.

                                       

                                      So are you thinking that the node will fail to allow me to edit its properties because pollers aren't assigned to it when the node is created?