I love things when they work, why… well – they work. I like the fact that my estimates are accurate and also that I don’t have to go working out things that I’ll never need to know again. Yet, uch of my blogging is inspired by things that do not work!
As in the current case.
I’ve been trying to deploy an new em12c agent for some time now – what a pain! I had a em12c agent in this machine previously, but it was not BP1. I thought that I’d remove the old and install the new – as you do. I was having all sorts of bother (well, it did all start when I did an rm –rf from the agent install dir – then processes to hack the inventory.xml in the contentsXML dir in the oracle inventory). Yeah, I know what you are saying, this is all my fault.
Anyways, I kept getting errors with the installer about not being able to connect back to the genwallet
Validating oms host & port with url: http://myrem12c.mits.local:4901/empbs/genwallet
Validating oms host & port with url: https://myrem12c.mits.local:4901/empbs/genwallet
Return status:1
WARN: Forcing the configuration of the agent when the OMS is not available will configure the agent to use HTTP (non-secure) communication. In order to properly establish secure HTTPS communication between the agent and the OMS, you will need to secure the agent after the OMS is available.
All my firewalls were off, so it was annoying. I decided to cut and paste the install command from the EM12C window to my agent host and see if I could solve it manually.
/u01/app/em12c/ADATMP_2012-08-22_20-14-24-PM/agentDeploy.sh -ignorePrereqs ORACLE_HOSTNAME=e1ent2.mits.local AGENT_BASE_DIR=/u01/app/em12c OMS_HOST=myrem12c.mits.local EM_UPLOAD_PORT=4901 AGENT_INSTANCE_HOME=/u01/app/em12c/agent_inst b_doDiscovery=false b_startAgent=false b_forceInstCheck=true AGENT_PORT=3872
The command above was still valid, as the cleanup from the aborted install had not occurred
Remember you can add –forceConfigure, and the Return status:1, is just a warning…
/u01/app/em12c/ADATMP_2012-08-22_20-14-24-PM/agentDeploy.sh -ignorePrereqs ORACLE_HOSTNAME=e1ent2.mits.local AGENT_BASE_DIR=/u01/app/em12c OMS_HOST=myrem12c.mits.local EM_UPLOAD_PORT=4901 AGENT_INSTANCE_HOME=/u01/app/em12c/agent_inst b_doDiscovery=false b_startAgent=false b_forceInstCheck=true AGENT_PORT=3872
So again, BAM I let it have it… Got a bunch of SAX XML parsing errors… Wait… I know what that means… Troubleshooting 101… I have an XML document problem… Where do I remember something about that? OOh yeah, hacking the inventory.xml file…
Once I tidied up the </HOME> tag in the inventory.xml, I was away! Here is the output in case it helps you:
Validating the OMS_HOST & EM_UPLOAD_PORT
Executing command : /u01/app/em12c/core/12.1.0.1.0/jdk/bin/java -classpath /u01/app/em12c/core/12.1.0.1.0/jlib/agentInstaller.jar:/u01/app/em12c/core/12.1.0.1.0/oui/jlib/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /u01/app/em12c/core/12.1.0.1.0 /u01/app/em12c/ADATMP_2012-08-22_20-14-24-PM /u01/app/em12c -prereqValidating oms host & port with url: http://myrem12c.mits.local:4901/empbs/genwallet
Validating oms host & port with url: https://myrem12c.mits.local:4901/empbs/genwallet
Return status:1
WARN: Forcing the configuration of the agent when the OMS is not available will configure the agent to use HTTP (non-secure) communication. In order to properly establish secure HTTPS communication between the agent and the OMS, you will need to secure the agent after the OMS is available.
Unzipping the agentcoreimage.zip to /u01/app/em12c ....
12.1.0.1.0_PluginsOneoffs_226.zip
Executing command : /u01/app/em12c/ADATMP_2012-08-22_20-14-24-PM/unzip -o /u01/app/em12c/ADATMP_2012-08-22_20-14-24-PM/12.1.0.1.0_PluginsOneoffs_226.zip -d /u01/app/em12c
Executing command : /u01/app/em12c/core/12.1.0.1.0/jdk/bin/java -classpath /u01/app/em12c/core/12.1.0.1.0/oui/jlib/OraInstaller.jar:/u01/app/em12c/core/12.1.0.1.0/oui/jlib/xmlparserv2.jar:/u01/app/em12c/core/12.1.0.1.0/oui/jlib/srvm.jar:/u01/app/em12c/core/12.1.0.1.0/oui/jlib/emCfg.jar:/u01/app/em12c/core/12.1.0.1.0/jlib/agentInstaller.jar:/u01/app/em12c/core/12.1.0.1.0/oui/jlib/share.jar oracle.sysman.agent.installer.AgentInstaller /u01/app/em12c/core/12.1.0.1.0 /u01/app/em12c/ADATMP_2012-08-22_20-14-24-PM /u01/app/em12c AGENT_BASE_DIR=/u01/app/em12c -ignorePrereqs ORACLE_HOSTNAME=e1ent2.mits.local AGENT_BASE_DIR=/u01/app/em12c OMS_HOST=myrem12c.mits.local EM_UPLOAD_PORT=4901 AGENT_INSTANCE_HOME=/u01/app/em12c/agent_inst b_doDiscovery=false b_startAgent=false b_forceInstCheck=true AGENT_PORT=3872 -forceConfigure
Cloning the agent home...
Executing command: /u01/app/em12c/core/12.1.0.1.0/oui/bin/runInstaller -ignoreSysPrereqs -clone -forceClone -silent -waitForCompletion -nowait ORACLE_HOME=/u01/app/em12c/core/12.1.0.1.0 AGENT_BASE_DIR=/u01/app/em12c ORACLE_HOSTNAME=e1ent2.mits.local AGENT_BASE_DIR=/u01/app/em12c OMS_HOST=myrem12c.mits.local EM_UPLOAD_PORT=4901 AGENT_INSTANCE_HOME=/u01/app/em12c/agent_inst b_doDiscovery=false b_startAgent=false b_forceInstCheck=true AGENT_PORT=3872 -noconfig ORACLE_HOME_NAME=agent12c1 -force b_forceConfigure=true
Clone Action Logs Location:/u01/app/oraInventory/logs/cloneActions<timestamp>.log
Cloning of agent home completed successfullyAttaching sbin home...
Executing command: /u01/app/em12c/core/12.1.0.1.0/oui/bin/runInstaller -ignoreSysPrereqs -attachHome -waitForCompletion -nowait ORACLE_HOME=/u01/app/em12c/sbin ORACLE_HOME_NAME=sbin12c1 -force
Attach Home Logs Location:/u01/app/em12c/core/12.1.0.1.0/cfgtoollogs/agentDeploy/AttachHome<timestamp>.log
Attach home for sbin home completed successfully.Updating home dependencies...
Executing command: /u01/app/em12c/core/12.1.0.1.0/oui/bin/runInstaller -ignoreSysPrereqs -updateHomeDeps -waitForCompletion HOME_DEPENDENCY_LIST="{/u01/app/em12c/sbin:/u01/app/em12c/core/12.1.0.1.0}" -invPtrLoc /u01/app/em12c/core/12.1.0.1.0/oraInst.loc -force
Update Home Dependencies Location:/u01/app/em12c/core/12.1.0.1.0/cfgtoollogs/agentDeploy/UpdateHomeDeps<timestamp>.log
Update home dependency completed successfully.Performing the agent configuration...
Executing command: /u01/app/em12c/core/12.1.0.1.0/oui/bin/runConfig.sh ORACLE_HOME=/u01/app/em12c/core/12.1.0.1.0 RESPONSE_FILE=/u01/app/em12c/core/12.1.0.1.0/agent.rsp ACTION=configure MODE=perform COMPONENT_XML={oracle.sysman.top.agent.11_1_0_1_0.xml} RERUN=true
Configuration Log Location:/u01/app/em12c/core/12.1.0.1.0/cfgtoollogs/cfgfw/CfmLogger<timestamp>.logAgent Configuration completed successfully
The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root script to run
/u01/app/em12c/core/12.1.0.1.0/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts
Agent Deployment Successful.
Agent deployment log location:
/u01/app/em12c/core/12.1.0.1.0/cfgtoollogs/agentDeploy/agentDeploy_<timestamp>.log
Agent deployment completed successfully.
That was very satisfying. I now know that I could do bulk agent deploys with the same scripts and know-how… Nice!
Remember to run the root script (/u01/app/em12c/core/12.1.0.1.0/root.sh)
No comments:
Post a Comment