I am trying to shut down all ports that are down for my company with a powershell script that uses the Orion SDK. I had a previous error message that was concerned with the data type I was using. It turns out AdministrativeShutdown required an array of integers it's 2nd positional argument.
The line of code is as follows:
Invoke-SwisVerb $swisOrion.UDT.Port AdministrativeShutdown @($port.NodeID,$portIDArray)
The Rest of the code works. I just can't make sense of this error message.
The Error:
Invoke-SwisVerb : 5250
At C:\Users\vollrathco\Documents\Ps1 Script\portConfiguration.ps1:30 char:1
+ Invoke-SwisVerb $swis Orion.UDT.Port AdministrativeShutdown @($port.NodeID $p ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Invoke-SwisVerb], FaultException`1
+ FullyQualifiedErrorId : SwisError,SwisPowerShell.InvokeSwisVerb
My Thoughts:
Access permissions? Maybe the node configuration... but they are all set up with SNMP-RW