Unregistering an Instance
Unregister an instance from OS Management Hub to no longer have it managed by the service.
- What happens to the instance when it's unregistered?
-
For Oracle Linux instances, unregistering restores the yum or DNF repository files to their state before the instance was registered with the service.
Unregistering OCI instances places an
osmh-agent-unregister
file on the system to ensure it doesn't automatically re-register with the service using a default profile. You must remove this file if you want to re-register the instance. See Instance was previously unregistered.Unregistering a non-OCI instance removes the OS Management Hub agent plugin from the instance. You can also optionally remove the Management Agent software from the system.
- To unregister an instance:
- Under List scope, select the compartment that contains the instance.
- Click the name of the instance.
- Review the instance's job history and reports. This information is no longer available after you unregister the instance. See the following:
- Click Unregister.
- (Optional)
For on-premises or third-party cloud instances, if you no longer need to use the Management Agent service, remove the
mgmt_agent
package.- Oracle Linux 8 or 9
-
sudo dnf remove oracle.mgmt_agent
- Oracle Linux 7
-
sudo yum remove oracle.mgmt_agent
To remove the corresponding Management Agent resource from the Management Agent Cloud Service (MACS) in OCI, see Remove Management Agents.