Thursday, March 23, 2017

Oracle Management Cloud - Install the Cloud Agent

This is my first experience with the Oracle Cloud, in particular with Oracle Management Cloud (OMC). In this first post I will guide you through the installation of the Cloud Agent in a Linux host.

First you have to login to OMC and click on the navigation icon below.

It' going to open the navigation screen that contains 4 sections; Home, Cloud Services, Explorers and Administration.

In the Administration section click on Agents.
In this page we are looking into 2 important items for us. Registration Keys and Download.

The way I see the Registration Keys is like the Agent Registration password in OEM 13c. You need a valid Registration Key to deploy your Cloud Agent. So, click on that link and verify that you have a Registration Key; if not, you can create one.   

Then proceed to download the agent by clicking on the Download link.

In order to install the Cloud Agent in the Linux host there are some pre-reqs to be met.
First verify that you have acl and libaio.i686 packages installed.

# rpm -q acl

# rpm -qa|grep libaio

Then move the previously downloaded into an staging directory and unzip it.

$ mkdir –p /home/oracle/omc
$ mv /home/oracle/omc
$ cd /home/oracle/omc
$ unzip
$ $ ls
AgentInstall.bat  README

Create a folder to install the Cloud Agent.

$ mkdir –p /u01/omc/infra

Verify that the server has the FQN configured (name.domain_name).

$ hostname

Finally install the Cloud Agent.

$ ./ AGENT_TYPE=cloud_agent AGENT_REGISTRATION_KEY=R******************1  AGENT_BASE_DIR=/u01/omc/infra AGENT_PORT=1302 ORACLE_HOSTNAME=ol6-121-plug.localdomain
WARNING: The current cURL version 7.19.7 does not support TLS1.2 protocol; the downloader script will attempt to continue but may not work. Please install 7.49.1 or later versions of cURL for error-free execution.
Downloading lama agent software ...
Generating ...
Extracting Agent Software ...
Installing the Agent ...
Registering the Agent ...
Downloading Certificates ...
Configuring the Agent ...
Cleanup temporary files …

Then you have to run the root script required after the installation.

# /u01/omc/infra/core/1.15.0/
/etc exist

Check the status of the Cloud Agent.

$ ./omcli status agent
Oracle Management Cloud Agent 
Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
Version                : 1.15.0
State Home             : /u01/omc/infra/agent_inst
Log Directory          : /u01/omc/infra/agent_inst/sysman/log
Binaries Location      : /u01/omc/infra/core/1.15.0
Process ID             : 9828
Parent Process ID      : 9790
URL                    : https://ol6-121-plug.localdomain:1302/emd/main/
Started at             : 2017-03-20 20:49:15
Started by user        : oracle
Operating System       : Linux version 3.8.13-26.2.2.el6uek.x86_64 (amd64)
Data Collector enabled : false
Sender Status          : FUNCTIONAL
Gateway Upload Status  : FUNCTIONAL
Last successful upload : 2017-03-20 21:04:39
Last attempted upload  : 2017-03-20 21:04:38
Pending Files (MB)     : 0.01
Pending Files          : 14
Backoff Expiration     : (none)

Agent is Running and Ready

Now if you go to the OMC portal, the agent will show up automatically.

Want to learn more about Oracle Management Cloud? There's a free hands on lab "Cloud Experience" at Collaborate 2017 for all attendees on Wednesday 4/5/17.