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.
Business server
[Windows]
SystemwalkerSoftwareConfigurationManagerInstallDir\SWCFMGB\var\distribute |
A directory named "processId_yyyy-MM-dd_HH-mm-ss" will be created in the above directory to store the patches.
[Linux]
/var/opt/FJSVcfmgb/distribute |
A directory named "processId_yyyy-MM-dd_HH-mm-ss" will be created in the above directory to store the patches.
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.
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.
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