2 Replies Latest reply on Aug 25, 2015 9:54 AM by kjustin1996

    AddNodeToNCM fails via PowerShell


      Is there a compatibility issue with our setup of NPM/NCM, and the SDK? 


      I am trying to add devices to NCM that are already in NPM.  Using the blog entry titled 'PowerShell script that exports Nodes from NPM and imports them into NCM (for Core 2012.1 and after - NPM 10.3 and after)' which provides a framework script - URL https://thwack.solarwinds.com/docs/DOC-167332


      The script fails to add the NCM portion ( AddNodeToNCM )

          Invoke-SwisVerb $target Cirrus.Nodes AddNodeToNCM $newNode.NodeID gives a 'Cannot find assembly' error


      Our environment is setup with NCM 7.2.11, NPM 10.6.3 and SDK 1.7.89

      Source and target are the same ( target = Connect-Swis -Certificate )


      Brief PowerShell output:

      PS C:\Monadmin\scripts> $newNode.NodeID


      PS C:\Monadmin\scripts> $target

      OperationTimeout              Channel                       ClientChannel                 ChannelFactory

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

      01:00:00                      SolarWinds.InformationServ... SolarWinds.InformationServ... System.ServiceModel.Channe...

      PS C:\Monadmin\scripts> Invoke-SwisVerb $target Cirrus.Nodes AddNodeToNCM "$newNode.NodeID"

      Invoke-SwisVerb : Verb Cirrus.Nodes.AddNodeToNCM: Cannot find assembly

      At line:1 char:16

      + Invoke-SwisVerb <<<<  $target Cirrus.Nodes AddNodeToNCM "$newNode.NodeID"

          + CategoryInfo          : InvalidOperation: (:) [Invoke-SwisVerb], FaultException`1

          + FullyQualifiedErrorId : SwisError,SwisPowerShell.InvokeSwisVerb