This discussion is archived
1 2 Previous Next 20 Replies Latest reply: Mar 8, 2013 11:26 AM by 972227 RSS

Installing oracle management agent 12.1.0.2.0 in silent mode.

972227 Newbie
Currently Being Moderated
version: 12.1.0.2.0
platform: IBM Aix power systems 64bit

I installed the oracle management service along with the oracle management agent that comes along with the the first installation. I deinstalled the first installed OMA and tried to install it again using the silent install mode with the response file.

(oms host and the oma host are the same)

among the 3 modes of silent install described in the installation guide, i used agent deploy method.
Here are the steps i followed with the install

1. this the status of my OMS
<oracle>chh-aix-beta/oem12c/product/oms/bin> ./emctl status oms -details
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
Console Server Host        : chh-aix-beta
HTTP Console Port          : 7788
HTTPS Console Port         : 7799
HTTP Upload Port           : 4889
HTTPS Upload Port          : 1159
EM Instance Home           : /oem12c/product/gc_inst/em/EMGC_OMS1
OMS Log Directory Location : /oem12c/product/gc_inst/em/EMGC_OMS1/sysman/log
OMS is not configured with SLB or virtual hostname
Agent Upload is locked.
OMS Console is unlocked.
Active CA ID: 1
Console URL: https://chh-aix-beta:7799/em
Upload URL: https://chh-aix-beta:1159/empbs/upload

WLS Domain Information
Domain Name      : GCDomain
Admin Server Host: chh-aix-beta

Managed Server Information
Managed Server Instance Name: EMGC_OMS1
Managed Server Instance Host: chh-aix-beta
WebTier is Up
Oracle Management Server is Up
2. I got the version and the platform info of the oms by doing the following
<oracle>chh-aix-beta/oem12c/product/oms/bin> ./emcli get_supported_platforms
Getting list of platforms ...
Check the logs at /oem12c/product/gc_inst/em/EMGC_OMS1/sysman/emcli/setup/.emcli/agent.log
About to access self-update code path to retrieve the platforms list..
Getting Platforms list  ...
-----------------------------------------------
Version = 12.1.0.2.0
 Platform = IBM AIX on POWER Systems (64-bit)
-----------------------------------------------
Platforms list displayed successfully.
3. I downloaded the management agent software by doing the following ()
$<OMS_HOME>/bin/emcli get_agentimage -destination=/oem12102 -platform="IBM AIX on POWER Systems (64-bit) "  -version=12.1.0.2.0
4. I unzipped the management agent software.

5. I edited the response file as follows. (i edited only the oms_host, em_upload_port, agent_registration_password, since they are the only ones that are mandatory)
OMS_HOST=172.16.24.65
EM_UPLOAD_PORT=1159
AGENT_REGISTRATION_PASSWORD=cchorcl01
#AGENT_INSTANCE_HOME=
#AGENT_PORT=
b_startAgent=true
#ORACLE_HOSTNAME=
#s_agentHomeName=
EM_INSTALL_TYPE="AGENT"
6. then i ran the AgentDeploy.sh script using the following.
./agentDeploy.sh -ignorePrereqs AGENT_BASE_DIR=/oem12c/base/agent RESPONSE_FILE=/oem12102/agent.rsp
(I ignored the prereqs because, i was getting an error with the hostname and the hostname is correct)

7. this the following output i am getting after running step 6.
-e Validating the OMS_HOST & EM_UPLOAD_PORT
Executing command : /oem12c/base/agent/core/12.1.0.2.0/jdk/bin/java -classpath /oem12c/base/agent/core/12.1.0.2.0/jlib/agentInstaller.jar:/oem12c/base/agent/core/12.1.0.2.0/oui/jlib/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /oem12c/base/agent/core/12.1.0.2.0 /oem12102 /oem12c/base/agent -prereq

Validating oms host & port with url: http://172.16.24.65:1159/empbs/genwallet
Validating oms host & port with url: https://172.16.24.65:1159/empbs/genwallet
Return status:3
Unzipping the agentcoreimage.zip to /oem12c/base/agent ....
12.1.0.2.0_PluginsOneoffs_212.zip
Executing command : /oem12102/unzip -o /oem12102/12.1.0.2.0_PluginsOneoffs_212.zip -d /oem12c/base/agent
Executing command : /oem12c/base/agent/core/12.1.0.2.0/jdk/bin/java  -d64 -classpath /oem12c/base/agent/core/12.1.0.2.0/oui/jlib/OraInstaller.jar:/oem12c/base/agent/core/12.1.0.2.0/oui/jlib/xmlparserv2.jar:/oem12c/base/agent/core/12.1.0.2.0/oui/jlib/srvm.jar:/oem12c/base/agent/core/12.1.0.2.0/oui/jlib/emCfg.jar:/oem12c/base/agent/core/12.1.0.2.0/jlib/agentInstaller.jar:/oem12c/base/agent/core/12.1.0.2.0/oui/jlib/share.jar oracle.sysman.agent.installer.AgentInstaller /oem12c/base/agent/core/12.1.0.2.0 /oem12102 /oem12c/base/agent /oem12c/base/agent/agent_inst AGENT_BASE_DIR=/oem12c/base/agent -ignorePrereqs AGENT_BASE_DIR=/oem12c/base/agent RESPONSE_FILE=/oem12102/agent.rsp


Cloning the agent home...
Executing command: /oem12c/base/agent/core/12.1.0.2.0/oui/bin/runInstaller -ignoreSysPrereqs -clone -forceClone -silent -waitForCompletion -nowait ORACLE_HOME=/oem12c/base/agent/core/12.1.0.2.0 -responseFile /oem12102/agent.rsp  AGENT_BASE_DIR=/oem12c/base/agent AGENT_BASE_DIR=/oem12c/base/agent RESPONSE_FILE=/oem12102/agent.rsp -noconfig  ORACLE_HOME_NAME=agent12c3 -force b_noUpgrade=true AGENT_PORT=-1
Clone Action Logs Location:/software/oracle/logs/cloneActions<timestamp>.log
Cloning of agent home completed successfully

Attaching sbin home...
Executing command: /oem12c/base/agent/core/12.1.0.2.0/oui/bin/runInstaller -ignoreSysPrereqs -attachHome -waitForCompletion -nowait ORACLE_HOME=/oem12c/base/agent/sbin ORACLE_HOME_NAME=sbin12c3 -force
Attach Home Logs Location:/oem12c/base/agent/core/12.1.0.2.0/cfgtoollogs/agentDeploy/AttachHome<timestamp>.log
Attach home for sbin home completed successfully.

Updating home dependencies...
Executing command: /oem12c/base/agent/core/12.1.0.2.0/oui/bin/runInstaller -ignoreSysPrereqs -updateHomeDeps -waitForCompletion HOME_DEPENDENCY_LIST={/oem12c/base/agent/sbin:/oem12c/base/agent/core/12.1.0.2.0,} -invPtrLoc /oem12c/base/agent/core/12.1.0.2.0/oraInst.loc -force
Update Home Dependencies Location:/oem12c/base/agent/core/12.1.0.2.0/cfgtoollogs/agentDeploy/UpdateHomeDeps<timestamp>.log
ERROR: Update home dependency failed.
I am getting stuck at updating home dependencies. I dont know what that means. If you have faced similar problems while installing oracle management agent please do share your solution. if you need more info please let me know.
  • 1. Re: Installing oracle management agent 12.1.0.2.0 in silent mode.
    Richard Harrison . Expert
    Currently Being Moderated
    HI,
    ANything in this log file ?

    :/oem12c/base/agent/core/12.1.0.2.0/cfgtoollogs/agentDeploy/UpdateHomeDeps<timestamp>.log


    Cheers,
    Harry
  • 2. Re: Installing oracle management agent 12.1.0.2.0 in silent mode.
    972227 Newbie
    Currently Being Moderated
    That is also one of the problem, I am not able to find the logfile specified. I went to the exact location and there is no logfile starting with "UpdateHomeD"
  • 3. Re: Installing oracle management agent 12.1.0.2.0 in silent mode.
    Sunthar Tharmalingam Explorer
    Currently Being Moderated
    did you try the MOS
    EM 12c: Enterprise Manager Cloud Control Agent Installation Fails with Message: SEVERE: ERROR: Update home dependency failed ERROR: Agent Deployment Failed [ID 1457347.1]

    Thanks
  • 4. Re: Installing oracle management agent 12.1.0.2.0 in silent mode.
    Akanksha Sheoran Kaler Pro
    Currently Being Moderated
    Look at the logs ::/oem12c/base/agent/core/12.1.0.2.0/cfgtoollogs/agentDeploy/
    Check if the install user have read, write, and execute permissions on oraInventory on the remote host.
  • 5. Re: Installing oracle management agent 12.1.0.2.0 in silent mode.
    972227 Newbie
    Currently Being Moderated
    Hello Sunthar, thanks for the link, I'll try the install again and will let you know the results.

    Hello Akanksha, the oms and the oma i am trying to install are all on the same host. Again, like you and Sunthar mentioned, it might be the problem with the permission. I'll let you know the results of my second trail after I am finished.

    Thanks Guys
  • 6. Re: Installing oracle management agent 12.1.0.2.0 in silent mode.
    Akanksha Sheoran Kaler Pro
    Currently Being Moderated
    Are you trying to install central agent that comes with the OMS? Is this your test EM setup?
  • 7. Re: Installing oracle management agent 12.1.0.2.0 in silent mode.
    972227 Newbie
    Currently Being Moderated
    Hello Akanksha, No, I am not trying to install a central agent that comes by default with the oms. I am trying to install agents on separate servers, so that the targets on those servers can be recognized by EM.
  • 8. Re: Installing oracle management agent 12.1.0.2.0 in silent mode.
    972227 Newbie
    Currently Being Moderated
    Ok now, I got through the part of "Updating Home Dependencies" successfully with out any errors.

    after the updating of home dependencies, I am getting the new error regarding the free ports
    Performing the agent configuration...
    Executing command: /oem12102/base/agent/core/12.1.0.2.0/oui/bin/runConfig.sh ORACLE_HOME=/oem12102/base/agent/core/12.1.0.2.0 RESPONSE_FILE=/oem12102/base/agent/core/12.1.0.2.0/agent.rsp ACTION=configure MODE=perform COMPONENT_XML={oracle.sysman.top.agent.11_1_0_1_0.xml} RERUN=true
    Configuration Log Location:/oem12102/base/agent/core/12.1.0.2.0/cfgtoollogs/cfgfw/CfmLogger<timestamp>.log
    ERROR: Agent Configuration Failed SEVERE: Agent free port check failed.
    I used several ports values, but none of them seem to be working, and all the ports I am using seem to be busy.

    I used netstat -na | grep <port number> (to verify if the ports I am using in the agent.rsp file for AGENT_PORT is free or not)
    all the values of the ports i am using seem to be free as they the command netstat -na | grep <port number> returns nothing.

    Please tell me where I am going wrong.
  • 9. Re: Installing oracle management agent 12.1.0.2.0 in silent mode.
    972227 Newbie
    Currently Being Moderated
    I checked the log file
    /oem12102/base/agent/core/12.1.0.2.0/cfgtoollogs/cfgfw/CfmLogger<timestamp>.log

    and it has the following in regards to the agent port
    INFO: Performing free port detection..
    INFO: oracle.sysman.top.agent:Trying for host : chh-lpar9/172.16.24.136 and port : 4891
    INFO: oracle.sysman.top.agent:Trying for host : chh-lpar9/172.24.6.146 and port : 4891
    INFO: oracle.sysman.top.agent:isPortFree:Port=4891 is busy. Exception ioe=The socket name is not available on this system.
    SEVERE: oracle.sysman.top.agent:Agent free port check failed.
  • 10. Re: Installing oracle management agent 12.1.0.2.0 in silent mode.
    Akanksha Sheoran Kaler Pro
    Currently Being Moderated
    Ensure that the below commands work fine
    ifconfig -a
    ping <Agent Machine Name> --- should resolve to one of the IP address listed in the output of "ifconfig -a" command.
    nslookup <Agent Machine Name> --- should resolve to the same IP address as "ping" command.
    nslookup <Agent Machine IP> --- should return the correct hostname.

    Ensure that port 3872 or any one of the port between 1830-1849 is available.
    Re-try the agent installation; which should now complete successfully.
  • 11. Re: Installing oracle management agent 12.1.0.2.0 in silent mode.
    972227 Newbie
    Currently Being Moderated
    All these commands are run on the host (hostname=chh-lpar20) where the agent is being installed, and these commands are run as root user.

    ifconfig -a
    en0: flags=5e080863,c0<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN>
            inet 172.16.28.222 netmask 0xfffffc00 broadcast 172.16.31.255
             tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
    lo0: flags=e08084b,c0<UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,LARGESEND,CHAIN>
            inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
            inet6 ::1%1/0
             tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
    ping chh-lpar20
    PING chh-lpar20: (172.16.28.222): 56 data bytes
    64 bytes from 172.16.28.222: icmp_seq=0 ttl=255 time=0 ms
    64 bytes from 172.16.28.222: icmp_seq=1 ttl=255 time=0 ms
    nslookup chh-lpar20
    Server:         172.16.29.213
    Address:        172.16.29.213#53
    
    ** server can't find chh-lpar20: NXDOMAIN
    nslookup 172.16.28.222
    Server:         172.16.29.213
    Address:        172.16.29.213#53
    
    ** server can't find 222.28.16.172.in-addr.arpa: NXDOMAIN
    to check the if the port 3872 and 1830-1849 are free I ran the follwoing command

    ./agentDeploy.sh -prereqOnly AGENT_BASE_DIR=/oem12102/base/agent

    this was the result i got inregards to the ports
    Check complete: Passed
    ========================================================
    Performing check for PortCheck
    Checking for port availability and hostname validity...
    Trying for host : chh-lpar20/172.16.28.222 and port : 3872
    Trying for host : chh-lpar20/192.168.12.23 and port : 3872
    Port= 3872 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1830
    Trying for host : chh-lpar20/192.168.12.23 and port : 1830
    Port= 1830 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1831
    Trying for host : chh-lpar20/192.168.12.23 and port : 1831
    Port= 1831 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1832
    Trying for host : chh-lpar20/192.168.12.23 and port : 1832
    Port= 1832 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1833
    Trying for host : chh-lpar20/192.168.12.23 and port : 1833
    Port= 1833 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1834
    Trying for host : chh-lpar20/192.168.12.23 and port : 1834
    Port= 1834 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1835
    Trying for host : chh-lpar20/192.168.12.23 and port : 1835
    Port= 1835 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1836
    Trying for host : chh-lpar20/192.168.12.23 and port : 1836
    Port= 1836 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1837
    Trying for host : chh-lpar20/192.168.12.23 and port : 1837
    Port= 1837 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1838
    Trying for host : chh-lpar20/192.168.12.23 and port : 1838
    Port= 1838 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1839
    Trying for host : chh-lpar20/192.168.12.23 and port : 1839
    Port= 1839 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1840
    Trying for host : chh-lpar20/192.168.12.23 and port : 1840
    Port= 1840 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1841
    Trying for host : chh-lpar20/192.168.12.23 and port : 1841
    Port= 1841 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1842
    Trying for host : chh-lpar20/192.168.12.23 and port : 1842
    Port= 1842 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1843
    Trying for host : chh-lpar20/192.168.12.23 and port : 1843
    Port= 1843 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1844
    Trying for host : chh-lpar20/192.168.12.23 and port : 1844
    Port= 1844 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1845
    Trying for host : chh-lpar20/192.168.12.23 and port : 1845
    Port= 1845 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1846
    Trying for host : chh-lpar20/192.168.12.23 and port : 1846
    Port= 1846 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1847
    Trying for host : chh-lpar20/192.168.12.23 and port : 1847
    Port= 1847 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1848
    Trying for host : chh-lpar20/192.168.12.23 and port : 1848
    Port= 1848 is busy.
    Trying for host : chh-lpar20/172.16.28.222 and port : 1849
    Trying for host : chh-lpar20/192.168.12.23 and port : 1849
    Port= 1849 is busy.
    Check complete. The overall result of this check is: Failed <<<<
    
    
    Check complete: Failed <<<<
    Problem: Either port is unavailable or hostname configuration is not valid.
    Recommendation: Make sure the port is available and the hostname configuration i
    s proper.
    I don't know what to make of the results I got for executing the nslookup command.
  • 12. Re: Installing oracle management agent 12.1.0.2.0 in silent mode.
    972227 Newbie
    Currently Being Moderated
    Hello Akanksha, do you happen to know how i can find which ports are used and which ports are free in aix. I know that for linux it is netstat -antu, but I don't the command for aix. I know, I should probably ask this in unix forums, but I was wondering if you might already know the answer to this. If not I'll post this in unix forums.

    I want to find out which ports are free, because we can give our own value to AGENT_PORT variable in the agent.rsp response file.
  • 13. Re: Installing oracle management agent 12.1.0.2.0 in silent mode.
    Akanksha Sheoran Kaler Pro
    Currently Being Moderated
    the nslookup from oms host to target agent host is not working as pcer your output. To check for free port on aix the command is :
    1. netstat -Aan | grep <port number>
    - This shows if the specified <port number> is being used. The hex number in the first column is the address of protocol control block (PCB)

    2. rmsock <addr of PCB> tcpcb
    - This shows the process who is holding the socket. Note: This command must be run as root.

    see this: http://www-01.ibm.com/support/docview.wss?uid=swg21264632

    If you are still not able to figure out pls log an SR with oracle support and lthey will help you. Is there any specific reason you are doing silent agent install ? Did you try Agent push( add host wizard) from EM 12c console to deploy agents?
  • 14. Re: Installing oracle management agent 12.1.0.2.0 in silent mode.
    972227 Newbie
    Currently Being Moderated
    Hello Akanksh when i do ./emctl status oms -details, in the following output i get that Agent Upload is locked do you happen to know what that means?
    Oracle Enterprise Manager Cloud Control 12c Release 2
    Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
    Enter Enterprise Manager Root (SYSMAN) Password :
    Console Server Host        : chh-aix-beta
    HTTP Console Port          : 7788
    HTTPS Console Port         : 7799
    HTTP Upload Port           : 4889
    HTTPS Upload Port          : 1159
    EM Instance Home           : /oem12c/em12102/gc_inst/em/EMGC_OMS1
    OMS Log Directory Location : /oem12c/em12102/gc_inst/em/EMGC_OMS1/sysman/log
    OMS is not configured with SLB or virtual hostname
    *Agent Upload is locked.*
    OMS Console is unlocked.
    Active CA ID: 1
    Console URL: https://chh-aix-beta:7799/em
    Upload URL: https://chh-aix-beta:1159/empbs/upload
1 2 Previous Next

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points