Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime option fix and minor changes #3831

Merged
merged 1 commit into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading