Machine already belongs to another ControlUp organization
    • Dark
      Light
    • PDF

    Machine already belongs to another ControlUp organization

    • Dark
      Light
    • PDF

    Article summary

    Issue: ControlUp Agent Error

    Failed to open connection to remote agent.

    Agent error

    This machine (MachineName) only accepts connections from organization (OrgNameA)

    Solution

    A managed machine can only belong to a single ControlUp organization at a time.
    If you no longer have access to the ControlUp organization from which the agent was deployed, disconnect this machine using the following steps:

    1. Remote connect to the agent machine and stop the cuAgent service.
    2. Delete the following registry key:
      HKLM\Software\Smart-X\ControlUp\Agent
    3. From the Real-Time Console > Agent Settings > click Copy under Agents Authentication Key.
      image.png
    4. From the agent machine, under HKLM\SOFTWARE\Smart-X\ControlUp\Agent\Communication, add the copied Authentication Key to the AuthKey registry key.
      image.png
    5. Start the cuAgent service.

    If you have multiple machines with this issue, you can create a text file with all machines and save it on a machine from which you have access to those agent machines. In our example, we use ServerList.txt
    image.png

    As an administrator, run the following PowerShell script. As part of this script, it connects to all machines based on the text file, stops the cuAgent service, deletes all agent-related registry keys, and restarts the service.

    $ServerList = Get-Content -LiteralPath c:\tmp\ServerList.txt
    Foreach ($i in $ServerList) {
    sc.exe \\$i stop cuagent
    reg.exe delete \\$i\HKLM\Software\Smart-X\ControlUp\Agent /va /f
    sc.exe \\$i start cuagent
    }  
    

    Was this article helpful?