Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

Ambiguous Error with Orion SDK and Powershell

$
0
0

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


Viewing all articles
Browse latest Browse all 2677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>