OHS Redeploying/Registering instance

1. Go to OHS Instance location :-

cd /apps/oracle/middleware/Oracle_WT1/instances/instance1/bin

2. Un-register the OHS

echo -n unregister the OHS in EM

./opmnctl unregisterinstance -instanceName ohs1 -adminHost 145.83.73.5 -adminPort 8100

3. echo -n redeply to the EM adminserver

./opmnctl redeploy -adminHost 145.83.73.5 -adminPort 8100

4. echo -n Re-register instance in EM

./opmnctl registerinstance -adminHost 145.83.73.5 -adminPort 8100d