1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

more changes to footprint

This commit is contained in:
George Hunt 2019-05-09 04:02:33 +00:00
parent 43a710fa5f
commit c125329bef
2 changed files with 8 additions and 8 deletions

View file

@ -22,8 +22,8 @@ contents of following directories:
4. /etc/systemd/network/ 4. /etc/systemd/network/
#### Suggested Usage #### #### 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/<footprint file name> pbput /etc/iiab/diagnostics/<diagnostics file name>
``` ```
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. 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.

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/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 read -p "\n\nPlease identiy yourself (<8 characters, no spaces)" who
if [ -z "$who" ]; then if [ -z "$who" ]; then
@ -15,8 +15,8 @@ YMD=$(date +%y%m%d)
popd popd
SCRIPTDIR=$(cd `dirname $0` pwd) SCRIPTDIR=$(cd `dirname $0` pwd)
footprint_name=${OS_VER}-$YMD-$who diagnostics_name=${OS_VER}-$YMD-$who
basket=$footprint_name.$$ basket=$diagnostics_name.$$
VARS_VALUES=/tmp/all-vars VARS_VALUES=/tmp/all-vars
# record all the ansible variables # record all the ansible variables
@ -139,10 +139,10 @@ if [ -f "$VARS_VALUES" ]; then
cp -p "$VARS_VALUES" /tmp/$basket cp -p "$VARS_VALUES" /tmp/$basket
fi fi
mkdir -p /etc/iiab/footprint mkdir -p /etc/iiab/diagnostics
if [ ! -z $footprint_name ];then if [ ! -z $diagnostics_name ];then
pushd /tmp > /dev/null pushd /tmp > /dev/null
tar czf /etc/iiab/footprint/$basket.tgz $basket/* tar czf /etc/iiab/diagnostics/$basket.tgz $basket/*
popd > /dev/null popd > /dev/null
rm -rf /tmp/$basket rm -rf /tmp/$basket
exit 0 exit 0