This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Powershell Invoke-SwisVerb

Invoke-SwisVerb $swis Orion.NPM.Interfaces DiscoverInterfacesOnNode 89

Id                   : 1

xmlns                : http://schemas.datacontract.org/2004/07/SolarWinds.InformationService.Contract

d1p1                 : http://schemas.solarwinds.com/2008/NPM

i                    : http://www.w3.org/2001/XMLSchema-instance

z                    : http://schemas.microsoft.com/2003/10/Serialization/

DiscoveredInterfaces : DiscoveredInterfaces

Result               : InvalidNode

Node ID 89 is definitely valid, but the result reports InvalidNode. I looked at Orion.NPM.Interfaces via SWQL Studio and I didn't find a function like "DiscoverInterfacesOnNode". Since something is returned, I assume the verb is valid, but I don't really know if that's true.

I derived this example from the Michael Halpin Powershell module for PowerOrion, but it seems like it may be invalid now? Is there some other method for interface discovery that should be used?

  • I've discovered that if the ObjectSubType is SNMP, the command works, if it's WMI it fails. Why would the ObjectSubType matter? Here is what I got with an SNMP node:

    Invoke-SwisVerb -SwisConnection $swis -EntityName Orion.NPM.Interfaces -Verb DiscoverInterfacesOnNode 429

    Id                   : 1

    xmlns                : http://schemas.datacontract.org/2004/07/SolarWinds.InformationService.Contract

    d1p1                 : http://schemas.solarwinds.com/2008/NPM

    i                    : http://www.w3.org/2001/XMLSchema-instance

    z                    : http://schemas.microsoft.com/2003/10/Serialization/

    DiscoveredInterfaces : DiscoveredInterfaces

    Result               : Succeed

    (Invoke-SwisVerb -SwisConnection $swis -EntityName Orion.NPM.Interfaces -Verb DiscoverInterfacesOnNode 429).DiscoveredInterfaces

    Id                                                Size                                              DiscoveredLiteInterface

    --                                                ----                                              -----------------------

    2                                                 3                                                 {d1p1:DiscoveredLiteInterface, d1p1:Discovered...

    (Invoke-SwisVerb -SwisConnection $swis -EntityName Orion.NPM.Interfaces -Verb DiscoverInterfacesOnNode 429).DiscoveredInterfaces.DiscoveredLiteInterface

    Id          : 3

    ifIndex     : 1

    Caption     : Caption

    ifType      : 24

    ifSubType   : 0

    InterfaceID : 1839

    Manageable  : true

    ifSpeed     : 0

    Id          : 5

    ifIndex     : 2

    Caption     : Caption

    ifType      : 6

    ifSubType   : 0

    InterfaceID : 1840

    Manageable  : true

    ifSpeed     : 0

    Id          : 7

    ifIndex     : 3

    Caption     : Caption

    ifType      : 131

    ifSubType   : 0

    InterfaceID : 0

    Manageable  : true

    ifSpeed     : 0

  • This verb is only supported on SNMP nodes.

  • I guess I've been wasting hours on a lost cause. Are the differences in what is supported for SNMP and WMI documented anywhere?

  • I'm afraid not. Sorry about that.