Hello everyone!
This is my first post here, so please be understanding if I made any mistakes.
My apologies if this question is too basic and/or has been answered before.
My issue:
I recently started out with the OrionSDK on PowerShell and up until now everything seemed to work as expected - except cancelling NCM transfers.
Whenever I try to cancel a running transfer using the provided code below, it gets stuck in a permanent download state.
I checked using the 'Cirrus.NodeProperties'(IsActiveTransfer) and 'NCM.TransferResults'(Status) tables and afaik, there isn't any timeout.
I can cancel the stuck transfer just fine using either the web console or the REST-API (using Postman).
It is not possible for me to cancel the downloads via SWQL Studio (Cirrus.ConfigArchive --> CancelTransfers).
I tried to follow the official wiki page for 'NCM Config Transfer'.
I am unsure if the issue is caused by the SwisPowerShell module or if I made a stupid mistake.
Thanks in advance
Philipp
FYI: I am running NCM 7.8 and SwisPowerShell 2.5.0.214. If any of you can confirm that it works on newer versions, please don't hesitate.
Sample PowerShell Code:
Import-Module SwisPowerShell
$oSolarWindsConnector =
Connect-Swis `
-UserName "..." `
-Password "..." `
-Hostname "..."
$sTestNodeGuid = "5e36bf93-55ec-416d-9a9f-16fe8ec79a52"
$oXmlResponse =
Invoke-SwisVerb `
-SwisConnection $oSolarWindsConnector `
-EntityName "Cirrus.ConfigArchive" `
-Verb "DownloadConfig" `
-Arguments @([guid[]]$sTestNodeGuid, "Running")
$sStartedTransferId = $oXmlResponse.guid
Write-Warning $sStartedTransferId
Start-Sleep -Seconds 3
$oXmlResponse =
Invoke-SwisVerb `
-SwisConnection $oSolarWindsConnector `
-EntityName "Cirrus.ConfigArchive" `
-Verb "CancelTransfers" `
-Arguments @(, [guid[]]$sStartedTransferId)
Write-Host -ForegroundColor Blue $oXmlResponse.OuterXml
Exit 0