Cloud Control 12c Agent Installation // Silent Mode

Eine kurze Übersicht der Cloud Control 12c Agent Installationsarten und ein Beispiel für Windows mit „agentDeploy Script“.

Neben der Installation weiterer Oracle Agenten über Cloud Control mit Hilfe des Assistenten „Add Host Targets“ gibt es die Möglichkeit den Agent „manuell“ bzw. unbeaufsichtigt zu installieren.

Dazu gibt es drei Möglichkeiten:

  • AgentPull Script
  • agentDeploy Script
  • RPM File

In diesem Beitrag möchte ich mit dem agentDeploy Script beginnen. Die Umgebung ist ein Windows Server 2008 R2 mit Oracle Cloud Control 12c (12.1.0.1.0)

Oracle bietet bislang noch keinen separaten Download für den Oracle Management Agent 12c an. So muss, für eine Silent Installation mit agentDeploy Script, die Installationsquelle aus dem OMS geladen werden:

Anmeldung am OMS Host:

<OMS_HOME>/bin/emcli login -username=sysman -password=sysmnpwd
Login successful

Synchronize EMCLI

<OMS_HOME>/bin/emcli sync
Synchronized successfully

Welche Agenten sind verfügbar:

<OMS_HOME>/bin/emcli get_supported_platforms
Getting list of platforms ...
Check the logs at D:\oracle\Middleware\oms\BIN/agent.log
About to access self-update code path to retrieve the platforms list..
Getting Platforms list  ...
-----------------------------------------------
Version = 12.1.0.1.0
 Platform = Microsoft Windows x64 (64-bit)
-----------------------------------------------
Platforms list displayed successfully.

Nach einer kurzen Übersicht, können die Agenten heruntergeladen werden:

<OMS_HOME>/bin/emcli get_agentimage -destination=d:\CCagent12c\ -platform="Microsoft Windows x64 (64-bit)" -version=12.1.0.1.0
Platform:Microsoft Windows x64 (64-bit)
Destination:d:\CCagent12c\
 === Partition Detail ===
Space free : 52 GB
Space required : 1 GB
Check the logs at d:\CCagent12c\/get_agentimage_2012-10-05_12-08-13-PM.log
Setting property ORACLE_HOME to:D:\oracle\Middleware\oms
calling pulloneoffs with arguments:D:\oracle\Middleware\omsD:/oracle/Middleware/oms/sysman/agent\12.1.0.1.0_AgentCore_233.zip12.1.0.1.0windows_x64

Der „-destination“ Ordner muss vorher erstellt werden. Nun kann der Ordner auf den Zielrechner zur Installation kopiert werden. Anschließend wird das erstellte Zip „12.1.0.1.0_AgentCore_233.zip“ entpackt und das Response File muss angepasst werden. In meiner Testumgebung habe ich nur folgende Angaben im Response File vorgenommen:

OMS_HOST=192.168.100.2
EM_UPLOAD_PORT=1159
AGENT_REGISTRATION_PASSWORD=ccregpwd

Danach kann das agentDeploy Script ausgeführt werden:

agentDeploy.bat AGENT_BASE_DIR=D:\oracle\agent12c RESPONSE_FILE=D:\12.1.0.1.0_AgentCore_233\agent.rsp

D:\12.1.0.1.0_AgentCore_233
Present working directory:D:\12.1.0.1.0_AgentCore_233
Archive location:D:\12.1.0.1.0_AgentCore_233  directory
AGENT_BASE_DIR
AGENT_BASE_DIR
D:\oracle\agent12c
Agent base directory:D:\oracle\agent12c
D:\oracle\agent12c
RESPONSE_FILE
D:\12.1.0.1.0_AgentCore_233\agent.rsp
Agent base directory:D:\oracle\agent12c
OMS Host:
Agent image loc : "D:\12.1.0.1.0_AgentCore_233"
D:\oracle\agent12c configonlyfalse
Reading the properties file: "D:\12.1.0.1.0_AgentCore_233"\agentimage.properties

        1 Datei(en) kopiert.
This is the version 12.1.0.1.0
This is the type core
This is the aru id 233
"Validating the OMS_HOST & EM_UPLOAD_PORT"
"D:\oracle\agent12c\core\12.1.0.1.0"
"Executing command : D:\oracle\agent12c\core\12.1.0.1.0\jdk\bin\java -classpath
D:\oracle\agent12c\core\12.1.0.1.0\jlib\agentInstaller.jar:D:\oracle\agent12c\co
re\12.1.0.1.0\oui\jlib\OraInstaller.jar oracle.sysman.agent.installer.AgentInsta
ller D:\oracle\agent12c\core\12.1.0.1.0 "D:\12.1.0.1.0_AgentCore_233" D:\oracle\
agent12c -prereq"

Validieren von OMS-Host & -Port mit URL: http://192.168.100.2:1159/empbs/genwallet
Validieren von OMS-Host & -Port mit URL: https://192.168.100.2:1159/empbs/genwallet
Return status:3
"D:\12.1.0.1.0_AgentCore_233"\12.1.0.1.0_PluginsOneoffs_233.zip
"Executing command : D:\oracle\agent12c\core\12.1.0.1.0\jdk\bin\java -classpath
D:\oracle\agent12c\core\12.1.0.1.0\jlib\OraInstaller.jar:D:\oracle\agent12c\core
\12.1.0.1.0\sysman\jlib\emInstaller.jar:D:\oracle\agent12c\core\12.1.0.1.0\jlib\
xmlparserv2.jar:D:\oracle\agent12c\core\12.1.0.1.0\jlib\srvm.jar:D:\oracle\agent
12c\core\12.1.0.1.0\jlib\emCfg.jar:D:\oracle\agent12c\core\12.1.0.1.0\sysman\jli
b\agentInstaller.jar oracle.sysman.agent.installer.AgentInstaller D:\oracle\agen
t12c\core\12.1.0.1.0"

Installationsvoraussetzungen f≥r den Agenten werden ausgef≥hrt...
Ausf≥hrung von Befehl: D:\oracle\agent12c\core\12.1.0.1.0\oui\bin\setup.exe -ign
oreSysPrereqs -prereqchecker -silent -ignoreSysPrereqs -waitForCompletion  -prer
eqlogloc D:\oracle\agent12c\core\12.1.0.1.0\cfgtoollogs\agentDeploy -entryPoint
oracle.sysman.top.agent_Complete -detailedExitCodes PREREQ_CONFIG_LOCATION=D:\or
acle\agent12c\core\12.1.0.1.0\prereqs
Prereq Logs Location:D:\oracle\agent12c\core\12.1.0.1.0\cfgtoollogs\agentDeploy\
prereq<timestamp>.log
Installationsvoraussetzungen f≥r den Agenten erfolgreich abgeschlossen

Das Agentenstandardverzeichnis wird geclont...
Ausf≥hrung von Befehl: D:\oracle\agent12c\core\12.1.0.1.0\oui\bin\setup.exe -ign
oreSysPrereqs -clone -forceClone -silent -waitForCompletion -nowait ORACLE_HOME=
D:\oracle\agent12c\core\12.1.0.1.0 -responseFile D:\12.1.0.1.0_AgentCore_233\age
nt.rsp  AGENT_BASE_DIR=D:/oracle/agent12c AGENT_BASE_DIR=D:/oracle/agent12
c RESPONSE_FILE=D:\12.1.0.1.0_AgentCore_233\agent.rsp -noconfig  ORACLE_HO
ME_NAME=agent12c1 -force AGENT_PORT=-1
Clone Action Logs Location:C:\Program Files\Oracle\Inventory\logs\cloneActions<t
imestamp>.log
Clonen des Agentenstandardverzeichnisses erfolgreich abgeschlossen

SBIN-Standardverzeichnis wird zugeordnet...
Ausf≥hrung von Befehl: D:\oracle\agent12c\core\12.1.0.1.0\oui\bin\setup.exe -ign
oreSysPrereqs -attachHome -waitForCompletion -nowait ORACLE_HOME=D:\oracle\agent
12c\sbin ORACLE_HOME_NAME=sbin12c1 -force
Attach Home Logs Location:D:\oracle\agent12c\core\12.1.0.1.0\cfgtoollogs\agentDe
ploy\AttachHome<timestamp>.log
Zuweisung des Standardverzeichnisses f≥r das SBIN-Standardverzeichnis erfolgreic
h abgeschlossen.

Updating home dependencies...
Ausf≥hrung von Befehl: D:\oracle\agent12c\core\12.1.0.1.0\oui\bin\setup.exe -ign
oreSysPrereqs -updateHomeDeps -waitForCompletion HOME_DEPENDENCY_LIST="D:\oracle
\agent12c\sbin:D:\oracle\agent12c\core\12.1.0.1.0" -invPtrLoc D:\oracle\agent12c
\core\12.1.0.1.0\oraInst.loc -force
Update Home Dependencies Location:D:\oracle\agent12c\core\12.1.0.1.0\cfgtoollogs
\agentDeploy\UpdateHomeDeps<timestamp>.log
Die Aktualisierung der Standardverzeichnisabhıngigkeit wurde erfolgreich abgeschlossen.

Konfiguration des Agenten wird durchgef≥hrt...
Ausf≥hrung von Befehl: D:\oracle\agent12c\core\12.1.0.1.0\oui\bin\runConfig.bat
ORACLE_HOME=D:\oracle\agent12c\core\12.1.0.1.0 RESPONSE_FILE=D:\oracle\agent12c\
core\12.1.0.1.0\agent.rsp ACTION=configure MODE=perform COMPONENT_XML={oracle.sy
sman.top.agent.11_1_0_1_0.xml} RERUN=true
Configuration Log Location:D:\oracle\agent12c\core\12.1.0.1.0\cfgtoollogs\cfgfw\
CfmLogger<timestamp>.log
Agent Configuration completed successfully
Agent deployment log location:
D:\oracle\agent12c\core\12.1.0.1.0\cfgtoollogs\agentDeploy\agentDeploy_<timestamp>.log
Agent deployment completed successfully.

Ein Dienst „Oracleagent12g1Agent“ wurde erstellt und die Installation ist abgeschlossen.

Oracle Notes im Artikel
E24089-16 – http://docs.oracle.com/cd/E24628_01/install.121/e24089/install_agent_usng_rsp.htm#CEGGACJE
 
 

Cloud Control 12c Agent Installation // Silent Mode

Schreibe einen Kommentar