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. Click the name of the Management station.
    8. On the management station details page, click the Configuration tab.
    9. Record the Hostname and Proxy listening port values for use in the steps that follow.
    10. Log in to the instance as a user with sudo privileges
    11. Use the instance-setup.sh script to update the station settings.
      sudo /opt/oracle/mgmt_agent/plugins/osmh/bin/instance-setup.sh --proxy-host <STATION_HOSTNAME> --proxy-port <STATION_PROXY_PORT>
      Note

      If you're switching between high availability (HA) peer stations, you don't need to run the script. The hostname and proxy settings are identical for the HA stations. See Configuring High Availability for Management Stations.

  • 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.