bash-4.1$ ./emctl upload agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload error:full upload has failed: Upload Recent Sending Statistics
________________________________
Avg send time=0.0 milliseconds
Backoff Event List
________________________________
Upload Failure List
_______________________________
Connection Event List
_____________________________
Upload timed out before completion.
Number of files to upload before the uploadNow call: 4903, total size (MB): 3.049202
Remaining number of files to upload: 4903, total size (MB): 3.049202 (TIMEOUT)
When you got the above error we need to do the as the below.
-bash-4.1$ emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
Stopping agent ..... stopped.
-bash-4.1$ pwd
/u01/app/oracle/product/agent12c/agent_inst/sysman/emd
you need to move the upload,colletction and state folders as stated the below.
-bash-4.1$ ls -ltrh
total 72K
drwxr----- 2 oracle dba 4.0K Sep 16 2014 dumps
drwxr----- 4 oracle dba 4.0K Sep 16 2014 upload
drwxr----- 2 oracle dba 4.0K Sep 16 2014 metricExtLib
drwxr----- 2 oracle dba 4.0K Sep 16 2014 attachmentDB
drwxr----- 2 oracle dba 4.0K Sep 16 2014 metricCache
drwxr----- 2 oracle dba 4.0K Sep 16 2014 temp
drwxr----- 12 oracle dba 4.0K Dec 10 2014 state
-rw-r----- 1 oracle dba 5.9K Apr 8 15:32 targets.xml.bak
-rw-r----- 1 oracle dba 910 Jun 26 22:10 blackouts.xml.bak
-rw-r----- 1 oracle dba 13 Jun 27 00:46 blackouts.xml
-rw-r----- 1 oracle dba 3.1K Jun 30 09:06 emagent_storage.config
-rw-r----- 1 oracle dba 5.9K Jul 1 03:48 targets.xml
-rw-r----- 1 oracle dba 0 Jul 1 03:48 blackouts.lck
-rw-r----- 1 oracle dba 282 Jul 1 04:01 agntstmp.txt.bak
drwxr----- 2 oracle dba 4.0K Jul 1 04:03 collection
-rw-r----- 1 oracle dba 23 Jul 1 04:03 ag_current_status.msg
-rw-r----- 1 oracle dba 321 Jul 1 04:03 agntstmp.txt
-bash-4.1$ cd upload
-bash-4.1$ ls -ltrh
total 16K
drwxr----- 10 oracle dba 4.0K Sep 16 2014 upload
drwxr----- 2 oracle dba 12K Jul 1 04:03 pending
-bash-4.1$ mkdir old
-bash-4.1$ pwd
/u01/app/oracle/product/agent12c/agent_inst/sysman/emd/upload
-bash-4.1$ mv upload /u01/app/oracle/product/agent12c/agent_inst/sysman/emd/upload/old
-bash-4.1$ mv pending /u01/app/oracle/product/agent12c/agent_inst/sysman/emd/upload/old
-bash-4.1$ ls -ltrh
total 4.0K
drwxr-xr-x 4 oracle dba 4.0K Jul 1 04:05 old
-bash-4.1$ cd ..
-bash-4.1$ ls -ltrh
total 72K
drwxr----- 2 oracle dba 4.0K Sep 16 2014 dumps
drwxr----- 2 oracle dba 4.0K Sep 16 2014 metricExtLib
drwxr----- 2 oracle dba 4.0K Sep 16 2014 attachmentDB
drwxr----- 2 oracle dba 4.0K Sep 16 2014 metricCache
drwxr----- 2 oracle dba 4.0K Sep 16 2014 temp
drwxr----- 12 oracle dba 4.0K Dec 10 2014 state
-rw-r----- 1 oracle dba 5.9K Apr 8 15:32 targets.xml.bak
-rw-r----- 1 oracle dba 910 Jun 26 22:10 blackouts.xml.bak
-rw-r----- 1 oracle dba 13 Jun 27 00:46 blackouts.xml
-rw-r----- 1 oracle dba 3.1K Jun 30 09:06 emagent_storage.config
-rw-r----- 1 oracle dba 5.9K Jul 1 03:48 targets.xml
-rw-r----- 1 oracle dba 0 Jul 1 03:48 blackouts.lck
-rw-r----- 1 oracle dba 282 Jul 1 04:01 agntstmp.txt.bak
drwxr----- 2 oracle dba 4.0K Jul 1 04:03 collection
-rw-r----- 1 oracle dba 23 Jul 1 04:03 ag_current_status.msg
-rw-r----- 1 oracle dba 321 Jul 1 04:03 agntstmp.txt
drwxr----- 3 oracle dba 4.0K Jul 1 04:05 upload
-bash-4.1$ cd collection
-bash-4.1$ mkdir old
-bash-4.1$ mv * old
mv: cannot move `old' to a subdirectory of itself, `old/old'
-bash-4.1$ ls -ltrh
total 4.0K
drwxr-xr-x 2 oracle dba 4.0K Jul 1 04:05 old
-bash-4.1$ cd ..
-bash-4.1$ ls -ltrh
total 72K
drwxr----- 2 oracle dba 4.0K Sep 16 2014 dumps
drwxr----- 2 oracle dba 4.0K Sep 16 2014 metricExtLib
drwxr----- 2 oracle dba 4.0K Sep 16 2014 attachmentDB
drwxr----- 2 oracle dba 4.0K Sep 16 2014 metricCache
drwxr----- 2 oracle dba 4.0K Sep 16 2014 temp
drwxr----- 12 oracle dba 4.0K Dec 10 2014 state
-rw-r----- 1 oracle dba 5.9K Apr 8 15:32 targets.xml.bak
-rw-r----- 1 oracle dba 910 Jun 26 22:10 blackouts.xml.bak
-rw-r----- 1 oracle dba 13 Jun 27 00:46 blackouts.xml
-rw-r----- 1 oracle dba 3.1K Jun 30 09:06 emagent_storage.config
-rw-r----- 1 oracle dba 5.9K Jul 1 03:48 targets.xml
-rw-r----- 1 oracle dba 0 Jul 1 03:48 blackouts.lck
-rw-r----- 1 oracle dba 282 Jul 1 04:01 agntstmp.txt.bak
-rw-r----- 1 oracle dba 23 Jul 1 04:03 ag_current_status.msg
-rw-r----- 1 oracle dba 321 Jul 1 04:03 agntstmp.txt
drwxr----- 3 oracle dba 4.0K Jul 1 04:05 upload
drwxr----- 3 oracle dba 4.0K Jul 1 04:05 collection
-bash-4.1$ cd state
-bash-4.1$ mkdir old
-bash-4.1$ mv * old
mv: cannot move `old' to a subdirectory of itself, `old/old'
-bash-4.1$ ls -ltrh
total 4.0K
drwxr-xr-x 12 oracle dba 4.0K Jul 1 04:06 old
-bash-4.1$ emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent is Not Running
-bash-4.1$ emctl clearstate agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
EMD clearstate completed successfully
-bash-4.1$ df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/mapper 99G 63G 32G 67% /u01
-bash-4.1$ emctl start agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
Starting agent ......... started.
-bash-4.1$ emctl upload agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload completed successfully
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload error:full upload has failed: Upload Recent Sending Statistics
________________________________
Avg send time=0.0 milliseconds
Backoff Event List
________________________________
Upload Failure List
_______________________________
Connection Event List
_____________________________
Upload timed out before completion.
Number of files to upload before the uploadNow call: 4903, total size (MB): 3.049202
Remaining number of files to upload: 4903, total size (MB): 3.049202 (TIMEOUT)
When you got the above error we need to do the as the below.
-bash-4.1$ emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
Stopping agent ..... stopped.
-bash-4.1$ pwd
/u01/app/oracle/product/agent12c/agent_inst/sysman/emd
you need to move the upload,colletction and state folders as stated the below.
-bash-4.1$ ls -ltrh
total 72K
drwxr----- 2 oracle dba 4.0K Sep 16 2014 dumps
drwxr----- 4 oracle dba 4.0K Sep 16 2014 upload
drwxr----- 2 oracle dba 4.0K Sep 16 2014 metricExtLib
drwxr----- 2 oracle dba 4.0K Sep 16 2014 attachmentDB
drwxr----- 2 oracle dba 4.0K Sep 16 2014 metricCache
drwxr----- 2 oracle dba 4.0K Sep 16 2014 temp
drwxr----- 12 oracle dba 4.0K Dec 10 2014 state
-rw-r----- 1 oracle dba 5.9K Apr 8 15:32 targets.xml.bak
-rw-r----- 1 oracle dba 910 Jun 26 22:10 blackouts.xml.bak
-rw-r----- 1 oracle dba 13 Jun 27 00:46 blackouts.xml
-rw-r----- 1 oracle dba 3.1K Jun 30 09:06 emagent_storage.config
-rw-r----- 1 oracle dba 5.9K Jul 1 03:48 targets.xml
-rw-r----- 1 oracle dba 0 Jul 1 03:48 blackouts.lck
-rw-r----- 1 oracle dba 282 Jul 1 04:01 agntstmp.txt.bak
drwxr----- 2 oracle dba 4.0K Jul 1 04:03 collection
-rw-r----- 1 oracle dba 23 Jul 1 04:03 ag_current_status.msg
-rw-r----- 1 oracle dba 321 Jul 1 04:03 agntstmp.txt
-bash-4.1$ cd upload
-bash-4.1$ ls -ltrh
total 16K
drwxr----- 10 oracle dba 4.0K Sep 16 2014 upload
drwxr----- 2 oracle dba 12K Jul 1 04:03 pending
-bash-4.1$ mkdir old
-bash-4.1$ pwd
/u01/app/oracle/product/agent12c/agent_inst/sysman/emd/upload
-bash-4.1$ mv upload /u01/app/oracle/product/agent12c/agent_inst/sysman/emd/upload/old
-bash-4.1$ mv pending /u01/app/oracle/product/agent12c/agent_inst/sysman/emd/upload/old
-bash-4.1$ ls -ltrh
total 4.0K
drwxr-xr-x 4 oracle dba 4.0K Jul 1 04:05 old
-bash-4.1$ cd ..
-bash-4.1$ ls -ltrh
total 72K
drwxr----- 2 oracle dba 4.0K Sep 16 2014 dumps
drwxr----- 2 oracle dba 4.0K Sep 16 2014 metricExtLib
drwxr----- 2 oracle dba 4.0K Sep 16 2014 attachmentDB
drwxr----- 2 oracle dba 4.0K Sep 16 2014 metricCache
drwxr----- 2 oracle dba 4.0K Sep 16 2014 temp
drwxr----- 12 oracle dba 4.0K Dec 10 2014 state
-rw-r----- 1 oracle dba 5.9K Apr 8 15:32 targets.xml.bak
-rw-r----- 1 oracle dba 910 Jun 26 22:10 blackouts.xml.bak
-rw-r----- 1 oracle dba 13 Jun 27 00:46 blackouts.xml
-rw-r----- 1 oracle dba 3.1K Jun 30 09:06 emagent_storage.config
-rw-r----- 1 oracle dba 5.9K Jul 1 03:48 targets.xml
-rw-r----- 1 oracle dba 0 Jul 1 03:48 blackouts.lck
-rw-r----- 1 oracle dba 282 Jul 1 04:01 agntstmp.txt.bak
drwxr----- 2 oracle dba 4.0K Jul 1 04:03 collection
-rw-r----- 1 oracle dba 23 Jul 1 04:03 ag_current_status.msg
-rw-r----- 1 oracle dba 321 Jul 1 04:03 agntstmp.txt
drwxr----- 3 oracle dba 4.0K Jul 1 04:05 upload
-bash-4.1$ cd collection
-bash-4.1$ mkdir old
-bash-4.1$ mv * old
mv: cannot move `old' to a subdirectory of itself, `old/old'
-bash-4.1$ ls -ltrh
total 4.0K
drwxr-xr-x 2 oracle dba 4.0K Jul 1 04:05 old
-bash-4.1$ cd ..
-bash-4.1$ ls -ltrh
total 72K
drwxr----- 2 oracle dba 4.0K Sep 16 2014 dumps
drwxr----- 2 oracle dba 4.0K Sep 16 2014 metricExtLib
drwxr----- 2 oracle dba 4.0K Sep 16 2014 attachmentDB
drwxr----- 2 oracle dba 4.0K Sep 16 2014 metricCache
drwxr----- 2 oracle dba 4.0K Sep 16 2014 temp
drwxr----- 12 oracle dba 4.0K Dec 10 2014 state
-rw-r----- 1 oracle dba 5.9K Apr 8 15:32 targets.xml.bak
-rw-r----- 1 oracle dba 910 Jun 26 22:10 blackouts.xml.bak
-rw-r----- 1 oracle dba 13 Jun 27 00:46 blackouts.xml
-rw-r----- 1 oracle dba 3.1K Jun 30 09:06 emagent_storage.config
-rw-r----- 1 oracle dba 5.9K Jul 1 03:48 targets.xml
-rw-r----- 1 oracle dba 0 Jul 1 03:48 blackouts.lck
-rw-r----- 1 oracle dba 282 Jul 1 04:01 agntstmp.txt.bak
-rw-r----- 1 oracle dba 23 Jul 1 04:03 ag_current_status.msg
-rw-r----- 1 oracle dba 321 Jul 1 04:03 agntstmp.txt
drwxr----- 3 oracle dba 4.0K Jul 1 04:05 upload
drwxr----- 3 oracle dba 4.0K Jul 1 04:05 collection
-bash-4.1$ cd state
-bash-4.1$ mkdir old
-bash-4.1$ mv * old
mv: cannot move `old' to a subdirectory of itself, `old/old'
-bash-4.1$ ls -ltrh
total 4.0K
drwxr-xr-x 12 oracle dba 4.0K Jul 1 04:06 old
-bash-4.1$ emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent is Not Running
-bash-4.1$ emctl clearstate agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
EMD clearstate completed successfully
-bash-4.1$ df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/mapper 99G 63G 32G 67% /u01
-bash-4.1$ emctl start agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
Starting agent ......... started.
-bash-4.1$ emctl upload agent
Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload completed successfully
No comments:
Post a Comment