Creating a onetime
agent Registration password & OMS Unreachable issue fixed
While working on the issue with the agent in one of the Linux box. it prompts for the Agent Password which i don't have. As i couldn't get the password from my inventory list, I have created instant agent one time registration password.
The below are the steps i followed.
Login to the OEM 12C with sysasm credentials
Setup à Registration Passwords. This will direct you for the security page.
Select <Initial Agent Registration
Password> and click on the Add Registration Password window.
In the Add Registration Password page,
enter the password and select the one-time password button and set the expire
Date.
Now my one time Agent Registration password has been set.
Then, i logged into the Linux box where EM Agent was not able to communicate with OMS
Server and Heartbeat status: OMS Unreachable.
The below are the commands and output copied as it is from the server
cpliadea:/u01/app/oracle/product/agent12c/agent_inst/bin>
./emctl pingOMS
Oracle Enterprise Manager
Cloud Control 12c Release 2
Copyright (c) 1996, 2012
Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD pingOMS error: Received
Key Mismatch from OMS
Steps
followed to fix the issue
cpliadea:/home/oracle>
emctl stop agent
Oracle
Enterprise Manager Cloud Control 12c Release 2
Copyright
(c) 1996, 2012 Oracle Corporation. All
rights reserved.
Stopping
agent ..... stopped
cpliadea:/u01/app/oracle/product/agent12c/agent_inst/bin>
./emctl secure agent
Oracle
Enterprise Manager Cloud Control 12c Release 2
Copyright
(c) 1996, 2012 Oracle Corporation. All
rights reserved.
Agent
is already stopped... Done.
Securing
agent... Started.
Enter
Agent Registration Password : ( "Here i have given the agent Registration password which we created earlier")
EMD
gensudoprops completed successfully
Securing
agent... Successful.
cpliadea:/u01/app/oracle/product/agent12c/agent_inst/bin>
./emctl start agent
Oracle
Enterprise Manager Cloud Control 12c Release 2
Copyright
(c) 1996, 2012 Oracle Corporation. All
rights reserved.
Starting
agent
...........................................................................................................................
started but not ready.
cpliadea:/u01/app/oracle/product/agent12c/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 : (unknown)
Protocol
Version : 12.1.0.1.0
Agent
Home :
/u01/app/oracle/product/agent12c/agent_inst
Agent
Binaries :
/u01/app/oracle/product/agent12c/core/12.1.0.2.0
Agent
Process ID : 4576
Parent
Process ID : 4455
---------------------------------------------------------------
Agent
is Running but Not Ready
Agent is Running but not ready, did a clearstate agent and upload the xml files.
cpliadea:/u01/app/oracle/product/agent12c/agent_inst/bin> emctl
clearstate agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
EMD clearstate completed successfully
cpliadea:/u01/app/oracle/product/agent12c/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 :
/u01/app/oracle/product/agent12c/agent_inst
Agent Binaries :
/u01/app/oracle/product/agent12c/core/12.1.0.2.0
Agent Process ID : 4576
Parent Process ID : 4455
Agent URL : https://cpliadea.homedepot.com:3872/emd/main/
Repository URL :
https://oem-np.homedepot.com:4900/empbs/upload
Started at : 2014-10-15
00:20:32
Started by user : oracle
Last Reload : (none)
Last successful upload : 2014-10-15 00:28:52
Last attempted upload : 2014-10-15 00:28:52
Total Megabytes of XML files uploaded so far : 5.28
Number of XML files pending upload : 229
Size of XML files pending upload(MB) : 0.82
Available disk space on upload filesystem : 93.06%
Collection Status : Collections
enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2014-10-15 00:28:11
Last successful heartbeat to OMS : 2014-10-15 00:28:11
Next scheduled heartbeat to OMS : 2014-10-15 00:29:12
---------------------------------------------------------------
Agent is Running and Ready
cpliadea:/u01/app/oracle/product/agent12c/agent_inst/bin> ./emctl
upload agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload completed successfully
cpliadea:/u01/app/oracle/product/agent12c/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 :
/u01/app/oracle/product/agent12c/agent_inst
Agent Binaries :
/u01/app/oracle/product/agent12c/core/12.1.0.2.0
Agent Process ID : 4576
Parent Process ID : 4455
Agent URL :
https://cpliadea.homedepot.com:3872/emd/main/
Repository URL :
https://oem-np.homedepot.com:4900/empbs/upload
Started at : 2014-10-15
00:20:32
Started by user : oracle
Last Reload : (none)
Last successful upload : 2014-10-15 00:29:34
Last attempted upload : 2014-10-15 00:29:34
Total Megabytes of XML files uploaded so far : 6.11
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 93.06%
Collection Status : Collections
enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2014-10-15 00:29:12
Last successful heartbeat to OMS : 2014-10-15 00:29:12
Next scheduled heartbeat to OMS : 2014-10-15 00:30:12
---------------------------------------------------------------
Agent is Running and Ready
Now the EM agent is up and running fine and all XML files are uploading to the OMS server with no issues.