List resources/volumes for agent managed nodes via SWIS API (Powershell)

Hi all,

I work in an business which is too locked down for WMI, thus we use agents for virtually everything. I'm working on automating the node creation, agent install, volume and interface discovery and editing of the custom properties.

While creating a short script to edit the custom properties for Volume Threshold monitoring, I realised I needed to get the node to discover the volumes in the first place (working backwards is a terrible idea) for me to actually edit the custom properties for said volumes. This is where my problem started.

I cant seem to figure out a way of initiating the "List Resources" through the API. This has been asked many times before, I am well aware, but no working answers have been presented for an agent based platform. There's a verb to list the interfaces, and add them, but seemingly volumes are impossible via anything other than SNMP using the Network Discovery tool.

Unless there is a way of automating the process of adding the node as SNMP, discovering the volumes using the Discovery Tool, and then installing the agent and using the API to change all the monitoring over to agent?

I'm looking for any option here, Invoke, CRUD, Rest, preferably using Powershell but if you have accomplished it in another language, post your code anyway and I'll figure it out emoticons_grin.png

PS - I work almost exclusively with SAM, so servers etc. I can't use solutions that only work with NPM.

Thanks in advance,


  • Hi all,

    this older post was just brought into my attention. And I think I might have good news for you. We implemented this functionality in latest 2019.4 release. Please check KB article Update resources on agent node in bulk for more details.

    Please let me know if that helped or in case of any questions or troubles.


  • Dear ,

    I am delighted to see ,the most awaited automation script available right way and  My current work desperately need - .\ImportListResources.ps1 to execute without errors.

    I have installed Orion.SDK and imported powerOrion into Powershell,

    I am facing below issue, while executing.. "

    .\ImportListResources.ps1 $swis 2 600
    Creating schedule list resources job...
    Waiting until job status will be 'ReadyForImport'...
    Importing list resources...
    Invoke-SwisVerb : Could not load file or assembly 'SolarWinds.Interfaces.Discovery.Strings, Version=,
    Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
    At C:\SAM\New folder\OrionSDK-master\Samples\PowerShell\ImportListResources.ps1:72 char:17
    + ... ortResult = Invoke-SwisVerb $swis "orion.nodes" "ImportListResourcesR ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (:) [Invoke-SwisVerb], FaultException`1
    + FullyQualifiedErrorId : SwisError,SwisPowerShell.InvokeSwisVerb
    Import of ListResources result for NodeId:2 finished with errors.
    At C:\SAM\New folder\OrionSDK-master\Samples\PowerShell\ImportListResources.ps1:76 char:5
    + throw ("Import of ListResources result for NodeId:" + $nodeId + " ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : OperationStopped: (Import of ListR...ed with errors.:String) [], RuntimeException
    + FullyQualifiedErrorId : Import of ListResources result for NodeId:2 finished with errors.

    Inorder to run this script, Do i still need to have ''SwisPowerShell'' module also installed.. Kindly please guide through

  • In SAM 2019.1 , Noticed that in Swis ,it is looking for version '' ,while actually we have a updated version '' in Orion application files

    Application file: SolarWinds.Interfaces.Discovery.Strings.dll

    Path :C:\Program Files (x86)\SolarWinds\Orion\Interfaces.Discovery

    Current Version :

    Can some one, help to solve the issues, please

Reply Children
No Data