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

    SAM API - remotely create nodes




      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.





        • Re: SAM API - remotely create nodes

          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

            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