Switching Management Stations

Change which management station an instance is associated with in OS Management Hub.

    1. Open the navigation menu and click Observability & Management. Under OS Management Hub, click Instances.
    2. Under List scope, select the compartment that contains the instance.
    3. Click the name of the instance.
    4. Next to the management station name, click Edit.
    5. Select a new management station to associate with the instance.
    6. Click Save Changes.
    7. Log in to the instance as a user with sudo privileges
    8. Open the /opt/oracle/mgmt_agent/agent_inst/config/emd.properties file and update the following values.
      GatewayServerHost = <MANAGEMENT_STATION_HOST_NAME>
      GatewayServerPort = <MANAGEMENT_STATION_PROXY_PORT>
    9. Restart the management agent.
      sudo systemctl restart mgmt_agent
  • Use the oci os-management-hub managed-instance update command and required parameters to switch the associated management station.

    oci os-management-hub managed-instance update --managed-instance-id ocid --primary-station-id ocid [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • Run the UpdateManagedInstance operation to switch the management station associated with the instance.