Performing the Agent for Java upgrade silently


This topic presents procedures for the silent upgrade of the BMC Application Diagnostics Agent for Java from version 2.0, or later, to 2.5.01. You can upgrade Agents using the silent upgrade procedure and deploy the silent upgrade to several computers, or you can upgrade each Agent using the interactive mode procedure.

After you upgrade an Agent, it runs using the same log files and configuration, and the same Agent policy and recording configuration apply.

Failed to execute the [excerpt-include] macro.

To upgrade the BMC Application Diagnostics Agent for Java silently

  1. Stop the Java virtual machine (JVM) process on the agent computer.
  2. From the directory with the agent installation files, run the following command:

    • (Windows) adops-agent-upgrade.bat -s -d <installationDirectory>
    • (Linux) adops-agent-upgrade.sh -s -d <installationDirectory>

     

    The silent installation uses the following parameters:

    • -s parameter specifies to install in silent mode
    • -d parameter specifies the upgrade directory. Enter the full path to the existing BMC Application Diagnostics Agent installation directory, which must include the ADOPsInstall directory. You can also use a relative path. If the path includes a space, enclose the path in quotation marks.

    Information

    (Windows) adops-agent-upgrade.bat -s -d "c:\BMC Software\ADOPs\ADOPsInstall"

    (Linux) adops-agent-upgrade.sh -s -d /opt/ADOPs/ADOPsInstall

    See Upgrade command optionsfor additional options.

  3. Restart the JVM process.

Upgrade command options

A silent upgrade requires only the -s (silent) and -d (installation directory) options. Available options are listed in the following table.

Option

Description

-h or -help

Prints a help message, listing all the command options

-s or -silent

Sets the silent mode, so that the utility does not wait for arguments. If an argument is missing, the utility uses the default value.

-d or -destination <installationDirectory>

Specifies the full path to the existing ADOPsInstall directory to be upgraded. If a directory is not specified, the installation utility uses the directory from which the installation script was invoked.

-dLogs or -deleteOldLogs

Removes existing log files from the upgraded directory and replaces them with new log files

-keepOrig or -keepOrigDirCopy

Preserves a copy of the existing ADOPsInstall directory next to the upgraded one, named ADOPsInstall.<origVerName>.<indexNumber>.old.tmp

To restore the earlier version of the Agent, perform the following procedure:

  1. Stop the JVM process on the Agent computer.
  2. Move or rename the upgraded ADOPsInstall directory.
  3. Rename the backed up directory to ADOPsInstall.
  4. Restart the JVM process.

The Agent restarts at the state before the Agent upgrade.

-a or -application <app_display_name>

Specifies a name for the application to be displayed in the BMC Application Performance Management Console. The application name is case insensitive. Default value in silent upgrade is blank.

-ti or -tier <tier_type>

Specifies the type of tier this Agent represents in the Application View: app, business, web. The default value is app.

Information
Example
adops-agent-upgrade -help -silent -destination /opt/ADOPs/ADOPsInstall -skipExistingVerCheck -deleteOldLogs
-deleteOldWorkDir -keepOrigDirCopy -application myApplication -tier app

Failed to execute the [excerpt-include] macro.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Application Diagnostics 2.5