-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Impliment error reporting with debug information using fpaste URL
- Loading branch information
Showing
13 changed files
with
138 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,36 @@ | ||
#!/bin/bash | ||
|
||
echo "Disk-Wizard Debug information fetcher" | ||
|
||
printf "\n/*===*dsw.log wrapper script log ===*/\n" >> /var/log/debug_info.tmp | ||
tail -n 50 /var/hda/apps/520ut3lo6w/elevated/dsw.log >> /var/log/debug_info.tmp | ||
echo -e "\n------------This Debug Information was Generated on $(date +"%B-%d-%Y %r")------------\n" > /var/log/debug_info.tmp | ||
|
||
printf "\n/*=== *Current mounted partitions ===*/\n" >> /var/log/debug_info.tmp | ||
sudo mount -l >> /var/log/debug_info.tmp 2>&1 | ||
printf "\n/*===*dsw.log wrapper script log (tail -n 50)===*/\n" >> /var/log/debug_info.tmp | ||
if [ ! -f /var/hda/apps/520ut3lo6w/elevated/dsw.log ]; then | ||
echo "File not found!" >> /var/log/debug_info.tmp | ||
else | ||
tail -n 50 /var/hda/apps/520ut3lo6w/elevated/dsw.log >> /var/log/debug_info.tmp | ||
fi | ||
|
||
printf "\n/*=== *list disk/partitions details with parted ===*/\n" >> /var/log/debug_info.tmp | ||
parted -sl print all >> /var/log/debug_info.tmp 2>&1 | ||
printf "\n/*=== *Current mounted partitions ===*/\n" >> /var/log/debug_info.tmp | ||
sudo mount -l >> /var/log/debug_info.tmp 2>&1 | ||
|
||
printf "\n/*=== *List all logical volumes ===*/\n" >> /var/log/debug_info.tmp | ||
lvdisplay -av >> /var/log/debug_info.tmp 2>&1 | ||
printf "\n/*=== *list disk/partitions details with parted ===*/\n" >> /var/log/debug_info.tmp | ||
parted -sl print all >> /var/log/debug_info.tmp 2>&1 | ||
|
||
printf "\n/*=== *dsk-wz.sh script ===*/\n" >> /var/log/debug_info.tmp | ||
cat /var/hda/apps/520ut3lo6w/elevated/dsk-wz.sh >> /var/log/debug_info.tmp | ||
printf "\n/*=== *List all logical volumes ===*/\n" >> /var/log/debug_info.tmp | ||
lvdisplay -av >> /var/log/debug_info.tmp 2>&1 | ||
|
||
printf "\n/*=== *dsk-wz.sh wrapper script ===*/\n" >> /var/log/debug_info.tmp | ||
if [ ! -f /var/hda/apps/520ut3lo6w/elevated/dsk-wz.sh ]; then | ||
echo "File not found!" >> /var/log/debug_info.tmp | ||
else | ||
cat /var/hda/apps/520ut3lo6w/elevated/dsk-wz.sh >> /var/log/debug_info.tmp | ||
fi | ||
|
||
printf "\n/*=== *disk-wizard log file===*/\n" >> /var/log/debug_info.tmp | ||
tail -n 50 /var/hda/platform/html/log/dw_debug.log >> /var/log/debug_info.tmp | ||
printf "\n/*=== *disk-wizard rails log file(tail -n 50)===*/\n" >> /var/log/debug_info.tmp | ||
if [ ! -f /var/hda/platform/html/log/dw_debug.log ]; then | ||
echo "File not found!" >> /var/log/debug_info.tmp | ||
else | ||
tail -n 50 /var/hda/platform/html/log/dw_debug.log >> /var/log/debug_info.tmp | ||
fi | ||
|
||
fpaste -l bash /var/log/debug_info.tmp | ||
rm /var/log/debug_info.tmp | ||
fpaste -l bash /var/log/debug_info.tmp |