Using SDK version 1.5 with NPM 10.2.2
It seems I'm having problems connecting to my Solarwinds server using SDK. I
try "$swis = Connect-Swis -host 'solarwindsserver.domain.com'" I get
prompted for a user name and password but it doesn't seem to matter what I
enter being it always seems to work. I then try "Get-SwisData $swis
'SELECT NodeID, Caption FROM Orion.Nodes'" to see if I can read the
database but get the below error in PowerShell]
Get-SwisData : There was no endpoint listening at
net.tcp://nau-mon01.naucom.com:17777/SolarWinds/InformationService/v3
/Orion/ssl that could accept the message. This is often caused by an
incorrect address or SOAP action. See InnerExcepti
on, if present, for more details.
At line:1 char:13
+ Get-SwisData <<<< $swis 'SELECT NodeID, Caption FROM
Orion.Nodes'
+ CategoryInfo : NotSpecified: (:) [Get-SwisData], EndpointNotFoundException
+ FullyQualifiedErrorId :
System.ServiceModel.EndpointNotFoundException,SwisPowerShell.GetSwisData
I found this post http://thwack.solarwinds.com/thread/46537
suggesting that the query may be returning too many results but adding a where
clause "Get-SwisData $swis 'SELECT NodeID FROM Orion.Nodes WHERE SysName
like somenode'" produces the following error leading me to believe the
thread isn't related to my problem
Get-SwisData : There was no endpoint listening at
net.tcp://nau-mon01.naucom.com:17777/SolarWinds/InformationService/v3
/Orion/ssl that could accept the message. This is often caused by an
incorrect address or SOAP action. See InnerExcepti
on, if present, for more details.
At line:1 char:13
+ Get-SwisData <<<< $swis 'SELECT NodeID, Caption FROM
Orion.Nodes WHERE SysName like nau-mon1'
+ CategoryInfo : NotSpecified: (:) [Get-SwisData], EndpointNotFoundException
+ FullyQualifiedErrorId :
System.ServiceModel.EndpointNotFoundException,SwisPowerShell.GetSwisData
I am able to use SWQL Studio connecting with Server Type "Orion (v2)
AD" and I'm able to run queries. This leads me to believe "$swis =
Connect-Swis -host 'solarwindsserver.domain.com'" needs something to tell
it to connect using "Orion (v2) AD" but there doesn't seem to be an
option from looking at "Orion SDK.pdf".
I try "$swis = Connect-Swis -v2 -host 'solarwindsserver.domain.com'" and get the following error when running
"Get-SwisData $swis 'SELECT NodeID, Caption FROM Orion.Node WHERE
SysName=nau-mon01.naucom.com'"
Get-SwisData : Invalid username or password.
At line:1 char:13
+ Get-SwisData <<<< $swis 'SELECT NodeID, Caption FROM
Orion.Node WHERE SysName=nau-mon01.naucom.com'
+ CategoryInfo : InvalidOperation: (:) [Get-SwisData],
MessageSecurityException
+ FullyQualifiedErrorId : SwisError,SwisPowerShell.GetSwisData
When using the same user name and password I use for SWQL Studio