Import EEM application data from another environment CA Service Catalog

Document ID : KB000095026
Last Modified Date : 17/05/2018
Show Technical Document Details
Usually when copying test-environment data to the development-environment etc. import a copy of the test-environment EEM-application data over the existing registered EEM application "Service Catalog". 
When first unregister the old EEM-application and then import the copy/export from test-environment, it seems to not handle the ACL-list etc. correctly and I end up in a data missmatch. 
Using the EEM safex.exe command with parameters -h localhost -u eiamadmin -p password -f "Service Catalog.xml". 
What is the recommended way by CA to perform this? 
Windows running EEM and CA Service Catalog.
In short:
1 UNregister Service Catalog
2 REregister Service Catalog
3 Import your data
Pre-requisite settings:
Note: EEM can not be integrated with AD when executing these commands.
So first login in EEM and temporary, set the configuration for eem store to 'local store'.
EEM/configure/user store/user store
Save the details of the existing AD-configuration and then set it to: 'Store in internal user store'.
Note: Disable FIPS mode in EEM and then register Service Catalog in EEM.
To check the FIPS setting, Logon to EEM and click 'About'
In top left part, 'Product Specifications', you'll see soemthing like this:
FIPS: Disabled 

To set fips mode 'off', please run the following steps:
1. Stop iGateway as well as all CA Directory services 
2. Edit %IGW_LOC%\igateway.conf: 
3. Start all CA Directory services and iGateway 
Please first check whether EEM does hold the 'application' data:
Login to eIAM Global space>‘Configure’>'Applications'
Check whether 'CA Service Catalog' or whether 'Service Catalog' shows up.
When it is, click on/select 'CA Service Catalog' or 'Service Catalog' and hit the 'Unregister' button.
Wait until it is finished with: Confirmation: Application unregistered successfully.
Then re-register Catalog in EEM.
Follow the next steps to register Service Catalog with EEM:
1. Stop all catalog related services using that application instance:
   CA Service Catalog, CA Service Accounting, etc.
2. In Windows Explorer, navigate to the %USM_HOME% (Service Catalog)
   Launch the usm.cmd file. (Start the SC Command Prompt)
3. Rename any pre-existing eem-backup.xml file
4. Back In Windows Explorer, still in %USM_HOME% (Service Catalog) directory, navigate to:
   View\Scripts\EIAM\Safex and COPY the full path to this location from the address bar above.

5. Set the correct aplication name in the SC-EEM-config files:

5a. Check content of "fullpathcopiedpreviously-step4\usm_create_application.xml"
<ApplicationInstance name="Service Catalog" label="Service Catalog">
<Attach label="Service Catalog"/>
        <ApplicationInstance name="Service Catalog" label="Service Catalog">

In the above lines, check(and change when needed) for the correct application name.
It should be "Service Catalog".

5b. Check content of "fullpathcopiedpreviously-step4\usm_create_application_data.xml"
<Attach label="Service Catalog"/>
<User folder="/custom/Users" name="CERT-Service Catalog">
<User folder="/custom/Users" name="GUEST-Service Catalog">

5c. Check the content of usm_create_additional_application_data.xml
    replace ALL of the values "__EIAMAPPNAME__" by "Service Catalog"
<Attach label="__EIAMAPPNAME__"/>
6. Using the cmd prompt opened in a previous step 2, change directory to: cd bin\safex

7. Run the following commands:
   a)Safex -h hostnameofEEMserver -u EiamAdmin -p passwordofEiamAdmin -f "fullpathcopiedpreviously-step4\usm_create_application.xml"
   b)Safex -h hostnameofEEMserver -u EiamAdmin -p passwordofEiamAdmin -f "fullpathcopiedpreviously-step4\usm_create_application_data.xml"
   c)Safex -h hostnameofEEMserver -u EiamAdmin -p passwordofEiamAdmin -f "fullpathcopiedpreviously-step4\usm_create_additional_application_data.xml"
* Please note you need to enquote ("") the path should it contain space(s).
8. CD back to %USM_HOME% in the cmd prompt and run:
   ant update-eem-host [please follow the prompts as requested]
   Could be skipped.
9. Configure EEM user store for AD (when changed earlier in AA:).

10. Start the services again. CA Service Catalog, CA Accounting