清除:
1. Stop the Agent on the target machine:
cd /bin
emctl stop agent
2. Login to the Repository Ddatabase (via sqlplus) as user SYSMAN and execute the following command:
SQL> exec mgmt_admin.cleanup_agent(':');
For example:
SQL> exec mgmt_admin.cleanup_agent('agentmachine.domain:3872');
3. De-install the Agent on the target machine.
首先在server端安装组件,需账号密码
emcli login -username=sysman -password=123456
在windows端创建目录,c:\soft和c:\agent
agentDeploy.bat -ignorePrereqs AGENT_BASE_DIR=C:\agent OMS_HOST=172.16.5.233 EM_UPLOAD_PORT=4900 AGENT_REGISTRATION_PASSWORD=Oracle123 ORACLE_HOSTNAME=pzyserver08
安装后会报错,切换到bin/emctl下,执行emctl status agent和emctl start agent以及emctl upload
如果遇到
After reinstallation need to add agent and host target and then need to perform sync operation for the upload to be successful.
Perform the following steps to resolve the issue:
1. Start the agent:
/bin/emctl start agent
2. Issue following command to add agent and host targets:
/bin/emctl config agent addinternaltargets
This would list the agent target in Setup > Add Target > Auto Discovery Results > Non-Host Targets.
3. Secure the agent:
/bin/emctl secure agent
This would show the host and agent in pending status under Targets > All targets.
4. Do the following steps to show the status of host and agent as up:
/bin/emctl stop agent
/bin/emctl clearstate agent
/bin/emctl start agent
Once done, the host and agent status would be shown as up.
5. Do a resync of agent as per Note 1376968.1.
Follow these steps to perform agent resynchronization :
1. Log in to the EM 12c console
2. Navigate: Setup > Manage Cloud Control > Agents (for EM 12.1.0.2 or later)
Navigate: Setup > Agents (for EM 12.1.0.1)
3. Select the problematic agent
4. In the Agent drop down menu, choose "Resynchronization"t.
5. Choose the option to "Unblock agent on successful completion of agent resynchronization." and Click on Continue
6. The resynchronization operation is submitted as a job as shown below:
7. Check the resynchronization job's status by clicking on the job name's link.
6. Verify the agent upload:
/bin/emctl upload
Agent uploads will be successful and remaining targets can be discovered.