diff --git a/scripts/diagnostics_features.md b/scripts/diagnostics_features.md index eeac59dbd..a52178a58 100644 --- a/scripts/diagnostics_features.md +++ b/scripts/diagnostics_features.md @@ -22,8 +22,8 @@ contents of following directories: 4. /etc/systemd/network/ #### Suggested Usage #### -1. Upload the footprint you have just generated to pastebinit. +1. Upload the diagnostics you have just generated to pastebinit. ``` -pbput /etc/iiab/footprint/ +pbput /etc/iiab/diagnostics/ ``` 2. Email a description of the symptoms, and how to generate them, along with the URL which was returned by the "pbput" command, to bugs@iiab.io. diff --git a/scripts/iiab-diagnostics b/scripts/iiab-diagnostics index a20d407fe..59798afb6 100755 --- a/scripts/iiab-diagnostics +++ b/scripts/iiab-diagnostics @@ -1,5 +1,5 @@ #!/bin/bash -# create a diagnostic footprint of network, and OS settings +# create a diagnostic diagnostics of network, and OS settings read -p "\n\nPlease identiy yourself (<8 characters, no spaces)" who if [ -z "$who" ]; then @@ -15,8 +15,8 @@ YMD=$(date +%y%m%d) popd SCRIPTDIR=$(cd `dirname $0` pwd) -footprint_name=${OS_VER}-$YMD-$who -basket=$footprint_name.$$ +diagnostics_name=${OS_VER}-$YMD-$who +basket=$diagnostics_name.$$ VARS_VALUES=/tmp/all-vars # record all the ansible variables @@ -139,10 +139,10 @@ if [ -f "$VARS_VALUES" ]; then cp -p "$VARS_VALUES" /tmp/$basket fi -mkdir -p /etc/iiab/footprint -if [ ! -z $footprint_name ];then +mkdir -p /etc/iiab/diagnostics +if [ ! -z $diagnostics_name ];then pushd /tmp > /dev/null - tar czf /etc/iiab/footprint/$basket.tgz $basket/* + tar czf /etc/iiab/diagnostics/$basket.tgz $basket/* popd > /dev/null rm -rf /tmp/$basket exit 0