Change Proxy Server Settings After Installing Cloud Agents

Your organization may decide to change the proxy server settings for security reasons. If your cloud agent connects to Oracle Management Cloud over the proxy server, then you must modify the proxy server settings of the cloud agent.

To modify the proxy server settings after the agent was deployed:

  1. View the current proxy server details being used by the cloud agent.

    <AGENT_BASE_DIRECTORY>/agent_inst/bin/omcli getproperty agent -name OMC_PROXYHOST
    Oracle Management Cloud Agent
    Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
    OMC_PROXYHOST=www-xyz.abc.oracle.com 
    
    <AGENT_BASE_DIRECTORY>/agent_inst/bin/omcli getproperty agent -name OMC_PROXYPORT
    Oracle Management Cloud Agent
    Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
    OMC_PROXYPORT=20 
  2. Clear the current proxy server settings.

    <AGENT_BASE_DIRECTORY>/agent_inst/bin/omcli clear_property agent -name OMC_PROXYHOST 
    Oracle Management Cloud Agent
    Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
    EMD clear_property succeeded 
    <AGENT_BASE_DIRECTORY>/agent_inst/bin/omcli getproperty agent -name OMC_PROXYHOST
    Oracle Management Cloud Agent Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
    OMC_PROXYHOST=null
    <AGENT_BASE_DIRECTORY>/agent_inst/bin/omcli clear_property agent -name OMC_PROXYPORT 
    Oracle Management Cloud Agent
    Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
    EMD clear_property succeeded 
    <AGENT_BASE_DIRECTORY>/agent_inst/bin/omcli getproperty agent -name OMC_PROXYPORT 
    Oracle Management Cloud Agent
    Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
    OMC_PROXYPORT=null 
  3. Set the new or updated proxy.

    <AGENT_BASE_DIRECTORY>/agent_inst/bin/omcli setproperty agent -name OMC_PROXYHOST -value "www-abc.xyz.example.com"
    Oracle Management Cloud Agent
    Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
    EMD setproperty succeeded 
    <AGENT_BASE_DIRECTORY>/agent_inst/bin/omcli setproperty agent -name OMC_PROXYPORT -value 80
    Oracle Management Cloud Agent
    Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
    EMD setproperty succeeded 
    
    <AGENT_BASE_DIRECTORY>/agent_inst/bin/omcli getproperty agent -name OMC_PROXYHOST 
    Oracle Management Cloud Agent
    Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
    OMC_PROXYHOST=www-abc.xyz.example.com 
    <AGENT_BASE_DIRECTORY>/agent_inst/bin/omcli getproperty agent -name OMC_PROXYPORT 
    Oracle Management Cloud Agent
    Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
    OMC_PROXYPORT=80
    
  4. Stop and then restart the cloud agent.

    <AGENT_BASE_DIRECTORY>/agent_inst/bin/omcli stop agent
    Oracle Management Cloud Agent
    Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
    Stopping agent ... stopped. 
    <AGENT_BASE_DIRECTORY>/agent_inst/bin/omcli start agent
    Oracle Management Cloud Agent
    Copyright (c) 1996, 2016 Oracle Corporation.  All rights reserved.
    Starting agent ................... started.