Top
Systemwalker Software Configuration Manager Operation Guide
FUJITSU Software

2.6.1 Creating a Fujitsu Middleware Patch Application Script

To apply Fujitsu middleware patches, a script specifying the application processing must be created and then registered as a post-execution script.

Fujitsu middleware patch distribution destination

Fujitsu middleware patches will be distributed to the path specified in the "DISTRIBUTE_PATCH_PATH" environment variable on the business server.

The default path in the "DISTRIBUTE_PATCH_PATH" environment variable is shown below.

Example of creating a script to apply Fujitsu middleware patches

Execute the UpdateAdvisor (middleware) command to apply Fujitsu middleware patches.

An example of creating a script to apply Fujitsu middleware patches is shown below.

All patches distributed to directories included in the path specified in the "DISTRIBUTE_PATCH_PATH" environment variable will be applied.

Example:

[Windows]

"C:\Program Files (x86)\Fujitsu\UpdateAdvisor\UpdateAdvisorMW\uam" add -s -d %DISTRIBUTE_PATCH_PATH%

[Linux]

/opt/FJSVfupde/bin/uam add -s -d $DISTRIBUTE_PATCH_PATH

Refer to "Applying Updates (Using uam add)" in the UpdateAdvisor (middleware) help for information on the UpdateAdvisor (middleware) command.


A sample script for applying Fujitsu middleware patches is stored in the directory below.

Extract this script and revise if necessary before using.

Note that the admin server stores scripts for both Windows and Linux, while the business server stores only the scripts that match the operating system.

Storage location
  • Admin server

    [Windows]

    cfmgInstallDir\SWCFMGM\sample

    [Linux]

    /opt/FJSVcfmgm/sample

  • Business server

    [Windows]

    cfmgInstallDir\SWCFMGB\sample

    [Linux]

    /opt/FJSVcfmgb/sample

File name
  • Windows: win_mw_patch.bat

  • Linux: lin_mw_patch.sh

Notes on creating a Fujitsu middleware patch application script

Notes on creating a Fujitsu middleware patch application script are shown below (for general notes on scripts, refer to "Notes on creating scripts"):

Information

Changing the distribution directory

To change the distribution directory, edit the values in the following files on the business server:

  • Business server

    [Windows]

    The system environment variable "SWCFMGA_DISTRIBUTE" contains the distribution directory - to change it, simply edit the system environment variable.

    [Linux]

    /etc/opt/FJSVcfmgb/config/distribute.properties

    The "distribute_dir" item in the file above contains the distribution directory - to change it, simply edit the file.

    Example: distribute_dir=/var/opt/FJSVcfmgb/distribute