Just starting to experiment using OrionSDK w/ Powershell to bulk add new nodes. Working with the script and just a single node for testing, cannot get the script to work correct. Error I get is:
Get-SwisData : The socket connection was aborted. This could be caused by an error processing your message or a
receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was
'00:00:59.9364345'.
At C:\scripts\Bulk-Add-Nodes.ps1:30 char:23
+ ... odeExists = Get-SwisData $swis "SELECT Uri FROM Orion.Nodes WHERE Cap ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-SwisData], CommunicationException
+ FullyQualifiedErrorId : System.ServiceModel.CommunicationException,SwisPowerShell.GetSwisData
I've checked to make sure I can communicate with the server via 17777/17778, and I've tried using both hard coded credentials in the script and using the -Trusted to pass along my workstation credentials.
Any ideas? I'd like to get past this basic hump and to be able to start using scripts more.