When distributing Fujitsu middleware patches, after execution register the scripts to apply the patches. This section explains the method to describe the scripts.
Fujitsu middleware patch distribution destination
The distribution destination of Fujitsu middleware patches is configured in the script environment variable, "DISTRIBUTE_PATCH_PATH". Describe the patch application process using this environment variable.
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.
Execute the UpdateAdvisor (middleware) command to apply Fujitsu middleware patches. It is recommended to delete the distribution destination directory after patch application.
An example of creating a script to apply Fujitsu middleware patches and delete the distribution destination directory after patch application 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% rd /s /q %DISTRIBUTE_PATCH_PATH% |
[Linux]
/opt/FJSVfupde/bin/uam add -s -d $DISTRIBUTE_PATCH_PATH rm -rf $DISTRIBUTE_PATCH_PATH |
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.
Admin server
[Windows]
cfmgInstallDir\SWCFMGM\sample |
[Linux]
/opt/FJSVcfmgm/sample |
Business server
[Windows]
cfmgInstallDir\SWCFMGB\sample |
[Linux]
/opt/FJSVcfmgb/sample |
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"):
Checking the conditions and methods for applying Fujitsu middleware patches
Before creating a script to apply Fujitsu middleware patches, check the application conditions and methods described in the revision information file.
Note that revisions which cannot be performed by script alone cannot be applied in Systemwalker Software Configuration Manager. In this situation, log on to the managed server and apply the patches manually.