In this blog, we are going to cover How to update Java on Oracle Infrastructure Cloud agents?, Topic we are going to cover
- What are cloud Agents?
- Install the Cloud Agent and Enable Oracle Log Analytics
- Cloud Agents: Other Installation Use Cases
- Steps to update Java on Oracle Infrastructure Cloud agents
What are Cloud Agents?
Basically, The cloud agents monitor and collect data (for example, metrics, configuration information, and logs) from entities that reside on hosts, or on virtual hosts in a cloud.
Oracle Cloud Agent is a lightweight process that manages plugins running on compute instances. Plugins collect performance metrics, install OS updates, and perform other instance management tasks.
To use plugins on an instance, the Oracle Cloud Agent software must be installed on the instance, the plugins must be enabled, and the plugins must be running. You might need to perform additional configuration tasks before you can use certain plugins.
Install the Cloud Agent and Enable Oracle Log Analytics
You must perform the following tasks to install cloud agents.
Note: You can access your log data on Oracle Log Analytics by:
- Installing the cloud agent that collects logs from your target host.
- Uploading log data on demand. See Upload Logs to Oracle Log Analytics on Demand.
- Ingesting logs from Oracle Cloud Infrastructure Object Storage. See Ingest Logs from OCI Object Storage Buckets.
- Using the open-source data collector software, Fluentd collects logs. See Use Fluentd for Log Collection.
Cloud Agents: Other Installation Use Cases
This section discusses other cloud agents’ installation use cases.
- It is recommended not to use
root
the user to install a cloud agent. - You install a cloud agent by running the
AgentInstall
script from the command line. TheAgentInstall
script requires a set of parameters that can be specified in a response file (agent.rsp
) or they can be passed along through the command line. - If you haven’t saved the
agent.rsp
response file in the same directory where you have saved theAgentInstall
script, then you must pass theAGENT_RSP_FILE
parameter in the command line when you run theAgentInstall
script.
Now coming back to the title of the blog which says How to update Java on Oracle Infrastructure Cloud agents?
What is JMS?
Java Management Service (JMS) is a native Oracle Cloud Infrastructure (OCI) service that monitors Java deployments on OCI instances and instances running in customer data centers. It enables you to observe and manage the use of Java in your enterprise.
Java Management Service (JMS) is a reporting and management infrastructure integrated with Oracle Cloud Infrastructure Platform services to observe and manage your use of Java SE (on-premise or in the Cloud).
As a customer, you can:
- Use insights from JMS to optimize your workloads across your enterprise (desktop, server, cloud); and
- Protect your Java SE investments by identifying outdated Java installations, unauthorized applications, Java runtime, and application mismatches. For example, your application is using JDK 11, but you learn it’s using JDK 8.
JMS helps systems administrators to answer questions such as:
- Which vendors are providing the Java installations in my environment?
- Are my applications using their intended Java installations?
- Are unauthorized applications running?
- How many outdated Java installations do I have?
Steps to update Java on Oracle Integration Cloud Agents
1) Create a startAgent.sh file in the same directory where connectivityagent.jar resides
2) Paste the below content in the .sh file
# export the correct java home to upgarde
export JAVA_HOME=/home/opc/java/jdk-11.0.13
export PATH=$JAVA_HOME/bin:$PATH
# start the agent process
nohup java -jar connectivityagent.jar &
3) Run ./startAgent.sh command to start the agent and use the same command every time you want to start the agent
Related Links/References:
- Oracle Integration Cloud (OIC) for Beginners
- Oracle Cloud Infrastructure (OCI) for Beginners
- FREE Class for Oracle Integration Cloud (OIC)
Next Task For You:
Begin your journey toward becoming an Oracle [1Z0-1042] Certified Cloud Integration Expert by joining our FREE Class.
The post How to Update Java on Oracle Integration Cloud On-premise Agent appeared first on Cloud Training Program.