I have been reading through the PowerShell section of the Orion SDK and this thwack post and have encountered an error.
The powershell script is a stripped down version of the one from the linked post.
$source = Connect-Swis .......... $sourceNodes = Get-SwisData $source "SELECT Uri, IPAddress, Caption, NodeID FROM Orion.Nodes" foreach ($sourceNode in $sourceNodes) { Write-Host "Found" $sourceNode.Caption "(" $sourceNode.IPAddress ")" $sourceNode.Uri $sourceNodeProps = Get-SwisObject $source $sourceNode.Uri Write-Host $sourceNodeProps } |
Connect-Swis and Get-SwisData execute fine, and the first write-host prints what is expected.
Get-SwisObject throws the following error
Get-SwisObject : The message with Action 'http://schemas.solarwinds.com/2007/08/informationservice/InformationService/Read' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None). |
Same thing with New-SwisObject.
I followed the instructions for install the Snapin in the Orion SDK document.
The script is running on the same machine as SolarWinds.
Due to certification requirements I am working with NPM 10.1, APM 3.5, and NCM 6.0