OCI : How to Enable the OS Management Service Agent service in Oracle Linux 8 Instances
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:
Tagged:
0