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
Procedure
-
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
- To download the installer, log in to the server and click the Help
icon
- Transfer the new agent installation package to the system that hosts the agent and extract the package.
- After you download and expand the installation package, open the installer directory.
- Stop the agent.
- From this directory, run the install-agent.bat command (Windows™) or install-agent.sh (UNIX™, Linux™, Mac OS™, or IBM® z/OS®).
- 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.
-
When the installer asks if you want to upgrade the existing agent, press
Y and then press Enter.
The installer upgrades the agent.
- 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.
-
Specify the connection information for the agent.
For more information, see Installing agents from the command line.
-
Fill in the rest of the information for the installation program.
The installer upgrades the agent.
- Restart the agent.
What to do next
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.