Install the Software
Install the gateway and cloud agent software. A gateway is an agent that acts as a channel between Oracle Management Cloud and all other Oracle Management Cloud agents.
About Customizing Response Files
Use the Oracle Management Cloud User Interface to download the agent software install bundle ZIP file onto your host. You can download the file from any tenant and use it to install and register agents against other tenants.
When you download and extract the agent ZIP file, you get a response file (.rsp
file) along with the installation script. This .rsp
file is a template of the response file and you will need to edit the file to perform the installation. It’s recommended that you create a copy of the original response file, and then edit the copy specifying the values of the installation parameters.
-
Use the Cloud Agent Response File to install a Cloud Agent.
-
Use the Gateway Response File to install a gateway.
The following is some useful information about a response file:
-
The response file should always be a plain text (UTF-8) character set file, so that the
AgentInstall.sh
script can parse it. -
A response file is not platform-specific or release-specific. You can create or update the response file and keep using it for any platform and for any future installations unless a new parameter is added to the file.
-
You can save the response file in the same location where you’ve saved your
AgentInstall.sh
script, or you can save the response file in a shared or mounted location, which can be accessible from multiple hosts. This way you can have the response file in a single location and use the same response file for agent installation on multiple hosts. -
The response file lists all the supported parameters.
-
If your environment details remain the same, you can use the same parameter values without editing the response file again.
Note:
Because the passwords that you specify in the response file are in plain text, you need to adequately protect the response file or delete the it as soon as the installation process completes.Configure the Response File for a Gateway
Edit the Gateway Response File (gateway.rsp
) and provide values for the parameters that are required to install a gateway. The values specified in this file are used by the installer to install the agent.
The response file lists all the parameters required to install a gateway. When you download and extract the gateway ZIP file, a sample gateway.rsp
response file is provided as a template. Create a copy of the original response file, and then edit the copy specifying the values of the installation parameters.
The following table lists the parameters required for gateway installation.
Parameter | Description | Notes |
---|---|---|
or
|
Name of the tenant where Oracle Management Cloud is running. You can get the The |
Example: |
|
Key to validate the identity of the tenant and the authenticity of the installation. You can get the registration key from Oracle Management Cloud Dashboard, by navigating to Administration > Agents > Manage Registration Keys. |
Example: |
|
Empty directory where the agent must be installed on the host machine. If the given directory is not present, then a directory is created during installation. Note: For Windows, the length of the directory path including the drive letter should be less than 23 characters. |
Example: Linux: Windows: |
or
|
The absolute URL including the protocol that is required to connect to Oracle Management Cloud for uploading data for the specific |
Example: |
Before you begin, download the gateway agent software.
See the log file located under <AGENT_ZIP_FILE_EXTRACTED_DIRECTORY>/AgentInstall_<timestamp>.log
for more details. Fix any errors before installing the gateway.
Install the Gateway
Install a gateway on a host that has access to the Internet, so that all other agents communicate with Oracle Management Cloud using the host that has the gateway installed.
You install a gateway by running the AgentInstall.sh
script from the command-line. The AgentInstall.sh
script uses the parameters that you defined in the response file (gateway.rsp
).
Before you begin, verify that you have completed the following prerequisites:
-
Review the Considerations for the Environment, Agent Base Directory, and Network.
-
Configure the parameters in the response file.
-
Extracted the gateway agent binary ZIP file to a directory in the host where you’ll install the gateway.
-
Run the prerequisite check to confirm that your host meets the prerequisites to perform a seamless installation.
Typically, do not install a gateway as a root user.
Configure the Response File for the Cloud Agent
Edit the Agent Response File (agent.rsp
) and provide values for the parameters that are required to install a cloud agent that uses a gateway to communicate with Oracle Management Cloud.
The response file lists all the parameters and values required to install a cloud agent. The values specified in this file are used by the installer to install the agent.
When you download and extract the agent ZIP file, a sample response file, agent.rsp
, is provided as a template. It’s recommended that you create a copy of the original response file, and then edit the copy specifying the values of the installation parameters.
The following table lists the parameters required for an agent installation that uses a gateway to communicate with Oracle Management Cloud.
Parameter | Description | Notes |
---|---|---|
or
|
Name of the tenant where Oracle Management Cloud is running. You can get the The |
Example: |
|
Key to validate the identity of the tenant and the authenticity of the installation. You can get the registration key from the Oracle Management Cloud Dashboard, by navigating to Administration > Agents > Manage Registration Keys. |
Example: |
|
Empty directory where the agent must be installed on the host machine. If the given directory is not present, then a directory is created during installation. Note: For Windows, the length of the directory path including the drive letter should be less than 23 characters. |
Example: Linux: Windows: |
or
|
The absolute URL including the protocol that is required to connect to Oracle Management Cloud for uploading data for the specific |
Example: |
|
If cloud agent is communicating to Oracle Management Cloud using a gateway, then provide the Fully Qualified Domain Name (FQDN) of the gateway. When you install the cloud agent, make sure you provide the same gateway host name that was used to install the gateway. For example, when deploying the gateway, if you specify |
Example: GATEWAY_HOST=testgateway.test.oracle.com |
|
When a cloud agent uses a gateway to communicate with Oracle Management Cloud, you must specify the gateway port. You can obtain the port number by executing the following command:
|
Example: GATEWAY_PORT=4472 |
|
Address of your proxy server to be used for connection. Ensure that you don't pass the |
Example: |
|
Port of your proxy server. |
Example: |
|
User name required to access your proxy server. |
Example: |
|
Password required to access your proxy server. |
Because the passwords that you specify in the response file are in plain text, protect the response file or delete the file as soon as the installation process completes. |
|
Authentication realm (if any) to be used to access your proxy server. |
Example: |
|
The port number to which the agent process will be bound. The |
Example: |
If you can ensure that short host names do not have the same value on different hosts in your environment, then you can ignore the FQDN requirement by passing the following argument to the AgentInstall script: ORACLE_HOSTNAME=
host_name
Before you begin, download the cloud agent software.
See the log file located under <AGENT_ZIP_FILE_EXTRACTED_DIRECTORY>/AgentInstall_<timestamp>.log
for more details. Fix any errors before installing the agent.
Install the Cloud Agent Over a Gateway
Install the cloud agent on the target host (either a host on which the Oracle Enterprise Manager agent was deployed or any other host without the Oracle Enterprise Manager agent) that uses a gateway to communicate with Oracle Management Cloud.
Agent installation requires fully qualified domain names (FQDN) for your hosts. For UNIX environments, add the FQDN in the /etc/hosts
file and ensure that it maps to the correct host name and IP address of the host. The recommended format is as follows:
<ip> <fully_qualified_host_name> <short_host_name>
For example, if your host name is myhost
and your domain is example.com
(IPv4):
172.16.0.0 myhost.example.com myhost
For example, if your host name is myhost
and your domain is example.com
(IPv6):
aaaa::111:2222:3333:4444 myhost.example.com myhost
You can run the following commands to verify. You should see the same host name and IP address displayed.
getent hosts <hostname> host <hostname>
In the output, the FQDN must appear in the second field as specified in the /etc/hosts
file. For example, the previous commands should return the following output:
$ getent hosts myhost
172.16.0.0 myhost.example.com myhost
$ host myhost
myhost.example.com has address 172.16.0.0
If you can ensure that short host names do not have the same value on different hosts in your environment, then you can ignore the FQDN requirement by passing the following argument to the AgentInstall
script: ORACLE_HOSTNAME=host_name
-
Review the Considerations for the Environment, Permissions, and Network.
-
Configure the parameters in the response file.
-
Extracted the agent binary ZIP file to a directory in the host where you’ll install the agent.
-
Run the prerequisite check to confirm that your host meets the prerequisites to perform a seamless installation.