Support Tip: How to automate changes after OMU cloning
It makes it easier to ignite or clone an additional HPOM server by using an image template.
Such an image needs some modifications which are done through a new automated script.
A new contrib tool, the /opt/OV/contrib/OpC/om_server_switch.sh script, is introduced.
/opt/OV/contrib/OpC/om_server_switch.sh <new_long_hostame> <new_IP_Address> <old_long_hostame> <old_IP_Address> [ nowait ]
The script can do the following:
— Change internal OM related configuration files.
— Change DB listener files to the new hostname and IP address.
— Create a new ovcoreid for the local agent and management server.
— Create a new set of node and root certificates.
— Restart Oracle, OM server, and the local agent.
— Clean policy cache.
— Deploy policies to a local agent.
— Install a new license (manual step).
Make sure that you have got the latest OMU consolidated server patch installed before you are using om_server_switch.sh
As latest OMU consolidated server patch may bring latest enhancements and fixes for om_server_switch.sh
Please, note that currently om_server_switch.sh script does not change the Oracle Net files and thus the whole switch might fail.
Use this order to switch the host name and/or IP address using om_server_switch.sh:
1) Temporarily disable automatic startup of the Oracle database (/etc/init.d/ovoracle or /sbin/init.d/ovoracle)
2) Temporarily disable automatic startup of the HPOM server processes (omu500)
3) Make the node name and/or IP address changes in the system
If required, change the entries in the /etc/hosts file
5) Manually change the Oracle net files.
Change the old short host name to the new short host name in
$ORACLE_HOME/network/admin/*.ora (tnsnames.ora and listener.ora)
6) Now run /opt/OV/contrib/OpC/om_server_switch.sh using the correct syntax.
Check more details in latest Operations Manager Release Notes:
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
If you liked it I would appreciate KUDOs. Thanks