After successfully disabling the Management Agent plugin on a
Compute Instance, the Management Agent process is shutdown immediately. This
operation leaves the Java runtime (JRE) on the disk which may get flagged as
a potential security risk in the future if/when new vulnerabilities are
discovered against that version of the Java runtime. To address it, a manual
cleanup of the software and state directories are needed. For details, see
below:
Remove the following directories on disk as a user with
elevated
privileges:
The above should only be done if you stopped using
Management Agent and have no plans to resurrect the agent in the
future. If you plan to use Management Agent in the future, then
you should enable auto-upgrade or get the agent regularly
upgraded manually.
Disable Management Agent Using
the Console
To see if the Management Agent plugin is disabled for an instance:
Open the navigation menu and click Compute. Under
Compute, click Instances.
Click the instance that you're interested in.
Click the Oracle Cloud Agent tab.
Toggle the Disabled switch for the Management Agent
plugin.
Disable Management Agent Using
Compute API
For information about using the API, see REST APIs.
Use these API operations to manage the Management Agent as an Oracle
Cloud Agent plugin:
LaunchInstance -
enables or disables plugins, or stops all plugins, when you create an
instance.
UpdateInstance -
enables or disables individual plugins, and stops or starts all plugins,
for an existing instance.
The following is an extract from the Java Sample found in the
LaunchInstance or UpdateInstance API
operations which allows the user to enable Management Agent during Launch or Update
of the compute instance respectively:
Where .name("Management Agent") indicates it's for Management Agent
plugin and
.desiredState(InstanceAgentPluginConfigDetails.DesiredState.Disabled).build()))).build())
indicates to disable the Management Agent plugin.
Upgrade Management Agents on
Compute Instances 🔗
There are two methods available for upgrading the Management Agents:
Management Agents service supports automatic upgrade.
The enable auto upgrade feature is set at tenancy level: Users can enable auto
upgrade for all management agents residing in their current tenancy.
Default Auto Upgrade Status: Disable.
Requirements:
Permission: The MGMT_AGENT_UPDATE permission at
the tenancy root compartment is required to enable auto upgrade feature. Use
the following policy syntax:
ALLOW GROUP <group_name> TO USE management-agents IN TENANCY
Management Agent Source
Credentials on Compute Instances 🔗
When a Management Agent is running on a compute instance, it needs to
collect data from different sources. In some cases, source credentials may be
needed.
Management Agent Audit Logs on
Compute Instances 🔗
The Management Agent service supports logging by the Audit service which
automatically records calls to all supported Oracle Cloud Infrastructure public
application programming interface (API) endpoints as log events. For more
information, see Management Agent Audit Logs.