Skip to content

Commit

Permalink
Runtime option fix and minor changes (#3831)
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Zeithaml <[email protected]>
  • Loading branch information
Martin-Zeithaml authored May 22, 2024
1 parent dca1c2f commit 018c2bd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
1 change: 1 addition & 0 deletions bin/commands/support/.help
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This command will collect these information:
* Java version
* Node.js version
* External Security Manager
* CEE Runtime Options
- Zowe configurations
* Zowe manifest.json
* Zowe configuration file
Expand Down
33 changes: 20 additions & 13 deletions bin/commands/support/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
# Copyright Contributors to the Zowe Project.
#######################################################################

print_message_file() {
msg="${1}"
out_file="${2}"
print_message "- ${msg}"
echo "${msg}" >> "${out_file}"
}

print_level0_message "Collect information for Zowe support"

###############################
Expand Down Expand Up @@ -43,23 +50,23 @@ print_debug "Temporary directory created: ${tmp_dir}"
print_message

###############################
print_level1_message "Collecting information about z/OS, Java, NodeJS and ESM"
VERSION_FILE="${tmp_dir}/version_output"
print_level1_message "Collecting various environment information"
ENVIRONMENT_FILE="${tmp_dir}/environment_output"
echo "[Environment information]" > "${ENVIRONMENT_FILE}"
ZOS_VERSION=`operator_command "D IPLINFO" | grep -i release | xargs`
print_message "- z/OS: ${ZOS_VERSION}"
CEE_OPTIONS=`tsocmd "OMVS RUNOPTS('RPTOPTS(ON)')"`
print_message "- CEE Runtime Options: ${CEE_OPTIONS}"
if [ -z "${ZOS_VERSION}" ]; then
ZOS_VERSION=`sysvar SYSOSLVL`
fi
JAVA_VERSION=`${JAVA_HOME}/bin/java -version 2>&1 | head -n 1`
print_message "- Java: ${JAVA_VERSION}"
NODE_VERSION=`${NODE_HOME}/bin/node --version`
print_message "- NodeJS: ${NODE_VERSION}"
ESM=`"${ZWE_zowe_runtimeDirectory}/bin/utils/getesm"`
print_message "- External Security Manager: ${ESM}"
echo "z/OS version: ${ZOS_VERSION}" > "${VERSION_FILE}"
echo "Java version: ${JAVA_VERSION}" >> "${VERSION_FILE}"
echo "NodeJS version: ${NODE_VERSION}" >> "${VERSION_FILE}"
echo "External Security Manager: ${ESM}" >> "${VERSION_FILE}"
echo "CEE Runtime Options: ${CEE_OPTIONS}" >> "${VERSION_FILE}"
CEE_OPTIONS=`tsocmd "OMVS RUNOPTS('RPTOPTS(ON)')" 2>&1`

print_message_file "z/OS version: ${ZOS_VERSION}" "${ENVIRONMENT_FILE}"
print_message_file "Java version: ${JAVA_VERSION}" "${ENVIRONMENT_FILE}"
print_message_file "NodeJS version: ${NODE_VERSION}" "${ENVIRONMENT_FILE}"
print_message_file "External Security Manager: ${ESM}" "${ENVIRONMENT_FILE}"
print_message_file "CEE Runtime Options: ${CEE_OPTIONS}" "${ENVIRONMENT_FILE}"
print_message

###############################
Expand Down

0 comments on commit 018c2bd

Please sign in to comment.