We have Oracle EBS running on a Windows 2008R2 64 bit machine and Oracle EM12c running on a Linux (RHEL 6.3) machine.
We are trying to deploy an agent on our Windows box however it fails with the below error message

Execution of command
D:/em12c/ADATMP_2014-02-03_09-01-20-AM/agentDeploy.sh -ignorePrereqs
ORACLE_HOSTNAME=ebs.ods.com AGENT_BASE_DIR=D:/em12c
OMS_HOST=egtodb02.ods.com EM_UPLOAD_PORT=4903
AGENT_INSTANCE_HOME=D:/em12c/agent_inst b_doDiscovery=false b_startAgent=false
b_forceInstCheck=true AGENT_PORT=3872 on node ebs.ods.com Failed
Error Message:Not Available
Exit Code :0

After checking the logfile on the target host (Windows) it shows the following error message

2014-02-03 09:23:19,977 [main] INFO - EmdCtl Timezone = Asia/Riyadh
2014-02-03 09:23:20,118 [main] INFO - Command: set_discovery_root plugin oracle.sysman.oh D:\em12c\plugins\oracle.sysman.oh.discovery.plugin_12.1.0.2.0 12.1.0.2.0
2014-02-03 09:23:20,181 [main] INFO - Connecting:http://ebs.ods.com:3872/emd/main/
2014-02-03 09:23:22,259 [main] INFO - unable to connect to the agent at http://ebs.ods.com:3872/emd/main/ [Connection refused: connect]
oracle.sysman.emSDK.agent.comm.exception.ConnectException: unable to connect to the agent at http://ebs.ods.com:3872/emd/main/ [Connection refused: connect]
at oracle.sysman.gcagent.comm.oms.http.TMClientConnection.newConnectException(TMClientConnection.java:231)
at oracle.sysman.gcagent.comm.http.ClientConnection.makeConnection(ClientConnection.java:820)
at oracle.sysman.gcagent.comm.oms.http.TMClientConnection.(TMClientConnection.java:86)
at oracle.sysman.gcagent.comm.oms.http.HTTPClientTerminus.connect(HTTPClientTerminus.java:232)
at oracle.sysman.gcagent.oms.TMRemoteClientFactory.getCommunicatingClient(TMRemoteClientFactory.java:177)
at oracle.sysman.gcagent.oms.TMRemoteClientFactory.createEmdCtlClient(TMRemoteClientFactory.java:76)
at oracle.sysman.gcagent.clients.emdctlj.EmdCtlCommand.connectEmdCtlClient(EmdCtlCommand.java:217)
at oracle.sysman.gcagent.clients.emdctlj.commands.plugin.EmdCtlPluginDiscoveryRoot.execute(EmdCtlPluginDiscoveryRoot.java:56)
at oracle.sysman.gcagent.clients.emdctlj.EmdCtlParsedCommandHandler.executeCommand(EmdCtlParsedCommandHandler.java:88)
at oracle.sysman.gcagent.clients.emdctlj.EmdCtl.parseAndExecute(EmdCtl.java:151)
at oracle.sysman.gcagent.clients.emdctlj.EmdCtl.main(EmdCtl.java:416)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.(Socket.java:375)
at java.net.Socket.(Socket.java:218)
at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:212)
at HTTPClient.HTTPConnection$EstablishConnection$2.run(HTTPConnection.java:4268)
at HTTPClient.HttpClientConfiguration.doAction(HttpClientConfiguration.java:708)
at HTTPClient.HTTPConnection.doAction(HTTPConnection.java:5379)
at HTTPClient.HTTPConnection$EstablishConnection.run(HTTPConnection.java:4254)

Inspite of this error we were able to see the installation directory created on the target host(Windows) and its corresponding agent service.

Go to the EM Console to verify if the agent is installed successfully

Go to the OEM 12c console >> setup >> Management Cloud Control >> Agents >> Agent home page.

We were able to see the host added with status “UP” which means that agent has been deployed successfully however this seems to be an issue/bug with agent on Windows. With the help of Oracle Support we were able to resolve the issue by executing the following steps

On the agent side(Windows) check the status of the agent.

D:\em12c\agent_inst\bin
emctl.bat status agent
-------------------------
Agent is not Running

Start the Agent and execute following commands

D:\em12c\agent_inst\bin>emctl.bat start agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
The Oracleagent12c1Agent service is starting............
The Oracleagent12c1Agent service was started successfully.

Even though agent was started successfully we were not able to upload the agent.
# ./emctl status agent
# ./emctl upload agent
# ./emctl pingOMS

D:\em12c\agent_inst\bin>emctl.bat status agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 12.1.0.2.0
OMS Version : (unknown)
Protocol Version : 12.1.0.1.0
Agent Home : D:/em12c/agent_inst
Agent Binaries : D:/em12c\core\12.1.0.2.0
Agent Process ID : 9668
Parent Process ID : 8072
Agent URL : http://ebs.ods.com:3872/emd/main/
Repository URL : https://egtodb02.ods.com:4903/empbs/upload/
Started at : 2013-12-30 13:04:17
Started by user : EBS$
Last Reload : (none)
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload : 1
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 29.48%
Collection Status : Collections enabled
Heartbeat Status : (none)
Last attempted heartbeat to OMS : (none)
Last successful heartbeat to OMS : (none)
Next scheduled heartbeat to OMS : 2013-12-30 13:04:21

—————————————————————
Agent is Running and Ready

D:\em12c\agent_inst\bin>emctl.bat upload agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload error:full upload has failed: uploadXMLFiles skipped :: OMS version n
ot checked yet. If this issue persists check trace files for ping to OMS related
errors. (OMS_DOWN)
D:\em12c\agent_inst\bin>emctl.bat pingOMS
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD pingOMS error: An internal error has occurred at the agent: "unable to send
response". Check the agent's error logs for details.

To resolve the error we did the following

A) UnSecure the agent
./emctl unsecure agent

B) Secure the agent
./emctl secure agent

C) Start the agent
./emctl start agent

D) Force an upload to the OMS
./emctl upload

E) Add Internal Targets
./emctl config agent addinternaltargets
./emctl config agent listtargets

D:\em12c\agent_inst\bin>emctl.bat secure agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
Agent successfully stopped... Done.
Securing agent... Started.
Enter Agent Registration Password :
Agent successfully restarted... Done.
EMD gensudoprops completed successfully
Securing agent... Successful.
D:\em12c\agent_inst\bin>emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 12.1.0.2.0
OMS Version : 12.1.0.2.0
Protocol Version : 12.1.0.1.0
Agent Home : D:/em12c/agent_inst
Agent Binaries : D:/em12c\core\12.1.0.2.0
Agent Process ID : 8920
Parent Process ID : 4704
Agent URL : https://hrmstsrv:3872/emd/main/
Repository URL : https://egtodb02.qia.local:4903/empbs/upload
Started at : 2013-12-31 08:03:56
Started by user : HRMSTSRV$
Last Reload : (none)
Last successful upload : 2013-12-31 08:04:26
Last attempted upload : 2013-12-31 08:04:26
Total Megabytes of XML files uploaded so far : 0.01
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 29.48%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2013-12-31 08:04:03
Last successful heartbeat to OMS : 2013-12-31 08:04:03
Next scheduled heartbeat to OMS : 2013-12-31 08:05:03

—————————————————————
Agent is Running and Ready

D:\em12c\agent_inst\bin>emctl.bat upload agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload completed successfully

Check the below SQL query on OMS database to verify if the targets are added. The list should show all the hosts added to the repository.

SELECT target_name FROM sysman.MGMT_TARGETS WHERE target_type = 'oracle_emd';
Tagged with →  
Share →
0 comments
Skip to toolbar