Install Workload Scheduler for z/OS agent to version 10.1 Fix Pack 3 for Linux x86_64
0 Votes |
Description
Install Workload Scheduler for z/OS agent to version 10.1 Fix Pack 3 for Linux x86_64
The following fixlet performs the following actions:
- Downloads the images from the BigFix server / relay.
- Extracts the images.
- Upgrades the instance.
- Resets the fence to the original value.
- Links back to the domain manager.
NOTE: this is an update of Fixlets created by BigFix.me user https://bigfix.me/user/WorkloadAutomationSupportTeam and publisehd as BigFix.me fixlets:
26834/26833/26832/...../26825
Property Details
27012 | |
Beta - Preliminary testing ready for more | |
Install Workload Scheduler for z/OS agent to version 10.1 Fix Pack 3 for Linux x86_64 | |
BESC | |
581926074 | |
Internal | |
7/7/2023 12:00:00 AM | |
Update/Install | |
kapax on 11/3/2023 1:35:23 AM | |
kapax on 11/3/2023 1:35:23 AM | |
1154 Views / 2 Downloads | |
![]() ![]() ![]() ![]() ![]() |
Relevance
Used in 54 fixlets | * Results in a true/false |

architecture of operating system = "x86_64"
Used in 1 fixlet | * Results in a true/false |

exists file "__TWSUpgrade.lck" of client folder of current site
Used in 1 fixlet | * Results in a true/false |

true or ((following text of first "TargetVersion=" of lines of file "__TWSUpgrade.lck" of client folder of current site) as version) = ("10.1.0.3" as version)
Used in 1 fixlet | * Results in a true/false |

(name of it as lowercase starts with "linux") of operating system
Used in 1 fixlet | * Results in a true/false |

((following text of first "AgentType=" of lines of file "__TWSUpgrade.lck" of client folder of current site)) = "LWAZ"
Actions
Action 1 (default)
Action Link Click
here to deploy this action.
Script Type
BigFix Action Script
// Query for parameter addjruntimeSuccess Criteria
action parameter query "addjruntime" with description "(addjruntime) Do you want to add the Java Runtime Environment on the agent to enable the capability to run dynamic workload broker resource commands on the server from a remote agent?source command on the server. Valid values are true and false. The default is false." and with default value "false"
// Query for parameter displayname
// action parameter query "displayname" with description "(displayname) The name to assign to the dynamic agent. The default is the host name of this computer."
// Query for parameter hostname
// action parameter query "hostname" with description "(hostname) The fully qualified host name that the dynamic workload broker uses to contact the agent. If a value is not specified, the dynamic agent is installed but is not configured. It is configured only if the tdwbhostname and tdwbport values are both supplied. If nupplied, the dynamic agent will not be installed." and with default value "null"
// Query for parameter inst_dir
// action parameter query "inst_dir" with description "(inst_dir) The directory where you installed IBM Workload Scheduler. If you do not provide the inst_dir and IBM Workload Scheduler cannot retrieve it from the installation registries, the product is installed in the user home directory."
// Query for parameter jmport
// action parameter query "jmport" with description "(jmport) The port used by the IBM Workload Scheduler for z/OS server or the dynamic workload broker to connect to the IBM Workload Scheduler agent. The default value is 31114. The valid range is from 1 to 65535." and with default value "31114"
// Query for parameter jmportssl
// action parameter query "jmportssl" with description "(jmportssl) The port used by the IBM Workload Scheduler for z/OS controller, or by the dynamic workload broker to connect to the IBM Workload Scheduler agent. This number is registered in the ita.ini file located in ITA\cpa\ita on Windows andITA/cpa/ita on UNIX. For communication using SSL, set jmportssl = true. To communicate with the dynamic workload broker, it is recommended that you set the value to true. In this case, the port specified in jmport communicates in HTTPS. If you specify true, ensure that you also configure the HTTPS communication on the z/OS controller. Specify false for HTTP communication. In this case the port specified in jmport communicates in HTTP. The default value is true. For communication without using SSL, set jmportssl = false. To increase the performance of the IBM Workload Scheduler for z/OS server, it is recommended that you set this value to false." and with default value "true"
// Query for parameter tdwbhostname
// action parameter query "tdwbhostname" with description "(tdwbhostname) The fully qualified host name of the dynamic workload broker. It is used together with the tdwbport parameter. It enables IBM Workload Scheduler to run workloads. If not specified, you cannot run your workload dynamically and this parameter assumes the lod this parameter assumes the localhost default value. This value is registered in the ResourceAdvisorUrl property in the JobManager.ini file." and with default value "localhost"
// Query for parameter tdwbport
// action parameter query "tdwbport" with description "(tdwbport) The dynamic workload broker HTTP or HTTPS port number used to add dynamic scheduling capabilities to your distributed or end-to-end environment. It is used together with the tdwbhostname parameter. This number is registered in the ResourceAdvisorUrl property in the JobManager.ini file. The default value is 0, however, if you leave the value as 0, you cannot run your workload dynamically. Specify a nonzero value to add dynamic capability. The valid range is 0 to 65535." and with default value "0"
// Download image from the BigFix server / relay
prefetch 10.1.0-IBM-IWS-LNX_X86_64_ZOS_AGENT-FP0003.zip sha1:fd954ff0c1bb0665fb904fcbd99e46c24e2bb12d size:581926074 http://127.0.0.1:52311/uploads/fd954ff0c1bb0665fb904fcbd99e46c24e2bb12d/10.1.0-IBM-IWS-LNX_X86_64_ZOS_AGENT-FP0003.zip.bfswd sha256:add23e0c32172bbd588cbb68b46764ed19ea1d4d2a5df43277aabb5eb699cbdb
parameter "Image" = "10.1.0-IBM-IWS-LNX_X86_64_ZOS_AGENT-FP0003.zip"
// Create subfolder 1013
folder create "{pathname of client folder of current site}/1013"
// Retrieve TMP from relevance
parameter "TMP" = "{pathname of client folder of current site}/1013"
// Extract image to $TMP/TWA/tws1013
if {not exists folder "TWS" of folder (parameter "TMP") | false}
// Delete __createfile
delete __createfile
// Delete $TMP/run.sh
delete "{parameter "TMP"}/run.sh"
// Create extract script
createfile until EOF
#!/bin/sh
cd "{parameter "TMP"}"
tar -xvf "{pathname of client folder of current site & "/__Download/" & parameter "Image"}"
exit $?
EOF
// Move __createfile to $TMP/run.sh
move __createfile "{parameter "TMP"}/run.sh"
// Execute run.sh
wait sh "{parameter "TMP"}/run.sh"
// Continue if the return code of the previous command was 0
continue if {exit code of action = 0}
// Delete $TMP/run.sh
delete "{parameter "TMP"}/run.sh"
endif
// Retrieve ActionTools from relevance
parameter "ActionTools" = "{parameter "TMP" & "/TWS/LINUX_X86_64/ACTIONTOOLS"}"
// Retrieve UserOwner from relevance
parameter "UserOwner" = "{((following text of first "UserOwner=" of lines of file "__TWSUpgrade.lck" of folder it) of (pathname of client folder of current site))}"
// Retrieve InstallationPath from relevance
parameter "SourceInstallationPath" = "{((following text of first "SourceInstallationPath=" of lines of file "__TWSUpgrade.lck" of folder it) of (pathname of client folder of current site))}"
// Retrieve SourceMajorVersion from relevance
parameter "SourceMajorVersion" = "{((following text of first "SourceMajorVersion=" of lines of file "__TWSUpgrade.lck" of folder it) of (pathname of client folder of current site))}"
// Retrieve SourceMinorVersion from relevance
parameter "SourceMinorVersion" = "{((following text of first "SourceMinorVersion=" of lines of file "__TWSUpgrade.lck" of folder it) of (pathname of client folder of current site))}"
// Retrieve SourceMaintenanceVersion from relevance
parameter "SourceMaintenanceVersion" = "{((following text of first "SourceMaintenanceVersion=" of lines of file "__TWSUpgrade.lck" of folder it) of (pathname of client folder of current site))}"
// Retrieve AgentType from relevance
parameter "AgentType" = "{((following text of first "AgentType=" of lines of file "__TWSUpgrade.lck" of folder it) of (pathname of client folder of current site))}"
// Retrieve fence from relevance
if {(parameter "AgentType" = "FTA") | false}
parameter "fence" = "{((following text of first "fence=" of lines of file "__TWSUpgrade.lck" of folder it) of (pathname of client folder of current site))}"
endif
// Delete __createfile
delete __createfile
// Create script to launch twsinst
createfile until EOF
#!/bin/sh
addjruntime="{parameter "addjruntime"}"
displayname=
inst_dir=
hostname=
jmport=
jmportssl=
tdwbhostname=
tdwbport=
cmdLine="-update -uname {parameter "UserOwner"} -acceptlicense yes"
if [ ! -z "$addjruntime" ]
then
cmdLine="$cmdLine -addjruntime $addjruntime"
fi
if [ ! -z "$displayname" -a "{parameter "AgentType"}" = "FTA" ]
then
cmdLine="$cmdLine -displayname $displayname"
fi
if [ ! -z "$inst_dir" -a "{parameter "AgentType"}" = "FTA" ]
then
cmdLine="$cmdLine -inst_dir $inst_dir"
fi
if [ ! -z "$hostname" -a "{parameter "AgentType"}" = "FTA" ]
then
cmdLine="$cmdLine -hostname $hostname"
fi
if [ ! -z "$jmport" -a "{parameter "AgentType"}" = "FTA" ]
then
cmdLine="$cmdLine -jmport $jmport"
fi
if [ ! -z "$jmportssl" -a "{parameter "AgentType"}" = "FTA" ]
then
cmdLine="$cmdLine -jmportssl $jmportssl"
fi
if [ ! -z "$tdwbhostname" -a "{parameter "AgentType"}" = "FTA" ]
then
cmdLine="$cmdLine -tdwbhostname $tdwbhostname"
fi
if [ ! -z "$tdwbport" -a "{parameter "AgentType"}" = "FTA" ]
then
cmdLine="$cmdLine -tdwbport $tdwbport"
fi
if [ -f "{parameter "TMP"}/twsinst.txt" ]
then
rm "{parameter "TMP"}/twsinst.txt"
fi
sh "{parameter "TMP"}/TWS/LINUX_X86_64/twsinst" $cmdLine > "{parameter "TMP"}/twsinst.txt" 2>&1
EOF
// Delete $TMP/run.sh
delete "{parameter "TMP"}/run.sh"
// Move __createfile to $TMP/run.sh
move __createfile "{parameter "TMP"}/run.sh"
// Execute run.sh
wait sh "{parameter "TMP"}/run.sh"
// Continue if the return code of the previous command was 0
continue if {exit code of action = 0}
// Restore original fence
if {(parameter "AgentType" = "FTA") | false}
if {(((parameter "SourceMajorVersion" = "8") AND ((parameter "SourceMinorVersion" = "5") OR (parameter "SourceMinorVersion" = "6"))) OR (parameter "SourceMajorVersion" = "9")) | false}
wait sh "{parameter "ActionTools"}/twsResetCpuFence.sh" "{parameter "SourceInstallationPath"}" "{parameter "fence"}" "UPDATE"
else
wait sh "{parameter "ActionTools"}/twsResetCpuFence.sh" "{parameter "SourceInstallationPath"}/TWS" "{parameter "fence"}" "UPDATE"
endif
// Continue if the return code of the previous command was 0
continue if {exit code of action = 0}
endif
// Delete __createfile
delete __createfile
// Create script to start agent and link back to domain manager
if {(((parameter "SourceMajorVersion" = "8") AND ((parameter "SourceMinorVersion" = "5") OR (parameter "SourceMinorVersion" = "6"))) OR (parameter "SourceMajorVersion" = "9")) | false}
createfile until EOF
if [ "{parameter "AgentType"}" = "FTA" -a -f "{parameter "SourceInstallationPath"}/Symphony" ]
then
sh "{parameter "SourceInstallationPath"}/tws_env.sh" >/dev/null 2>&1
"{parameter "SourceInstallationPath"}/bin/conman" 'start' >/dev/null 2>&1
"{parameter "SourceInstallationPath"}/bin/conman" 'link @;noask' >/dev/null 2>&1
"{parameter "SourceInstallationPath"}/bin/conman" 'startmon' >/dev/null 2>&1
fi
EOF
else
createfile until EOF
if [ "{parameter "AgentType"}" = "FTA" -a -f "{parameter "SourceInstallationPath"}/TWS/Symphony" ]
then
sh "{parameter "SourceInstallationPath"}/TWS/tws_env.sh" >/dev/null 2>&1
"{parameter "SourceInstallationPath"}/TWS/bin/conman" 'start' >/dev/null 2>&1
"{parameter "SourceInstallationPath"}/TWS/bin/conman" 'link @;noask' >/dev/null 2>&1
"{parameter "SourceInstallationPath"}/TWS/bin/conman" 'startmon' >/dev/null 2>&1
fi
EOF
endif
// Delete $TMP/run.sh
delete "{parameter "TMP"}/run.sh"
// Move __createfile to $TMP/run.sh
move __createfile "{parameter "TMP"}/run.sh"
// Execute run.sh
wait sh "{parameter "TMP"}/run.sh"
// Continue if the return code of the previous command was 0
continue if {exit code of action = 0}
// Delete $TMP/run.sh
delete "{parameter "TMP"}/run.sh"
// Cleanup
folder delete "{parameter "TMP"}"
// Delete __TWSUpgrade.lck of subfolder TWS
delete "{pathname of client folder of current site}/__TWSUpgrade.lck"
This action will be considered successful when all lines of the action script have completed successfully.
Sharing
Social Media: |