I'm looking at the following link for samples of powershell code that will rediscover a node that is already established but just needs to be rediscovered because of enabled interfaces that need to be monitored. I've tried a couple of the discovery scripts only for them to error out.
https://github.com/solarwinds/OrionSDK/tree/master/Samples/PowerShell
I've tried
https://github.com/solarwinds/OrionSDK/blob/master/Samples/PowerShell/NPM.DiscoverAndAddInterfacesOnNode.ps1
but get
Invoke-SwisVerb : Verb Orion.NPM.Interfaces.DiscoverInterfacesOnNode cannot unpackage parameter 0 of type System.Int32
At C:\Users\bestlhewitt\Documents\test.ps1:28 char:15
+ ... iscovered = Invoke-SwisVerb $swis Orion.NPM.Interfaces DiscoverInterf ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Invoke-SwisVerb], FaultException`1
+ FullyQualifiedErrorId : SwisError,SwisPowerShell.InvokeSwisVerb
Is there another script that would be better for this task? Any help would be appreciated.
Thanks,
Lenny