solarwinds / OrionSDK

SDK for the SolarWinds Orion platform, including tools, documentation, and samples in PowerShell, C#, Go, Perl, and Java.
https://thwack.com/OrionSDK
Apache License 2.0
397 stars 138 forks source link

SwisPowershell v3 doesnt work for NCM query. #219

Open wibbletron opened 4 years ago

wibbletron commented 4 years ago

When running a query via Get-SwisData against Cirrus.Nodes it returns zero results when using the default connection (v3).

PS C:\> $swis = Connect-Swis -UserName "something" -Password "something" -Hostname "mySWHost"
PS C:\> Get-SwisData -Query "select corenodeid from cirrus.nodes" -SwisConnection $swis
PS C:\>

When forcing the connection to use v2 it works.

PS C:\> $swis2 = Connect-Swis -UserName "something" -Password "something" -Hostname "mySWHost" -v2
PS C:\> Get-SwisData -Query "select corenodeid from cirrus.nodes" -SwisConnection $swis2
116
117
121
122
125
248
PS C:\>

Is this a bug or a misconfigured NCM?

SwisPowershell: 2.5.0.214 NCM: 8.0.0.2399