dbginfo.sh: check for DPM mode

check if the LPAR is running in DPM mode and reflect this in the summary.

Suggested-by: Mike Storzer <MSTORZER@de.ibm.com>
Acked-by: Eberhard Pasch <epasch@de.ibm.com>
Reviewed-by: Mario Held <mario.held@de.ibm.com>
Signed-off-by: Joern Siglen <siglen@de.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Joern Siglen
2024-01-23 10:50:58 +01:00
committed by Jan Höppner
parent 9e7a8f48e8
commit 0d2b5af007
3 changed files with 15 additions and 4 deletions

View File

@@ -1,13 +1,16 @@
Release history for s390-tools (MIT version)
--------------------------------------------
* __v2.xx.x (2023-xx-xx)__
* __v2.xx.x (2024-xx-xx)__
For Linux kernel version: 6.x
Add new tools / libraries:
Changes of existing tools:
- dbginfo.sh: update man page and copyright
- dbginfo.sh: fix relative path on script copy
- dbginfo.sh: check for Dynamic Partition Mode
Bug Fixes:

View File

@@ -52,6 +52,14 @@ if test "x${PROCESSORVERSION}" = "xFF" || test "x${PROCESSORVERSION}" = "xff"; t
else
RUNTIME_ENVIRONMENT="LPAR"
fi
# check for Dynamic Partition Mode
readonly DPM_UUID=$(grep "LPAR UUID" /proc/sysinfo | \
sed 's/.*:[[:space:]]*\([[:graph:]]*\).*/\1/g')
if test "${#DPM_UUID}" -eq 0; then
DPM_MODE="NO"
else
DPM_MODE="YES"
fi
readonly SYSTEMHOSTNAME="$(hostname -s 2>/dev/null)" # hostname of system being analysed
readonly TERMINAL="$(tty 2>/dev/null)"
# timeout seconds TOS / kill timeout TOKS
@@ -156,7 +164,7 @@ print_check() {
cat <<EOF
Hardware platform = ${HW}
Runtime environment = ${RUNTIME_ENVIRONMENT}
Runtime environment = ${RUNTIME_ENVIRONMENT} - DPM: ${DPM_MODE}
$(cat /proc/sysinfo | grep 'Name')
Kernel version = ${KERNEL_INFO}
OS version / distro = ${OS_NAME}
@@ -1531,7 +1539,7 @@ trap emergency_exit SIGHUP SIGINT SIGTERM
pr_log_stdout ""
pr_log_stdout "Hardware platform = ${HW}"
pr_log_stdout "Runtime environment = ${RUNTIME_ENVIRONMENT}"
pr_log_stdout "Runtime environment = ${RUNTIME_ENVIRONMENT} - DPM: ${DPM_MODE}"
pr_log_stdout "Kernel version = ${KERNEL_INFO} (${KERNEL_BASE})"
pr_log_stdout "OS version / distro = ${OS_NAME}"
pr_log_stdout "Date and time of info = ${DATETIME}"

View File

@@ -63,7 +63,7 @@ Copyright IBM Corp. 2002, 2024
.PP
Hardware platform = s390x
.br
Runtime environment = z/VM
Runtime environment = z/VM - DPM: NO
.br
Kernel version = 5.14.0 (5.14.0-162.6.1.el9_1.s390x)
.br