applyPatch

The "applyPatch" command applies a patch to a TIBCO Host instance or to all TIBCO Host instances in CONFIG_HOME.

Some patches are successive in nature, and may require other patches to be applied before the new patch can be applied. The "describeAvailablePatches" command will tell you which patches require other patches to be applied first.

Applying a patch consists of two operations, and they are executed depending on the scope of the patch.

  • The first operation upgrades the TIBCO Host itself.
  • The second operation upgrades the software running in all the Nodes of TIBCO Host. If a patch does not affect the TIBCO Host, the TIBCO Host is not modified. Similarly, if a patch does not affect Node software, Nodes will not be modified. If any errors are encountered during application of a patch, all changes are rolled back and the TIBCO Host instance is not modified.
Note: The TIBCO Host instance must not be in the Running state, at the time of applying the patch. All Nodes managed by the instance must be stopped first before applying the patch.
Argument Description
-ID The identifier of the patch to be applied. Identifiers are of the form <name>:<version>.

You can get a list of available Patch IDs using the "describeAvailablePatches" command.

-handleStop Stops TIBCOHost instance(s) before applying the patch.
-handleStart Starts TIBCOHost instance(s) with "clearCache" after applying the patch. Starts TIBCOHost instance as a Service if it is installed as Windows Service.
-nonInteractive

Automatically applies the last-released patch from TIBCO_HOME to all TIBCO Host instances in the provided CONFIG_HOME, without any interaction from the user.

  • For all TIBCO ActiveMatrix patches, the last-released patch is the last element in the sorted list returned by the "describeAvailablePatches" command.
  • If there are other patches (for example, REST BT, BusinessWorks SE, and so on), the patch with a later release date is applied. For example, if REST BT HotFix 002 was released BEFORE ActiveMatrix HotFix 014 and both are installed at the same time, the Host Manager applies ActiveMatrix HotFix 014, as it was the last one to be released.
-clearCache Clear the cache of all participating nodes without starting the TIBCOHost instance on which the nodes are running.
Note: If you intend to start Host instances manually, ensure that ALL Hosts are started with "clearCache". Alternatively, use "-clearCache" while running this command. TIBCOHost instances will start with "clearCache" on their next startup.

With this, the TIBCOHost instances started from outside of ActiveMatrix (for example, using TIBCO Hawk®) after applying the patch can automatically be started with "clearCache" without providing an additional argument. The "clearCache" argument can also be used to start TIBCOHost instances running as Windows Service with "clearCache". You must specify the "clearCache" when applying a patch on TIBCOHost Instance(s) running as Windows Service.

Note: This command does not handle "clearCache" start of Hosts running as NT Service by default. This can be handled by "-clearCache". If you have Hosts running as NT Service, you must specify "-clearCache" along with "-handleStart" to start the Hosts with "clearCache".
-delayInSeconds Allows adding a delay of specified amount of time after applying the patch and between each TIBCO Host instance startup if TIBCOHost startup is handled. If the delay is not provided, it uses the default delay of 10 seconds.
-dryRun

Allows you to see what changes would be made by applying a patch, without making the actual changes. The command executes without making changes and you can look in the log to see what changes would have been made.

Examples

>applyPatch -configHomeLocation /path/to/confighome/location -instanceName myTibcoHostInstance -ID amx.platform.patch:3.3.0.HF14 -handleStop -handleStart

This stops the TIBCOHost Instance myTibcoHostInstance in the CONFIG_HOME path/to/confighome/location, applies the patch amx.platform.patch:3.3.0.HF14 and starts the Instance with "clearCache".

Note: By default, this starts TIBCOHosts running as Windows Service without the "clearCache" option.
>applyPatch -configHomeLocation /path/to/confighome/location -nonInteractive

This applies the latest available patch in TIBCO_HOME to all TIBCOHost Instances in the CONFIG_HOME path/to/confighome/location.

>applyPatch -configHomeLocation /path/to/confighome/location -instanceName myTibcoHostInstance -ID amx.platform.patch:3.3.0.HF14 -clearCache

This applies the patch amx.platform.patch:3.3.0.HF14 to TIBCOHost Instance myTibcoHostInstance in the CONFIG_HOME path/to/confighome/location and clears cache of all Nodes on the Instance myTibcoHostInstance.

>applyPatch -configHomeLocation /path/to/confighome/location -clearCache

This applies the latest available patch in TIBCO_HOME to all TIBCOHost Instances in the CONFIG_HOME path/to/confighome/location and clears cache of all Nodes on all TIBCOHost Instances.

>applyPatch -configHomeLocation /path/to/confighome/location -handleStop -handleStart -clearCache

This stops all TIBCOHost Instances in the CONFIG_HOME path/to/confighome/location, applies the latest available patch to all of them, clears cache of all Nodes on all of the TIBCOHost Instances and starts the Instances. This starts all Instances with "clearCache" whether they are running as processes or as Windows Service.

>applyPatch -configHomeLocation /path/to/confighome/location -handleStop -handleStart -delayInSeconds 30

This stops all TIBCOHost Instances in the CONFIG_HOME path/to/confighome/location, applies the latest available patch to all of them and starts the Instances with "clearCache". This adds a delay of 30 seconds after applying the patch and between each TIBCOHost instance startup.