OCI – Operations Insights – Agent install

To deploy the management agent

Download the rpm on the target system
oracle.mgmt_agent.231002.2040.Linux-x86_64.rpm
Install the agent with rpm
sudo rpm -ivh oracle.mgmt_agent.231002.2040.Linux-x86_64.rpm
Sudo to mgmt_agent to create the response file
sudo -u mgmt_agent sh
Create the response file

Create /usr/share/mgmt_agent/input.rsp with the following content

ManagementAgentInstallKey = Mi4wLGV1LWZyYW5rZnVydC0xLG9jaWQxLnRlbmFuY3kub2MxLi5hYWFhYWFhYWZpcGU0bG1vdzdyZnJuNWYzZWdwZzN4Z3VyNnYycTJ3Z3ZiM2lkNGVod3VqbnB1NW1iNXEsb2NpZDEubWFuYWdlbWVudGFnZW50aW5zdGFsbGtleS5vYzEuZXUtZnJhbmtmdXJ0LTEuYW1hYWFhYWFubXZyYmVhYXFyaWQ2dXNqZnJ6cnR3NXJ3Nzdud2hleWhsc2FnYWFzb21haHh6cHd6M2JxLElEbkM4TUlJUkZic2FxdHE2MzBtNHpmN2ROanlBaDk5MGpQOTdxejc=
CredentialWalletPassword = <pwd>
GatewayPort = 4480
ProxyHost = <proxy ip>
ProxyPort = 80
Configure the agent
sudo /opt/oracle/mgmt_agent/agent_inst/bin/setup.sh opts=/usr/share/mgmt_agent/input.rsp
Configure the ACL rule

For example:

sudo setfacl -m u:mgmt_agent:rx /opt/oracle.ExaWatcher/archive/
sudo setfacl -R -m u:mgmt_agent:rx /opt/oracle.ExaWatcher/archive/Vmstat.ExaWatcher/
sudo setfacl -d -m u:mgmt_agent:rx /opt/oracle.ExaWatcher/archive/Vmstat.ExaWatcher/