8 Replies Latest reply on Feb 4, 2016 5:59 AM by mulder85gr

    Cannot get interface caption using discovery through PowerShell and DiscoverInterfacesOnNode verb

    pjc-sjohnson

      Hi,

       

      I am trying to do some automatic interface additions based on interface type and on interface name. I have slightly modified the PowerShell example to discover interfaces on nodes in order to get it working, however, when it comes down to Caption, the value is "Caption" for *all* interfaces. Am I missing a special option in order to get the proper interface name, or is this not supported? I have tried to get more documentation on the DiscoverInterfacesOnNode or DiscoveredLiteInterface XML output, but I haven't had any luck there either.

       

      This is an copy from the script output:

       

      > & 'C:\Program Files (x86)\SolarWinds\Orion SDK\Samples\PowerShell\NPM.DiscoverAndAddInterfacesOnNode.ps1'

       

      Id          : 3

      ifIndex     : 1

      Caption     : Caption

      ifType      : 6

      ifSubType   : 0

      InterfaceID : 50653

      Manageable  : true

      ifSpeed     : 0

       

      Id          : 5

      ifIndex     : 2

      Caption     : Caption

      ifType      : 6

      ifSubType   : 0

      InterfaceID : 50664

      Manageable  : true

      ifSpeed     : 0

       

      Id          : 7

      ifIndex     : 3

      Caption     : Caption

      ifType      : 6

      ifSubType   : 0

      InterfaceID : 0

      Manageable  : true

      ifSpeed     : 0

       

      [...]

       

      If its not possible, is there a better way to get the interface name prior to importing it?


      Thanks!