You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI : How to Enable the OS Management Service Agent service in Oracle Linux 8 Instances

edited Nov 13, 2022 1:56PM in Linux

APPLIES TO:

Oracle Cloud Infrastructure - Version N/A and later

Linux x86-64


GOAL

How to enable the OS Management Service Agent plugin in Oracle Linux 8 instances?


SOLUTION

1. Login to the instance. 


2. Make sure latest version of Oracle Cloud Agent is installed.

$ sudo yum install oracle-cloud-agent


3. Run the following "sed" utility script to enable the OS Management Service Agent plugin.

$ sudo sed -i.saved -e '/^  osms:/,/^  [a-z]*:/{
s/\(.*disabled:.*\)true/\1false/
/^.*disableByOs:$/,/^  [a-z]*:/{
/^.*-.*Oracle Linux Server.*:$/d
/^.*-.*8.x/d}}' /etc/oracle-cloud-agent/agent.yml

This script updates the osms configuration in the /etc/oracle-cloud-agent/agent.yml file as follows:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!