[oracle@anbob agent10g]$ bin/emctl upload agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..
报上面的错误是因为OMS与AGENT通信不正常,很有可能是后来你修改了GRID CONTROL安装时某些配置使SSL证书无效,我认为我遇到这个错可能是我安装后修改了SYSMAN的密码。所以必须resecure agent。
1,emctl clearstate agent
2,emctl secure agent
Enter Agent Registration password :
********
Agent successfully stopped... Done.
Securing agent... Started.
Requesting an HTTPS Upload URL from the OMS... Done.
Requesting an Oracle Wallet and Agent Key from the OMS... Failed.
Invalid Agent Registration password.
The Agent has not been secured.
如果显示错误就是因为输入了错误的 Agent Registration password ,如果是你忘记了可以按照下面的方法,但是知道SYSMAN的密码,就可以WEB打开EM,从页面新建一个Registration password,方法是,打开em,SYSMAN登录,点右上角的SETUP,再点左边的registration passwords ,create a new reigstration password
做完上面的操作后,看我下面的方法
大功告成!现在应该可以从em上看到新加的agent了。
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..
报上面的错误是因为OMS与AGENT通信不正常,很有可能是后来你修改了GRID CONTROL安装时某些配置使SSL证书无效,我认为我遇到这个错可能是我安装后修改了SYSMAN的密码。所以必须resecure agent。
1,emctl clearstate agent
2,emctl secure agent
Enter Agent Registration password :
********
Agent successfully stopped... Done.
Securing agent... Started.
Requesting an HTTPS Upload URL from the OMS... Done.
Requesting an Oracle Wallet and Agent Key from the OMS... Failed.
Invalid Agent Registration password.
The Agent has not been secured.
如果显示错误就是因为输入了错误的 Agent Registration password ,如果是你忘记了可以按照下面的方法,但是知道SYSMAN的密码,就可以WEB打开EM,从页面新建一个Registration password,方法是,打开em,SYSMAN登录,点右上角的SETUP,再点左边的registration passwords ,create a new reigstration password
做完上面的操作后,看我下面的方法
[oracle@anbob agent10g]$ bin/emctl upload agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload error: uploadXMLFiles skipped :: OMS version not checked yet..
:
[oracle@anbob agent10g]$ bin/emctl stop agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Stopping agent ... stopped.
[oracle@anbob agent10g]$ pwd
/oracle10g/app/oracle/agent10g/agent10g
[oracle@anbob agent10g]$ cd sysman/emd/upload/
[oracle@anbob upload]$ ls
A0000001.xml B0000035.xml D0000016.xml D0000056.xml
A0000002.xml B0000036.xml D0000017.xml D0000057.xml
A0000003.xml B0000037.xml D0000018.xml D0000058.xml
A0000004.xml B0000038.xml D0000019.xml D0000059.xml
A0000005.xml B0000039.xml D0000020.xml D0000060.xml
anbob_host_host_configuration_old B0000040.xml D0000021.xml D0000061.xml
B0000001.xml B0000041.xml D0000022.xml D0000062.xml
B0000002.xml B0000042.xml D0000023.xml D0000063.xml
B0000003.xml B0000043.xml D0000024.xml D0000064.xml
B0000004.xml B0000044.xml D0000025.xml D0000065.xml
B0000005.xml B0000045.xml D0000026.xml D0000066.xml
B0000006.xml B0000046.xml D0000027.xml D0000067.xml
B0000007.xml B0000047.xml D0000028.xml D0000068.xml
B0000008.xml B0000048.xml D0000029.xml D0000069.xml
B0000009.xml B0000049.xml D0000030.xml D0000070.xml
B0000010.xml C0000001.xml D0000031.xml D0000071.xml
B0000011.xml C0000002.xml D0000032.xml D0000072.xml
B0000012.xml C0000003.xml D0000033.xml D0000073.xml
B0000013.xml C0000004.xml D0000034.xml D0000074.xml
B0000014.xml C0000005.xml D0000035.xml D0000075.xml
B0000015.xml C0000006.xml D0000036.xml D0000076.xml
B0000016.xml C0000007.xml D0000037.xml D0000077.xml
B0000017.xml C0000008.xml D0000038.xml D0000078.xml
B0000018.xml C0000009.xml D0000039.xml D0000079.xml
B0000019.xml C0000010.xml D0000040.xml D0000080.xml
B0000020.xml D0000001.xml D0000041.xml D0000081.xml
B0000021.xml D0000002.xml D0000042.xml D0000082.xml
B0000022.xml D0000003.xml D0000043.xml D0000083.xml
B0000023.xml D0000004.xml D0000044.xml D0000084.xml
B0000024.xml D0000005.xml D0000045.xml D0000085.xml
B0000025.xml D0000006.xml D0000046.xml D0000086.xml
B0000026.xml D0000007.xml D0000047.xml D0000087.xml
B0000027.xml D0000008.xml D0000048.xml D0000088.xml
B0000028.xml D0000009.xml D0000049.xml D0000089.xml
B0000029.xml D0000010.xml D0000050.xml D0000090.xml
B0000030.xml D0000011.xml D0000051.xml D0000091.xml
B0000031.xml D0000012.xml D0000052.xml D0000092.xml
B0000032.xml D0000013.xml D0000053.xml D0000093.xml
B0000033.xml D0000014.xml D0000054.xml
B0000034.xml D0000015.xml D0000055.xml
[oracle@anbob upload]$ rm *
[oracle@anbob upload]$ ls
[oracle@anbob upload]$ cd ..
[oracle@anbob emd]$ ls
agntstmp.txt lastupld.xml recv targets.xml upload
collection protocol.ini state targets.xml.14-12-2011_04-37-21-PM
[oracle@anbob emd]$ cd state/
[oracle@anbob state]$ ls
0000.dlt 0020.dlt 0040.dlt 0060.dlt
0001.dlt 0021.dlt 0041.dlt 0061.dlt
0002.dlt 0022.dlt 0042.dlt 0062.dlt
0003.dlt 0023.dlt 0043.dlt 0063.dlt
0004.dlt 0024.dlt 0044.dlt 0064.dlt
0005.dlt 0025.dlt 0045.dlt 0065.dlt
0006.dlt 0026.dlt 0046.dlt 0066.dlt
0007.dlt 0027.dlt 0047.dlt 0067.dlt
0008.dlt 0028.dlt 0048.dlt 0068.dlt
0009.dlt 0029.dlt 0049.dlt 0069.dlt
0010.dlt 0030.dlt 0050.dlt 0070.dlt
0011.dlt 0031.dlt 0051.dlt 0071.dlt
0012.dlt 0032.dlt 0052.dlt 0072.dlt
0013.dlt 0033.dlt 0053.dlt 0073.dlt
0014.dlt 0034.dlt 0054.dlt corr.save
0015.dlt 0035.dlt 0055.dlt parse-log-BF52D7B7EA9D486AC55DEB1A6B8C46E0
0016.dlt 0036.dlt 0056.dlt parse-log-BF52D7B7EA9D486AC55DEB1A6B8C46E0.ln
0017.dlt 0037.dlt 0057.dlt progResUtil.log
0018.dlt 0038.dlt 0058.dlt snapshot
0019.dlt 0039.dlt 0059.dlt storage
[oracle@anbob state]$ rm -rf *
[oracle@anbob state]$ ls
[oracle@anbob state]$ cd ..
[oracle@anbob emd]$ cd ..
[oracle@anbob sysman]$ cd ..
[oracle@anbob agent10g]$ 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
输入刚才新建的密码
[oracle@anbob agent10g]$ 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 /oracle10g/app/oracle/agent10g/agent10g/sysman/config/emd.properties
Securing agent... Successful.
[oracle@anbob agent10g]$ bin/emctl status agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent is Not Running
[oracle@anbob agent10g]$ bin/emctl start agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
Starting agent ........... started.
[oracle@anbob agent10g]$ bin/emctl status agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 10.2.0.1.0
OMS Version : 10.2.0.1.0
Protocol Version : 10.2.0.0.0
Agent Home : /oracle10g/app/oracle/agent10g/agent10g
Agent binaries : /oracle10g/app/oracle/agent10g/agent10g
Agent Process ID : 388
Parent Process ID : 369
Agent URL : https://anbob:3872/emd/main/
Repository URL : https://orazhang:1159/em/upload
Started at : 2011-12-15 09:27:20
Started by user : oracle
Last Reload : 2011-12-15 09:27:20
Last successful upload : 2011-12-15 09:28:31
Total Megabytes of XML files uploaded so far : 5.58
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0.00
Available disk space on upload filesystem : 13.73%
Last successful heartbeat to OMS : 2011-12-15 09:27:33
---------------------------------------------------------------
Agent is Running and Ready
[oracle@anbob agent10g]$ bin/emctl upload agent
Oracle Enterprise Manager 10g Release 10.2.0.1.0.
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload completed successfully
大功告成!现在应该可以从em上看到新加的agent了。
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




