Highlighted
Micro Focus Expert
Micro Focus Expert
100 views

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.

Usage:

/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                        


4) Reboot

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:

http://support.openview.hp.com/selfsolve/document/KM1023360

Micro Focus Support
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
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.