Hi Gabriel,
Unfortunately neither works.
'exportWasprofile' obviously has a restriction so this is ruled out immediately as it's the entire cell I need to move.
'AdminTask.extractConfigProperties' was more promising but again it failed because ultimately the issue with moving the cell is in the profile settings outside the profile configuration. What I did was
- installed 3 dummy profiles into new instance. 1 x Dmgr and 2 empty profiles ... all with the same names Dmgr01, STG01 and STG02
- using AdminTask.extractConfigProperties I exported the Cell configuration
- updated the cell configuration so that any references within the file were changed from '/ND/' to '/ND-STG'
- then I renamed the profiles in '/ND-STG/' from Dmgr01, STG01 and STG02 to Dmgr01_bak, STG01_bak and STG02_bak
- I then copied the 3 profiles from '/ND/' to '/ND-STG/' (I obviously need to take all the certs, applications, settings etc)
- Started up Dmgr01
- Imported the updated Cell configuration
- Stop the Deployment manager on '/ND-STG/'
- Try to restart it but it fails complaining about references to '/ND/'
So there are references above '/QIBM/UserData/WebSphere/AppServer/V7/ND-STG/profiles' but below '/QIBM/UserData/WebSphere/AppServer/V7/ND-STG/profiles/Dmgr01/config' (outside the backupConfig.sh scope) that are unique to '/ND/'.
The only way I can see is to do a recursive find and replace of '/ND/' to '/ND-STG/' for all of '/QIBM/UserData/WebSphere/'.
On an iSeries platform this is a challenge in itself as the 'sed' function has no '-i' switch so each file has to be written to temporary location and then copied back to overwrite the original. I can't lift the profiles onto Windows and use something like 'grep for windows' as there is an issue with the depth of the patch when copying so if it has to be done it will have to be done on the iSeries.
First of all though I need to understand if this 'find and replace' strategy will actually work (it does on Linux and Windows). I do know that if I don't get all instances then when I patch '/ND-STG/' the '/'ND/' installation says it's also patched and that's a disaster as this would basically kill my Production instances.
Any idea if (a) 'find and replace' as a strategy will work and (b) if there is any easy way / script on iSeries to do this?
Thanks,
Paul