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

OSMH: How To Enable The OSMH Plugin Using OCI CLI

edited Nov 28, 2024 8:48AM in Linux

Applies To:

Oracle Cloud Infrastructure
OS Management Hub (OSMH)

Goal:

How to enable the OSMH Plugin using OCI CLI.
This is useful when a user cannot enable the OSMH Plugin through the OCI Console.

Solution:

  • Install oci-cli according to document: https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliinstall.htm

  • Get agent config with command:
    $ curl -H "Authorization: Bearer Oracle" -L http://169.254.169.254/opc/v2/instance/agentConfig > agent_config.json

  • Edit agent_config.json to have "OS Management Hub Agent" enabled:
$ vi agent_config.json
{
"allPluginsDisabled": false,
"managementDisabled": false,
"monitoringDisabled": false,
"pluginsConfig": [
{
"desiredState": "DISABLED",
"name": "Oracle Autonomous Linux"
},
{
"desiredState": "DISABLED",

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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