Agent does not show up in Enterprise Manager GC after being redeployed
Hi,
We are running Grid Control 11g.
One of my team members deployed a Grid Control agent out onto a server using the "Install Agent" functionality in Enterprise Manager GC.
The agent deployment worked successfully. The host name of the target server appeared under the 'Hosts' screen in the GC Enterprise Manager targets tab.
Shortly after my team member had deployed the agent, he realised he had installed the Grid Control Agent into a misspelled Agent Home on the target server. He then attempted to delete the agent. He did this by shutting down the agent and removing the agent home directory on the target server. He then realised that the removal operation was not complete, so he removed the host via the Enterprise Manager GUI. He did this on the Hosts screen in the targets tab. He selected the host and then chose 'remove'. There are no databases or listeners on the target server, so he did not have to remove those first.
He then attempted to redeploy the agent. The agent deployment operation said it has finished successfully, however the name of the host does not appear under the 'targets' screen in EM. Besides the 'deployment history' section of EM, there are no traces of the host in the Enterprise Management console at all.
The agent is up and running up on the target server. The expected ports are in use.
On the target server, I tried running
$ ./emctl status agent
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 11.1.0.1.0
OMS Version : 11.1.0.1.0
Protocol Version : 11.1.0.0.0
Agent Home : /sv/app/oracle/gcagent/agent11g
Agent binaries : /sv/app/oracle/gcagent/agent11g
Agent Process ID : 15613
Parent Process ID : 15583
Agent URL : http://xxxxxx:xxxx/emd/main/
Repository URL : http://xxxxxxxxxxx:xxxxx/em/upload/
Started at : 2011-05-11 13:40:52
Started by user : sv_ora
Last Reload : 2011-05-11 13:40:52
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 44
Size of XML files pending upload(MB) : 2.42
Available disk space on upload filesystem : 86.33%
Last attempted heartbeat to OMS : 2011-05-11 14:05:00
Last successful heartbeat to OMS : unknown
These two lines are of some concern:
"Total Megabytes of XML files uploaded so far : 0.00
Last successful heartbeat to OMS : unknown"
I was concerned that no XML files have been uploaded, so I ran
* <AGENT_HOME>/bin/emctl reload agent
EMD reload completed successfully
The 'emctl status agent' still reports 0.00 megabytes
* I also ran <AGENT_HOME>/bin/agentca -d
* We reran <AGENT_HOME>/root.sh on the target server, and rebooted the target server.
I also restarted the entire OMS on our Grid Control server.
I suspect that the original removal of the host from grid control marked the host somewhere as being "removed from grid control". I think that the redeployment of the agent has not updated this record, so it is still marked somewhere as being removed. I just do not where this is.
Does anybody have any ideas of how to proceed from here? I am happy to upload any log files that people think might be useful.