summaryrefslogtreecommitdiffstats
path: root/ffdc
diff options
context:
space:
mode:
Diffstat (limited to 'ffdc')
-rw-r--r--ffdc11
1 files changed, 11 insertions, 0 deletions
diff --git a/ffdc b/ffdc
index 6c32abc..3c93fe4 100644
--- a/ffdc
+++ b/ffdc
@@ -9,6 +9,7 @@ usage: ffdc [OPTION]
Options:
-d, --dir <directory> Specify destination directory. Defaults to /tmp if
invalid or unspecified.
+ -D, --disable_dreport Disable dreport based dump collection
-h, --help Display this help text and exit.
'
@@ -38,6 +39,7 @@ declare -a arr=(
dir=$"ffdc_$(date +"%Y-%m-%d_%H-%M-%S")"
dest="/tmp"
+disable_dreport=false
while [[ $# -gt 0 ]]; do
key="$1"
@@ -52,6 +54,10 @@ while [[ $# -gt 0 ]]; do
fi
shift 2
;;
+ -D|--disable_dreport)
+ disable_dreport=true
+ shift
+ ;;
-h|--help)
echo "$help"
exit
@@ -65,6 +71,11 @@ done
echo "Using destination directory $dest"
+if [ $disable_dreport = false ]; then
+ dreport -d $dest -v
+ exit
+fi
+
mkdir -p "$dest/$dir"
for ((i=0;i<${#arr[@]};i+=2)); do
OpenPOWER on IntegriCloud