8 Replies Latest reply on Jun 20, 2017 11:32 AM by tdanner

    Powershell - get-swisdata

    chrisagardner63

      Trying to get a handle on this....I want to work with unmanaging one node, and trying to get the nodeID using something like below.

      This is in the testing phase, trying to get handle on the PS commands from SDK

      I can get a list from:

      get-swisdata $swis "SELECT NodeID, Caption FROM Orion.Node"

       

      I am trying to test using one node named - dtcorp20013.  Thought I could use:

      get-swisdata $swis "SELECT NodeID, Caption FROM Orion.Nodes Where Caption like dtcorp20013"

      I tried using a variable and got the same error message below....

       

      But I get an error:

      Get-SwisData : Cannot resolve property dtcorp20013

      At line:1 char:13

      + get-swisdata <<<<  $swis "SELECT NodeID, Caption FROM Orion.Nodes Where Caption like dtcorp20013"

          + CategoryInfo          : InvalidOperation: (:) [Get-SwisData], FaultException`1

          + FullyQualifiedErrorId : SwisError,SwisPowerShell.GetSwisData

       

      Any thoughts, is there more detailed documentation on the commands, properties, etc (anything along the lines of SS64?)