Thursday, 18 May 2017

Export Model Repository Mappings using infacmd oie command

Export Command Without Control File: 

​./infacmd.sh oie ExportObjects -dn infav10_domain -un Admin -pd "@@@@@@" -sdn Native -pn Integration -rs mrs_irpo -fp /tmp/Mappings.xml -ow true

Export Command With Control File: 
./infacmd.sh oie ExportObjects -dn infav10_domain -un Admin -pd "@@@@@@" -sdn Native -pn Integration -rs mrs_irpo -fp /tmp/Mappings.xml -ow true -cp /tmp/ec_mapping.xml

Control File Samples

Control File :    All_Mappings In the Project Without considering Sub Folders

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<exportParams
<folders>
<folder recursive="false" >
<objectList type="Mapping" />
</folder>
</folders>
</exportParams>

Control File :    All_Mappings In the Project With consider Sub Folders contents

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<exportParams
<folders>
<folder recursive="true" >
<objectList type="Mapping" />
</folder>
</folders>
</exportParams>


Control File :  Export Particular Mapping 

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<exportParams
<folders>
<folder recursive="false" >
<objectList type="Mapping">
<object name="m_PassThrough_Mapping"/>
</objectList>
</folder>
</folders>
</exportParams>​

Control File : Export Particular Folder Mappings in a Project ​

​<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<exportParams
<folders>
<folder path="/SourceAdapter" recursive="false" >
<objectList type="Mapping" />
</folder>
</folders>
</exportParams>​

​ 

No comments:

Post a Comment