Upgrading agents from the command line

You can upgrade agents by stopping them and running the installation program for the new version.

Before you begin

About this task

The preferred way to upgrade an agent is to let the server upgrade it automatically; see Upgrading agents remotely.


  1. From the new version of the server, download the agent installer for the new agent version.
    • To download the installer, log in to the server and click the Help icon at the upper right of any page on the server, and click Tools. Then, click HCL Launch Agent, and download and extract the file.
    • To find the installer on the server with the command line, go to the following location, and copy the file to the target computer: installation_folder/opt/tomcat/webapps/ROOT/tools/ucd-agent.zip
  2. Transfer the new agent installation package to the system that hosts the agent and extract the package.
  3. After you download and expand the installation package, open the installer directory.
  4. Stop the agent.
  5. From this directory, run the install-agent.bat command (Windows) or install-agent.sh (UNIX, Linux, Mac OS, or IBM® z/OS®).
  6. At the prompt Enter the directory where agent should be installed. [Default: /opt/ibm-ucd/agent], specify the current installation directory of the agent that you are upgrading.
  7. When the installer asks if you want to upgrade the existing agent, press Y and then press Enter.
    The installer upgrades the agent.
  8. At the prompt Will the agent connect to an agent relay instead of directly to the server? Y,N [Default: N] press N to connect directly to a server and press Y to connect to an agent relay.
  9. Specify the connection information for the agent.
    For more information, see Installing agents from the command line.
  10. Fill in the rest of the information for the installation program.
    The installer upgrades the agent.
  11. Restart the agent.

What to do next

On the server, click Resources > Agents and verify that the agent shows the new version.

Upgraded or installed agents are migrated to compact mode. Note that agents are updated to compact only if the agent is installed/upgraded on a platform that supports compact agents.