From d36ff8299944a65a3fd64ff4edc20180574ec3fa Mon Sep 17 00:00:00 2001 From: Sa Liu Date: Fri, 22 Jun 2018 17:26:52 +0200 Subject: [PATCH] dbginfo: Add VM command query time. Corrected error messages. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sa Liu Signed-off-by: Jan Höppner --- scripts/dbginfo.sh | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/scripts/dbginfo.sh b/scripts/dbginfo.sh index a946060b..f3d7f433 100755 --- a/scripts/dbginfo.sh +++ b/scripts/dbginfo.sh @@ -2,7 +2,7 @@ # # dbginfo.sh - Tool to collect runtime, configuration, and trace information # -# Copyright IBM Corp. 2002, 2017 +# Copyright IBM Corp. 2002, 2018 # # s390-tools is free software; you can redistribute it and/or modify # it under the terms of the MIT license. See LICENSE for details. @@ -21,7 +21,7 @@ readonly SCRIPTNAME="${0##*/}" print_version() { cat <> ${WORKARCHIVE} <<" + pr_stdout " " + pr_stdout "Review the collected data before sending to your service organization. " + pr_stdout " " + elif [ $rc_tar -eq 127 ]; then + pr_stdout " " + pr_stdout "${SCRIPTNAME}: Error: tar command is not available!" + pr_stdout " Please install the corresponding package!" else - chmod 0600 "${WORKARCHIVE}" - pr_stdout " " - pr_stdout "Collected data was saved to:" - pr_stdout " >> ${WORKARCHIVE} <<" + pr_stdout " " + pr_stdout "${SCRIPTNAME}: Error: Collection of data failed!" + pr_stdout " The creation of \"${WORKARCHIVE}\" was not successful." + pr_stdout " Please check the directory \"${WORKDIR_BASE}\"" + pr_stdout " to provide enough free available space." fi - - pr_stdout " " - pr_stdout "Review the collected data before sending to your service organization. " - pr_stdout " " }