Top
Systemwalker Software Configuration Manager Operation Guide
FUJITSU Software

2.6 Creating Scripts

Scripts can be registered to perform required processes on business servers before and/or after execution of processes configured using the Patch Application wizard or Parameter Settings wizard. You can register any script in the Script Execution wizard and run it on a business server.

Notes on registering scripts are shown below.

Notes on creating scripts

Example of log output when an error occurs

A return value of "0" indicates that the script was executed normally, while any other value indicates an error.

If a value other than "0" is returned, indicating an error in the script, and there has been no specification to continue in the event of an error, a "Pre-execution script error check", "Post-execution script error check", or "script execution failure check" will be generated.

The log below can be confirmed from Details in the task tab window.

Example:

<2012-04-16 16:23:24>:executeCommand["C:/Fujitsu/Systemwalker/SWCFMGA/var/process/65359/pre_script.bat"]
message:The operation component was successful.
command_stdout: 
command_stderr: 
command_rcode:1
returnCode:1

The value in "command_rcode" above is the value returned by the script - refer to this value and review the script.

Example of script attachments

Registered scripts are attached to "patch distribution acceptance" tasks, "patch application acceptance" tasks, "parameter setting acceptance" tasks, and "script execution acceptance" tasks on the management console Task Management window as file attachments.

An example is shown below.