meta données pour cette page
  •  

Install OEM Agent 13CR5

En tant que ROOT
  • soit on installe le JDK Oracle
[root@oem1]# cd /u01/Downloads
[root@oem1]# wget https://javadl.oracle.com/webapps/download/AutoDL?BundleId=251645_7ed26d28139143f38c58992680c214a5
[root@oem1]# mv AutoDL\?BundleId\=251645_7ed26d28139143f38c58992680c214a5 jre-8u441-linux-x64.rpm
[root@oem1]# dnf install jre-8u441-linux-x64.rpm
  • soit on installe OPENJDK 1.8 (les JDK plus récent ne sont pas compatibles avec les agents 13CR5)
[root@oem1]# dnf install java-1.8.0-openjdk


En tant qu'ORACLE
  • Connexion à OMS et récupération des binaires d'installation
[oracle@oem1]# mkdir /u01/Downloads/agent
[oracle@oem1]# cd /u01/Downloads/agent
[oracle@oem1]# . oraenv
[oracle@oem1]# OMS
[oracle@oem1]# emcli setup -url=https://oem1.labo.local:7803/em/ -username=sysman -trustall
[oracle@oem1]# emcli sync
[oracle@oem1]# emcli get_supported_platforms
	-----------------------------------------------
	Version = 13.5.0.0.0
	 Platform = Linux x86-64
	-----------------------------------------------
	Platforms list displayed successfully.
 
 
[oracle@oem1]# emcli get_agentimage -destination=/u01/Downloads/agent -platform="Linux x86-64" -version=13.5.0.0.0
	 === Partition Detail ===
	Space free : 58 GB
	Space required : 1 GB
	Check the logs at /home/oracle/.emcli/get_agentimage_2025-02-12_22-11-16-PM.log
	Downloading /u01/Downloads/agent/13.5.0.0.0_AgentCore_226.zip
	File saved as /u01/Downloads/agent/13.5.0.0.0_AgentCore_226.zip
	Downloading /u01/Downloads/agent/13.5.0.0.0_Plugins_226.zip
	File saved as /u01/Downloads/agent/13.5.0.0.0_Plugins_226.zip
	Downloading /u01/Downloads/agent/unzip
	File saved as /u01/Downloads/agent/unzip
	Executing command: /u01/Downloads/agent/unzip /u01/Downloads/agent/13.5.0.0.0_Plugins_226.zip -d /u01/Downloads/agent
	Archieving agentImage and plugins.
	Exit status is:0
	Agent Image Download completed successfully.
  • Installation de l'agent en mode silencieux
[oracle@oem1]# rm -rf /u01/app/oracle/product/agent/agent_13.5.0.0.0
[oracle@oem1]# cd /u01/Downloads/agent
[oracle@oem1]# unzip 13.5.0.0.0_AgentCore_226.zip
 
[oracle@oem1]# vi agent.rsp
	####################################################################
	## copyright (c) 1999, 2012 Oracle. All rights reserved.          ##
	##                                                                ##
	## Specify values for the variables listed below to customize     ##
	## your installation.                                             ##
	##                                                                ##
	## Each variable is associated with a comment. The comment        ##
	## identifies the variable type.                                  ##
	##                                                                ##
	## Please specify the values in the following format:             ##
	##                                                                ##
	##         Type         Example                                   ##
	##         String       "Sample Value"                            ##
	##         Boolean      True or False                             ##
	##         Number       1000                                      ##
	##         StringList   {"String value 1","String Value 2"}       ##
	##                                                                ##
	## The values that are given as <Value Required> need to be       ##
	## specified for a silent installation to be successful.          ##
	##                                                                ##
	##                                                                ##
	## This response file is generated by Oracle Software             ##
	## Packager.                                                      ##
	###################################################################
	#--------------------------------------------------------------------------------
	# OMS Settings
	#--------------------------------------------------------------------------------
	OMS_HOST=oem1.labo.local
	EM_UPLOAD_PORT=4903
	AGENT_REGISTRATION_PASSWORD=d6gWro_dPq4f
	#
	#--------------------------------------------------------------------------------
	# Agent settings on target
	#--------------------------------------------------------------------------------
	ORACLE_HOSTNAME:oem1.labo.local
	AGENT_INSTANCE_HOME=/u01/app/oracle/product/agent/agent_inst
	AGENT_PORT=3872
	s_agentHomeName=agent13cR5 # ORATAB
	EM_INSTALL_TYPE="AGENT"
 
 
[oracle@oem1]# ./agentDeploy.sh AGENT_BASE_DIR=/u01/app/oracle/product/agent/ RESPONSE_FILE=/u01/Downloads/agent/agent.rsp    INVENTORY_LOCATION=/u01/app/oraInventory/
 
	The space available is ....  59573 MB
	Executing command : /u01/app/oracle/product/agent/agent_13.5.0.0.0/jdk/jre/bin/java -classpath /u01/app/oracle/product/agent/agent_13.5.0.0.0/jlib/agentInstaller.jar:/u01/app/oracle/product/agent/agent_13.5.0.0.0/oui/modules/OraInstaller.jar     oracle.sysman.agent.installer.AgentInstaller /u01/app/oracle/product/agent/agent_13.5.0.0.0 /u01/Downloads/agent /u01/app/oracle/product/agent $args -prereq
	AGENT_ins home is:AGENT_BASE_DIR=/u01/app/oracle/product/agent/oraclehome is:/u01/app/oracle/product/agent/agent_13.5.0.0.0
	log loction is setlog
	The oraclehome /u01/app/oracle/product/agent/agent_13.5.0.0.0
 
	Validating oms host & port with url: https://oem1.labo.local:4903/empbs/genwallet
	Validating oms host & port with url: http://oem1.labo.local:4903/empbs/genwallet
	Return status:0-oms http port is passed
	Validating the OMS Host and Port completed.
	Inventory location is writable
	/u01/Downloads/agent/agentcore.bin -ignoreSysPrereqs -prereqChecker -entryPoint oracle.sysman.top.agent_Complete -silent -ignoreSysPrereqs -detailedExitCodes  -responseFile /u01/app/oracle/product/agent/agentInstall.rsp INVENTORY_LOCATION=/u01/app/oraInventory/ -J-DORACLE_HOSTNAME=ORACLE_HOSTNAME:oem1.labo.local -J-DAGENT_PORT=3872 -J-Djava.io.tmpdir=/u01/app/oracle/product/agent/agent_13.5.0.0.0/cfgtoollogs/prereqlogs -J-DAGENT_BASE_DIR=/u01/app/oracle/product/agent   
	Launcher log file is /u01/app/oracle/product/agent/agent_13.5.0.0.0/cfgtoollogs/prereqlogs/OraInstall2025-02-12_10-23-47PM/launcher2025-02-12_10-23-47PM.log.
	Checking swap space: must be greater than 512 MB.   Actual 2047 MB    Passed
	Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
	Checking temp space: must be greater than 300 MB.   Actual 58140 MB    Passed
	Preparing to launch the Oracle Universal Installer from /u01/app/oracle/product/agent/agent_13.5.0.0.0/cfgtoollogs/prereqlogs/OraInstall2025-02-12_10-23-47PM
	Oracle Prerequisite Checker Version 13.9.4.0.0 Production
	Copyright (C) 1999, 2021, Oracle. All rights reserved.
 
	Starting execution of prerequisite checks
	Total No of checks: 10
 
	Performing check for CertifiedVersions_agent
	Is the software certified on the current operating system?
	Expected result: One of enterprise-6, oracle-8, oracle-7, SuSE-11, SuSE-12, SuSE-15, redhat-6, redhat-7, redhat-8
	Actual Result: redhat-9.5
	Check complete. The overall result of this check is: Passed
 
	[...]
	Disk Space : Required 1,297 MB, Available 59,398 MB
	Feature Sets to Install:
	Oracle JDK 12.2.1.4.1
	Perl 5.32.0.0.0 5.32.0.0.0
	Next Generation Install Core 13.9.4.0.0
	OPatch 13.9.4.2.5
	Oracle HTTP Client 12.2.1.4.0
	Oracle XDK 12.2.1.4.0
	DMS Full 12.2.1.4.0
	Third Party Main Com Jcraft Jsch 0.1.54.0.0
	Wallet Functionality 12.2.1.4.0
	Remote Diagnostic Assistant 8.09.0.1.0
	Session log file is /tmp/OraInstall2025-02-12_10-24-01PM/install2025-02-12_10-24-01PM.log
	Validated the oms host and port :- oem1.labo.local----4903
	Getting Inet Addresses for host oem1.labo.local
	** Agent Port Check completed successfully.**
	Validated the agent port :- ----3872
	shared agent value is :false
	chain install is :false
	Agent Configuration completed successfully
	The following configuration scripts need to be executed as the "root" user. Root script to run : /u01/app/oracle/product/agent/agent_13.5.0.0.0/root.sh
	/u01/app/oracle/product/agent/agent_13.5.0.0.0/cfgtoollogs/agentDeploy/agentDeploy_2025-02-12_22-24-46-PM.log
	Waiting for agent targets to get promoted...
	Successfully Promoted agent and its related targets to Management Agent
  • En ROOT, post install script
[root@oem1]# /u01/app/oracle/product/agent/agent_13.5.0.0.0/root.sh
  • Vérification du statut de l'agent
[oracle@oem1]# . oraenv
[oracle@oem1]# agent13cR5
 
[oracle@oem1 agent]$ emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 5  
Copyright (c) 1996, 2021 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version          : 13.5.0.0.0
OMS Version            : 13.5.0.0.0
Protocol Version       : 12.1.0.1.0
Agent Home             : /u01/app/oracle/product/agent/agent_inst
Agent Log Directory    : /u01/app/oracle/product/agent/agent_inst/sysman/log
Agent Binaries         : /u01/app/oracle/product/agent/agent_13.5.0.0.0
Core JAR Location      : /u01/app/oracle/product/agent/agent_13.5.0.0.0/jlib
Agent Process ID       : 25508
Parent Process ID      : 25470
Agent URL              : https://oem1.labo.local:3872/emd/main/
Local Agent URL in NAT : https://oem1.labo.local:3872/emd/main/
Repository URL         : https://oem1.labo.local:4903/empbs/upload
Started at             : 2025-02-12 22:25:03
Started by user        : oracle
Operating System       : Linux version 5.14.0-503.22.1.el9_5.x86_64 (amd64)
Number of Targets      : 35
Last Reload            : (none)
Last successful upload                       : 2025-02-12 22:29:16
Last attempted upload                        : 2025-02-12 22:29:16
Total Megabytes of XML files uploaded so far : 0.68
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 57.04%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2025-02-12 22:29:10
Last successful heartbeat to OMS             : 2025-02-12 22:29:10
Next scheduled heartbeat to OMS              : 2025-02-12 22:30:10
 
---------------------------------------------------------------
Agent is Running and Ready