A.2 Changing Default Port Numbers

In most cases, you can use the default port numbers that the HP OMU Web service uses. However, if there are any conflicts with existing applications, you need to change the port numbers.

The following sections provide procedures on how to change these default port numbers.

A.2.1 Changing the Agent Listener Port (9007)

9007 is the default port number used for communication between the Oracle OMU Agent and the OMU Web service. To change this port number, perform the following steps at the HP Operations Manager server system.

Replace <OMUA_INSTALL> with the directory where the Oracle OMU Agent is installed.

  1. Open a command prompt window and change the working directory to:

    <OMUA_INSTALL>/ovo-agent/scripts
    
  2. Enter the following command to stop the Oracle OMU Agent. You will be prompted for the credentials to stop the Agent.

    ./stop.sh
    

    Note:

    You must specify the user name and password for the account that is authorized to stop the Oracle OMU Agent. See Installing and Running the Oracle Agent for HP Operations Manager for information about the account that is authorized to stop the Oracle OMU Agent.

  3. Make a back-up copy of the following file:

    <OMUA_INSTALL>/ovo-agent/conf/ovooper.txt
    
  4. Open the file above in a text editor.

  5. Search for the line containing the ListenPort= string.

  6. Change 9007 to the new port number.

  7. Save the file and exit.

  8. Enter the following command to start the HP Operations Manager Agent:

    ./start.sh
    

    The Oracle OMU Agent picks up the configuration changes and uses the new port number.

Perform the following steps at the system where the OMU Web services are installed. Replace <OMUWS_INSTALL> with the directory where the OMU Web service is installed.

  1. Open a command prompt window and change the working directory to:

    <OMUWS_INSTALL>/adapters/conf
    
  2. Make a back-up copy of the framework.properties file.

  3. Open the framework.properties file in a text editor.

  4. Search for the line containing the hpovou.xmlagent property. Change the port number from 9007 to the new port number.

  5. Save the file and exit.

  6. Restart the OMU Web service as instructed in Running the Web Service on Unix and Testing the Web Service on Unix.

A.2.2 Changing the Agent Shutdown Port (9008)

The OMU Agent has two components that you must shut down whenever the Agent is stopped. The default port numbers these components use are 9008 and 9009. To change these port numbers, perform the following steps at the HP Operations Manager server system.

  1. Open a command prompt window and change the working directory to:

    <OMUA_INSTALL>/ovo-agent/scripts
    

    Replace <OMUA_INSTALL> with the directory where the Oracle OMU Agent is installed.

  2. Enter the following command to stop the Oracle OMU Agent. You will be prompted for the credentials to stop the Oracle OMU Agent.

    ./stop.sh
    

    You must specify the user name and password for the account that is authorized to stop the Oracle OMU Agent. See Installing and Running the Oracle Agent for HP Operations Manager for information about the account that is authorized to stop the Agent.

  3. Make a back-up copy of the ovooper.txt file, then open the file in a text editor.

  4. Search for the line containing the ShutdownPort= string.

  5. Change the default port number from 9008 to the new port number.

  6. Save the file and exit.

  7. Enter the following command to start the HP Operations Manager Agent:

    ./start.sh
    

    The Oracle OMU Agent picks up the configuration changes and uses the new port number.

  8. Change the working directory to the scripts directory by entering the following command:

    cd ../scripts
    
  9. Make a back-up copy of the stop.sh script file, then open the file in a text editor.

  10. Change the SEND_SHUTDOWN_PORT and RCV_SHUTDOWN_PORT variables from 9008 to the new port number.

  11. Save the file and exit.

A.2.3 Changing the Web Service Port (8080)

The OMU Web service uses port 8080 as the default port for communication when the Web service is configured at installation to use HTTP (no SSL). To change the port number to a different value, perform the following steps on the system where the Oracle OMU Agent is installed.

Perform the following steps at the system where the HP OMU Web services are installed. Replace <OMUWS_INSTALL> with the directory where the HP OMU Web services are installed.

  1. From the Setup menu of the Enterprise Manager console, select Extensibility, then Management Connectors.

  2. Click on the name of the OMU Connector.

    The General tab of the Configure Management Connector page appears.

  3. Change the URLs listed in the Web Service End Points section to use the new port number.

  4. Click OK to save your changes.

A.2.4 Changing the Web Service Port (8443)

Contact Oracle support for assistance in switching the default SSL port 8443 to a different port.