Upgrading agents from the command line#

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

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
    • Transfer the new agent installation package to the system that hosts the agent and extract the package.
  2. After you download and expand the installation package, open the installer directory.

  3. Stop the agent.

  4. From this directory, run the install-agent.bat command (Windows™) or install-agent.sh (UNIX™, Linux™, Mac OS, or IBM z/OS®).

  5. 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.

  6. When the installer asks if you want to upgrade the existing agent, press Y and then press Enter.

    The installer upgrades the agent.

  7. 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.

  8. Specify the connection information for the agent.

    For more information, see Installing agents from the command line.

  9. Fill in the rest of the information for the installation program.

    The installer upgrades the agent.

  10. Restart the agent.

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.

Parent topic: Upgrading agents