From 783ae9735e589b562085d4cdd1d0139c357ed742 Mon Sep 17 00:00:00 2001 From: Shalini Chellathurai Saroja Date: Thu, 14 Aug 2025 09:55:11 +0200 Subject: [PATCH] dbginfo: Collect CPI data of the KVM guests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Collect Control-Program Identification (CPI) data of the KVM guests. The CPI data contains system name, system type, system level and sysplex name of the guests. It also provides the timestamp in which these data were colleceted from the guests. Note: CPI information for SEL guests require explicit enablement. Signed-off-by: Shalini Chellathurai Saroja Suggested-by: Hendrik Brueckner Reviewed-by: Hendrik Brueckner Reviewed-by: Jörn Siglen Signed-off-by: Jan Höppner --- scripts/dbginfo.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/scripts/dbginfo.sh b/scripts/dbginfo.sh index 21e138a9..f18c11cf 100755 --- a/scripts/dbginfo.sh +++ b/scripts/dbginfo.sh @@ -1302,11 +1302,28 @@ collect_kvm() { # domain/guest specific commands domain_list=$(virsh list --all --name) + path="/machine/sclp/s390-sclp-event-facility/sclpcpi" + props="timestamp\ + system_name\ + system_type\ + system_level\ + sysplex_name" if test -n "${domain_list}"; then for domain in ${domain_list}; do call_run_command "virsh dominfo ${domain}" "${OUTPUT_FILE_KVM}" call_run_command "virsh domblklist ${domain}" "${OUTPUT_FILE_KVM}" call_run_command "virsh domstats ${domain}" "${OUTPUT_FILE_KVM}" + for prop in ${props}; do + qm=$(printf '{ + "execute": "qom-get", + "arguments": { + "path": "%s", + "property": "%s" + } + }' "${path}" "${prop}") + call_run_command "virsh qemu-monitor-command ${domain} \ + --pretty '${qm}'" "${OUTPUT_FILE_KVM}" + done done else echo "no KVM domains found" | tee -a ${OUTPUT_FILE_KVM}