3 Replies Latest reply on Jun 20, 2017 2:11 PM by tdanner

    Scripting help

    bstreet1967

      I am running a PS script that will be used to add servers built with vRealize Automation to Orion. The script has worked in the past with no issue but I am now getting an error stating the endpoints are unreachable.

       

      2017-06-19 05:31:50,870 [57] ERROR SolarWinds.MessageBus.RabbitMQ.EasyNetQLogger - (null) (null) Failed to connect to Broker: 'ServerName', Port: 5671 VHost: '/'. ExceptionMessage: 'None of the specified endpoints were reachable'

      2017-06-19 05:31:50,870 [45] ERROR SolarWinds.MessageBus.RabbitMQ.EasyNetQLogger - (null) (null) Failed to connect to Broker: 'ServerName', Port: 5671 VHost: '/'. ExceptionMessage: 'None of the specified endpoints were reachable'

       

      However, once I connect with the script I can run commands in the powershell window to get my engine ID's as well as a list of managed nodes. However when I try to add a server to Orion I get the above error yet the script result is successful.

       

      PS C:\ Get-SwisData $swis "SELECT EngineID, ServerName, IP, ServerType FROM Orion.Engines"

       

      EngineID ServerName     IP         ServerType

      -------- ----------     --         ----------

             4 ServerName  10.10.1.67 Primary  

             5 ServerName  10.10.1.68 Additional

       

      PS C:\Add2Orion.ps1

      Load Orion Snapin and define Orion server credentials

      Configure the Core

      Configure the Interface

      Configure the Discovery

      Checking Status...

      Checking Status...

      Checking Status...

      Checking Status...

      Checking Status...

      Checking Status...

      Checking Status...

       

      PS C:\ $Result

       

      Result ResultDescription ErrorMessage BatchID                            

      ------ ----------------- ------------ -------                            

           2 Import Finished                ae6791df-2bf2-4a66-8d8e-1f391bd9deea