Docs.bmc.com will undergo a brief maintenance outage 27 March 2025. The site will be unavailable for ten minutes starting at 7:30 AM CDT/6 PM IST.

Upgrading the Continuous Optimization Agent


A Continuous Optimization Agent collects data from the managed systems in your environment. After collecting data, the Agent transfers it to the Gateway Server. You can upgrade the Continuous Optimization Agent using the wizard or silently.

Before you begin

Ensure that you have upgraded the Remote ETL Engine and the Gateway Server before upgrading the Continuous Optimization Agent. 

For information about how to upgrade the Remote ETL Engine and Gateway Server, see Upgrading the Remote ETL Engine and Upgrading-the-Gateway-Server

To prepare to upgrade the Continuous Optimization Agent

On Windows

  • Verify that the user account for upgrading the Continuous Optimization Agent has administrator rights. 
  • We recommend that you configure the Terminal Services on systems to prevent the installer from deleting the temporary folder while it exits the installation. Ensure that the installer does not use temporary folders for each session.

On UNIX and Linux

  • Ensure that you are using a non-privileged and non-root user account for upgrading the Continuous Optimization Agent.
  • If you are upgrading the Continuous Optimization Agent on a Ubuntu Linux system, ensure that the libxtst6 package is installed.

    To install the libxtst6 package
    1. Download the package from Ubuntu packages. 

    2. Run the following command:
      dpkg -l | grep -i libxtst6

You must upgrade the Continuous Optimization Agent on each managed system from which you want to collect data. You can use one of the following upgrade methods:

  • Shell script: You can upgrade the Agent by using the shell script. The script uses the AgentSilentInstallOptions.txt file, which contains the parameters used for configuring the Agent.
  • Docker container: You can upgrade the Agent by using a Docker container. The installation involves loading and running the Docker image on a Docker host. When you run the Docker image, the Docker container is created, and the Agent within the container is started. The Agent starts collecting the system-level metrics from the Docker host. The Docker host can be in an on-premises environment or a cloud environment, such as AWS, Azure, or Google Cloud Platform.

To upgrade the Continuous Optimization Agent using a shell script

To upgrade the Agent on Windows systems, ensure that you open the command prompt as an administrator for running the commands.

  1. Log in to the managed system where you want to upgrade the Continuous Optimization Agent:
    • (Windows) as a user with administrator privileges.
    • (UNIX and Linux) as root or non-root user.
  2. From the Administration > System > Downloads page, select the platform and click Download.
  1. Extract the Continuous Optimization Agent installer files to a temporary directory.
    • (Windows) Extract  TSCO_Agent_ver<version>_MSwindows.zip
    • (UNIX and Linux) Run the following command:
      tar -xvzf TSCO_Agent_ver<version>_<platform>_<architecture or image>.tar.gz
      Example: 

      tar -xvzf TSCO_Agent_ver23.4.02_Linux_x86-64.tar.gz
      tar -xvzf TSCO_Agent_ver23.4.02_Solaris_SPARC.tar.gz

  1. (Optional) To change the default values of the installation properties, complete these steps:
    1. Navigate to the directory that contains the extracted files.
    2. Open the AgentSilentInstallOptions.txt file.
    3. Update values of the required parameters.
  2. Run the following command to start the upgrade:

    • (Windows) <path_to_install.bat>\install.bat -DOPTIONS_FILE=<path_to_AgentSilentInstallOptions.txt>
      Example: C:\Users\Administrator\Downloads\installer\install.bat -DOPTIONS_FILE="C:\AgentSilentInstallOptions.txt"
    • (UNIX and Linux./install.sh -DOPTIONS_FILE=<path_to_AgentSilentInstallOptions.txt> 
      Example: ./install.sh -DOPTIONS_FILE=/installer/AgentSilentInstallOptions.txt

    A confirmation message is displayed indicating that the upgrade is completed.

  3. ImportantPerform this step only if you installed the Agent as a non-root user.
    (UNIX and LinuxRun the following command as a root user to configure the Agent:
    1. Change to the root user.
    2. Change to the installation directory and run the following command:
      ./b1config<version>.sh
      where version indicates the version of the installed Continuous Optimization Agent.

To verify the status of the upgraded Agent

On Windows

  1. At the command prompt, enter services.msc
  1. Check whether the BGS_SDService service is running.

On UNIX and Linux

Run this command to ensure that the agent daemon service (/etc/bgs/SD/bgssd.exe -d /etc/bgs/SD -s) is running as a non-root user:
ps -ef | grep bgs

You can update values of the Agent configuration parameters whenever required. For more information, see Configuring-the-Continuous-Optimization-Agents.

To upgrade the Continuous Optimization Agent using a Docker container

  1. Log in as a root user to the Linux system where you want to upgrade the Agent.
  2. Change to the directory containing the Agent installer files that you downloaded from Downloads page (Administration > System > Downloads).
  3. Run the following command to load the zipped Docker image to a local repository:
    docker load -i tsco-agent-linux-x86_64_<version>.tar.gz
    Example:
    docker load -i tsco-agent-linux-x86_64_23.4.02.0.00.tar.gz
  4. Run this command to verify that the Docker image is loaded:
    docker images
    Example:
    $ docker images | grep tsco-agent
    Sample output: bmcsoftware/tsco-agent-linux-x86_64   23.4.02.0.00   7bbb7a3fae1d   29 hours ago   200MB
  5. Run the following command to create a container from the image and start the Agent within the container:

    docker run -d --pid=host --network=host --ipc=host --privileged -v /:/host:ro tsco-agent-vol:/usr/adm/best1_agent_workspace bmcsoftware/tsco-agent-linux-x86_64:<version>

    Example:

    docker run -d --pid=host --network=host --ipc=host --privileged -v /:/host:ro tsco-agent-vol:/usr/adm/best1_agent_workspace bmcsoftware/tsco-agent-linux-x86_64:23.4.02.0.00

    Argument

    Used to

    Example syntax of the Docker run command

    --name <value>

    Provide a name to a Docker container. You can use this name in other Docker commands instead of docker ID. You cannot start a new container with a similar name in the following scenarios:

    • A Docker container with the same name is already running.
    • An instance of a Docker container that uses the same name is available in the Docker container repository.

    We recommend using a container name such as tsco_agent.

    To start a container with the tsco_agent name that is already in use, do the following steps:

    1. Stop the Docker container:
      $ docker stop tsco_agent
    2. Remove the stopped container.
      $ docker rm tsco_agent

    You can now start a new container instance with the tsco_agent name.

    docker run --name tsco-agent -d --pid=host --network=host --ipc=host --privileged -v /:/host:ro tsco-agent-vol:/usr/adm/best1_agent_workspace bmcsoftware/tsco-agent-linux-x86_64:23.4.02.0.00

    --restart=always

    Restart a running Docker container after rebooting the docker host.

    docker run --name tsco-agent --restart=always -d --pid=host --network=host --ipc=host --privileged -v /:/host:ro tsco-agent-vol:/usr/adm/best1_agent_workspace bmcsoftware/tso-agent-linux-x86_64:23.4.02.0.00

    where -v tsco-agent-vol is mounted in the container as the /usr/adm/best1_agent_workspace directory. This directory is used for storing data, logs, and state information. If you do not specify this parameter, agent data and logs are stored within the container instead of the volume on the host. 
    We also recommend adding the following arguments to the Docker run command:

  6. (Optional) Configure the Agent history by adding one of the following arguments to the Docker run command: 
    [ -H e|d|D ]

    Argument

    Example syntax of the Docker run command

    Result of running the Docker run command

    - H e

    docker run --name tsco-agent --restart=always -d --pid=host --network=host --ipc=host --privileged -v /:/host:ro tsco-agent-vol:/usr/adm/best1_agent_workspace bmcsoftware/tsco-agent-linux-x86_64:23.4.02.0.00 - H e

    The Agent history is enabled, which is the default setting.

    - H d

    docker run --name tsco-agent --restart=always -d --pid=host --network=host --ipc=host --privileged -v /:/host:ro tsco-agent-vol:/usr/adm/best1_agent_workspace bmcsoftware/tsco-agent-linux-x86_64:23.4.02.0.00 - H d

    The Agent history is disabled.

    - H D

    docker run --name tsco-agent --restart=always -d --pid=host --network=host --ipc=host --privileged -v /:/host:ro tsco-agent-vol:/usr/adm/best1_agent_workspace bmcsoftware/tsco-agent-linux-x86_64:23.4.02.0.00 - H D

    The Agent history is disabled and the old history files are deleted. You can use this option to remove the old history files after upgrading the Agent.

  7. Failed to execute the [excerpt-include] macro. Cause: [Error number 2 in 0: No wiki with id [confluencePage:page] could be found]. Click on this message for details.
  8. Run this command to check the status of the Agent process:
    ps -ef | grep bgsagent