[svn-commits] file: branch 1.6.0 r111131 - in /branches/1.6.0: ./ contrib/scripts/autosupport
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Mar 26 14:57:55 CDT 2008
Author: file
Date: Wed Mar 26 14:57:54 2008
New Revision: 111131
URL: http://svn.digium.com/view/asterisk?view=rev&rev=111131
Log:
Merged revisions 111130 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r111130 | file | 2008-03-26 16:56:40 -0300 (Wed, 26 Mar 2008) | 14 lines
Merged revisions 111129 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r111129 | file | 2008-03-26 16:55:08 -0300 (Wed, 26 Mar 2008) | 6 lines
Update autosupport script.
(closes issue #12310)
Reported by: angler
Patches:
autosupport.diff uploaded by angler (license 106)
........
................
Modified:
branches/1.6.0/ (props changed)
branches/1.6.0/contrib/scripts/autosupport
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/contrib/scripts/autosupport
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/contrib/scripts/autosupport?view=diff&rev=111131&r1=111130&r2=111131
==============================================================================
--- branches/1.6.0/contrib/scripts/autosupport (original)
+++ branches/1.6.0/contrib/scripts/autosupport Wed Mar 26 14:57:54 2008
@@ -12,12 +12,15 @@
OUTPUT=$HOME/digiuminfo
-if [ $UID -ne 0 ]; then
+MYUID=$(id -u);
+
+if [ $MYUID -ne 0 ]; then
echo "You must be root to run this."
-
-exit 1
+ exit 1
fi
+
+clear
echo
echo "This will gather information about your system such as:"
@@ -31,9 +34,16 @@
rm -f $OUTPUT
echo "------------------" >> $OUTPUT;
- echo "PCI LIST " >> $OUTPUT;
+ echo "PCI LIST" >> $OUTPUT;
echo "------------------" >> $OUTPUT;
- lspci -vb >> $OUTPUT;
+ lspci -vvvb >> $OUTPUT;
+ echo >> $OUTPUT;
+ echo >> $OUTPUT;
+
+ echo "------------------" >> $OUTPUT;
+ echo "PCI LIST(no lookup)" >> $OUTPUT;
+ echo "------------------" >> $OUTPUT;
+ lspci -vvvbn >> $OUTPUT;
echo >> $OUTPUT;
echo >> $OUTPUT;
@@ -41,13 +51,6 @@
echo "INTERRUPTS" >> $OUTPUT;
echo "------------------" >> $OUTPUT;
cat /proc/interrupts >> $OUTPUT;
- echo >> $OUTPUT;
- echo >> $OUTPUT;
-
- echo "------------------" >> $OUTPUT;
- echo "DMESG OUTPUT" >> $OUTPUT;
- echo "------------------" >> $OUTPUT;
- dmesg >> $OUTPUT;
echo >> $OUTPUT;
echo >> $OUTPUT;
@@ -73,10 +76,44 @@
echo >> $OUTPUT;
echo "------------------" >> $OUTPUT;
- echo "HDPARM STATUS" >> $OUTPUT;
+ echo "VERSION INFO" >> $OUTPUT;
echo "------------------" >> $OUTPUT;
- hdparm /dev/hda >> $OUTPUT;
- hdparm -i /dev/hda >> $OUTPUT;
+ cat /proc/version >> $OUTPUT;
+ echo >> $OUTPUT;
+ echo >> $OUTPUT;
+
+ echo "------------------" >> $OUTPUT;
+ echo "CMDLINE INFO" >> $OUTPUT;
+ echo "------------------" >> $OUTPUT;
+ cat /proc/cmdline >> $OUTPUT;
+ echo >> $OUTPUT;
+ echo >> $OUTPUT;
+
+ echo "------------------" >> $OUTPUT;
+ echo "LOADED MODULES" >> $OUTPUT;
+ echo "------------------" >> $OUTPUT;
+ lsmod >> $OUTPUT;
+ echo >> $OUTPUT;
+ echo >> $OUTPUT;
+
+ echo "------------------" >> $OUTPUT;
+ echo "ZTTEST" >> $OUTPUT;
+ echo "------------------" >> $OUTPUT;
+ zttest -c 20 >> $OUTPUT;
+ echo >> $OUTPUT;
+ echo >> $OUTPUT;
+
+ echo "------------------" >> $OUTPUT;
+ echo "DMESG OUTPUT" >> $OUTPUT;
+ echo "------------------" >> $OUTPUT;
+ dmesg >> $OUTPUT;
+ echo >> $OUTPUT;
+ echo >> $OUTPUT;
+
+ echo "------------------" >> $OUTPUT;
+ echo "DMIDECODE" >> $OUTPUT;
+ echo "------------------" >> $OUTPUT;
+ dmidecode >> $OUTPUT;
echo >> $OUTPUT;
echo >> $OUTPUT;
@@ -101,22 +138,18 @@
echo >> $OUTPUT;
echo >> $OUTPUT;
- echo "------------------" >> $OUTPUT;
- echo "ZTTEST" >> $OUTPUT;
- echo "------------------" >> $OUTPUT;
- /usr/src/zaptel/zttest -c 20 >> $OUTPUT;
- echo >> $OUTPUT;
- echo >> $OUTPUT;
-
else
echo "terminated";
exit
fi
+clear
+
echo
echo "Digium may require root level access to the system to help debug";
echo "the problem you are experiencing. Do you want to provide login";
-echo "information at this time?";
+echo "information at this time? Please note that if you do so, change";
+echo "your root password to a secure temporary password for Digium support";
echo "Press 'y' for yes and any other key to exit and save the previous info collected"
read login
@@ -146,15 +179,17 @@
echo "Additional login info: "$adinfo >> $OUTPUT
+ clear
echo
echo "All information has been stored in $OUTPUT,"
- echo "Please attach this file to an email ticket you already"
+ echo "Please attach this file to an email case you already"
echo "have open with Digium Tech Support."
else
+ clear
echo
echo "All information except login info has been stored in $OUTPUT,"
- echo "Please send this file to an email ticket you already"
+ echo "Please send this file to an email case you already"
echo "have open with Digium Tech Support."
exit
fi
More information about the svn-commits
mailing list