Switching Management Stations
Change which management station an instance is associated with in OS Management Hub.
- Under List scope, select the compartment that contains the instance.
- Click the name of the instance.
- Next to the management station name, click Edit.
- Select a new management station to associate with the instance.
- Click Save Changes.
- Click the name of the Management station.
- On the management station details page, click the Configuration tab.
- Record the Hostname and Proxy listening port values for use in the steps that follow.
- Log in to the instance as a user with sudo privileges
-
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.