search cancel

How to use the ImportExportUtil.sh

book

Article ID: 134515

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Governance CA Identity Portal CA Identity Suite

Issue/Introduction

This procedure can be used in vApp or on premise, This can be done on single server or in cluster.

Environment

Release:


Component:

Resolution

In a cluster Log into 

 

lb602146-imag-vapp02 VAPP-14.2.0 (10.17.112.68)

config/config

cd /opt/CA/IdentityManager/IAM_Suite/IdentityManager/tools/PasswordTool

Enter ./pwdtools.sh -JSAFE -p "sp()^[email protected]$"

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

Your JAVA_HOME is currently set to /opt/CA/jdk1.8.0_71/

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

Encrypting your password ...

******************************************

Plain Text: sp()^[email protected]$

Encrypted value: {PBES}:tGzum/AZ9EIS4fRT5Bc6yQ==

******************************************

Open sqldeveloper.exe

Enter

Connection name: (anything you want)

Username: system

password:

Hostname: 10.17.112.68

port: 1521

SID: xe

On the worksheet tab enter:

insert into IDM.im_auth_user (USER_NAME,PASSWORD,DISABLED,ID) values ('testuser','{PBES}:tGzum/AZ9EIS4fRT5Bc6yQ==','0',2);

Then run:

commit;

Matching the encrypted value of the password to the encrypted value provided by the password tools.

Open a connection to:

https://10.17.112.68:10443/vapp/client/#/dashboard

Open IDM managment console

Enter

User: testuser

Password: sp()^[email protected]$

Log into second Node

download and edit:

/opt/CA/IdentityManager/IAM_Suite/IdentityManager/tools/ImportExportUtility/config.properties

edit to match the following

## provide IM server base url with port number

baseUrl=http://wl610348-imag-vapp02.lvn.broadcom.net:8080

userName=testuser

password={PBES}:tGzum/AZ9EIS4fRT5Bc6yQ==

## provide mode import/export

mode=export

## provide resource type ALL/Directory/Environment/RoleDefinition

resourceType=ALL

## provide comma separated list of Directories to import/export, in case of import it should be xml file name

directories=UserStore,ProvStore

## provide Environment name for Environment/Role Definition import/export, in case of environment import it should be zip file name

environment=identityEnv

## In case of Role Definition import please provide xml file name

roleDefFileName=env-RoleDefinitions

## provide local path to save/get the resources, in case of export directory structure will be created

localPath=//tmp//export

[email protected] VAPP-14.2.0 (10.17.112.86):/opt/CA/IdentityManager/IAM_Suite/IdentityManager/tools/ImportExportUtility > ./ImportExportUtil.sh

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0

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

-------------------Starting a new Export-------------------

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

Exporting Directory 'UserStore'...

 disposition attachment; filename=UserStore.xml;

Exported Filename: UserStore.xml

Directory Exported Successfully!!!

Exporting Directory 'ProvStore'...

 disposition attachment; filename=ProvStore.xml;

Exported Filename: ProvStore.xml

Directory Exported Successfully!!!

Exporting Environment 'identityEnv'...

 disposition attachment; filename=identityEnv.zip;

Exported Filename: identityEnv.zip

Environment Exported Successfully!!!

[email protected] VAPP-14.2.0 (10.17.112.86):/opt/CA/IdentityManager/IAM_Suite/IdentityManager/tools/ImportExportUtility >