Saturday, March 27, 2010

Oracle Grid Control Agent Problems

-->
Oracle Grid Control Agent Problems
You can face very strange problems after installing agents that is
1) The Agent will not connect to the OMS
2) You will not be able to secure the Agent.
If you see the status of agent you will see something like this,
oracle@host # ./emctl status agent
Oracle Enterprise Manager 10g Release 10.2.0.2.0. 
Copyright (c) 1996, 2006 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 10.2.0.2.0
OMS Version       : 10.2.0.2.0
Protocol Version  : 10.2.0.2.0
Agent Home        : /oracle/product/10.2.0/agent10g
Agent binaries    : /oracle/product/10.2.0/agent10g
Agent Process ID  : 171
Parent Process ID : 154
Agent URL         : http://ocrl.msct.com:3872/emd/main/
Repository URL    : http://:4889/em/upload/
Started at        : 2010-03-03 15:20:15
Started by user   : oracle
Last Reload       : 2010-03-03 15:30:09
Last successful upload                       : (none)
Last attempted upload                        : (none)
Total Megabytes of XML files uploaded so far :     0.00
Number of XML files pending upload           :       13
Size of XML files pending upload(MB)         :     5.79
Available disk space on upload filesystem    :    82.06%
Last attempted heartbeat to OMS              : 2010-03-03 15:30:09
Last successful heartbeat to OMS             : unknown
---------------------------------------------------------------
And if you try to secure agent you will get something like this
oracle@jdb1p # ./emctl secure agent
Oracle Enterprise Manager 10g Release 10.2.0.2.0.  
Copyright (c) 1996, 2006 Oracle Corporation.  All rights reserved.
Enter Agent Registration password : 
Agent successfully stopped...   Done.
Securing agent...   Started.
Requesting an HTTPS Upload URL from the OMS...   Failed.
The OMS is not set up for Enterprise Manager Security.
Now the cause is that the URL for the OMA upload is not set properly in emd.properties file.
You have to fix
REPOSITORY_URL= 
and
emdWalletSrcUrl=
 
after making changes in URL you can secure your agent using 
 
emctl secure agent
Always first make sure that you set your home properly also the path of emdroot