2 Replies Latest reply on Jul 1, 2015 4:52 PM by mr_future

    SAM API - remotely create nodes

    mr_future

      Hello,

       

      I am brand new to the SAM API.  Is it possible to create nodes by running a script (bash, ideally) on a remote host?  Please give me a general idea of how to get started.

       

      Thanks,

       

      Brandt

        • Re: SAM API - remotely create nodes
          derhally

          Please take a look at the Orion SDK which can now be found here.

           

          There is a sample powershell script that shows how to add nodes to Orion.  

          • Re: SAM API - remotely create nodes
            mr_future

            Because this took me hours to figure out: log into a Windows server on the same network as your Orion server.  Download the Orion SDK here.  See two PDFs in "C:\Program Files (x86)\SolarWinds\Orion SDK\Documentation" for documentation.  In "C:\Program Files (x86)\SolarWinds\Orion SDK\Samples" there are samples of interfacing with the API using various scripting languages.  Powershell seems to be the most developed/favored.  Remember to append this line to the powershell samples:

             

            Add-PsSnapin SwisSnapin