While deploying agent in one of the target server for OEM 12c cloud control , got error like
Agent Clone Failed Exit Code:1.

Solution:

Get the inventory location

[oracle@bt-tstdev-1]/export/home/oracle/bsstdba# opatch lsinventory
Oracle Interim Patch Installer version 12.1.0.1.0
Copyright (c) 2012, Oracle Corporation.  All rights reserved.


Oracle Home       : /oracle/app/oracle/product/12.1.0
Central Inventory : /oracle/app/oraInventory
   from           : /oracle/app/oracle/product/12.1.0/oraInst.loc
OPatch version    : 12.1.0.1.0
OUI version       : 12.1.0.1.0
Log file location : /oracle/app/oracle/product/12.1.0/cfgtoollogs/opatch/opatch2015-10-28_16-54-51PM_1.log

Lsinventory Output file location : /oracle/app/oracle/product/12.1.0/cfgtoollogs/opatch/lsinv/lsinventory2015-10-28_16-54-51PM.txt

--------------------------------------------------------------------------------
Installed Top-level Products (1):

Oracle Database 12c                                                  12.1.0.1.0
There are 1 products installed in this Oracle Home.


There are no Interim patches installed in this Oracle Home.


--------------------------------------------------------------------------------

OPatch succeeded.

Go to oraInventory location, check the the permissions on the directory.

oracle@bt-tstdev-1]/export/home/oracle/bsstdba# cd /oracle/app/oraInventory
[oracle@bt-tstdev-1]/oracle/app/oraInventory# ls -ltr
total 16
drwxrwx---   2 oracle   oinstall       3 May 28 12:56 oui
drwxrwx---   2 oracle   oinstall       5 May 28 13:00 ContentsXML
drwxrwx---   2 oracle   oinstall      90 Oct 28 10:19 logs
drwxrwx---  16 siebel   siebel        16 Oct 28 10:19 backup

 

We can see that oracle user has no permission on backup directory. So grant 777 to backup directory.

 

[oracle@bt-tstdev-1]/oracle/app/oraInventory# ls -ltr
total 16
drwxrwx---   2 oracle   oinstall       3 May 28 12:56 oui
drwxrwx---   2 oracle   oinstall       5 May 28 13:00 ContentsXML
drwxrwx---   2 oracle   oinstall      90 Oct 28 10:19 logs
drwxrwxrwx  16 siebel   siebel        16 Oct 28 10:19 backup

 

Now try to redeploy the agent. It should work suceesfully.