Steps on how to use ImportExportUtil.sh. This can be used in vApp or on premise, This can be done on single server or in cluster.
Release: 14.4
Component: Identity Manager
In a cluster Log into
VAPP-14.2.0 (XX.XX.XX.XXX)
config/config
cd /opt/CA/IdentityManager/IAM_Suite/IdentityManager/tools/PasswordTool
Enter ./pwdtools.sh -JSAFE -p <Password>
Example: ./pwdtools.sh -JSAFE -p SamplePassword
--------------------------------------------------
Your JAVA_HOME is currently set to /opt/CA/jdk1.8.X_XX/
--------------------------------------------------
Encrypting your password ...
******************************************
Plain Text: <Password>
Encrypted value: {PBES}:tGzu############Bc6yQ==
******************************************
Open sqldeveloper.exe
Enter
Connection name: (anything you want)
Username: <DatabaseAdmin>
password: <Password>
Hostname: XX.XX.XXX
port: 1521
SID: xe
On the worksheet tab enter:
insert into IDM.im_auth_user (USER_NAME,PASSWORD,DISABLED,ID) values ('<AdminUserName>','{PBES}:tGzu############Bc6yQ==','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://XX.XX.XX.XXX:10443/vapp/client/#/dashboard
Open IDM managment console
Enter
User: <AdminUserName>
Password: <Password>
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://<Hostname>:8080
userName=<AdminUserName>
password={PBES}:tGzu############Bc6yQ==
## 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
VAPP-14.2.0 (1XX.XX.XX.XXX):/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!!!