GC重新配置agent

1确保agent停止

2清除Agent原有信息
[oracle@ocmdb1 ~]$ rm -rf $AGENT_HOME/sysman/emd/state/*
[oracle@ocmdb1 ~]$ rm -rf $AGENT_HOME/sysman/emd/collection/*
[oracle@ocmdb1 ~]$ rm -rf $AGENT_HOME/sysman/emd/upload/*
[oracle@ocmdb1 ~]$ rm -rf $AGENT_HOME/sysman/log/*
[oracle@ocmdb1 ~]$ rm -f $AGENT_HOME/sysman/emd/lastupld.xml
[oracle@ocmdb1 ~]$ rm -f $AGENT_HOME/sysman/emd/agntstmp.txt
[oracle@ocmdb1 ~]$ rm -f $AGENT_HOME/sysman/emd/blackouts.xml
[oracle@ocmdb1 ~]$ rm -f $AGENT_HOME/sysman/emd/protocol.ini
[oracle@ocmdb1 ~]$ $AGENT_HOME/bin/emctl clearstate agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
EMD clearstate completed successfully

3使用secure agent重新配置agent

[oracle@ocm1 bin]$ ./emctl secure agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0. 
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
Enter Agent Registration password :
Agent is already stopped...   Done.
Securing agent...   Started.
Requesting an HTTPS Upload URL from the OMS...   Done.
Requesting an Oracle Wallet and Agent Key from the OMS...   Done.
Check if HTTPS Upload URL is accessible from the agent...   Done.
Configuring Agent for HTTPS in CENTRAL_AGENT mode...   Done.
EMD_URL set in /oinstall/agent10g/agent10g/sysman/config/emd.properties
Securing agent...   Successful.

4启动agent

5$ $AGENT_HOME/bin/emctl upload
6检查agent状态。



你可能感兴趣的:(gc重建agent)