All of lore.kernel.org
 help / color / mirror / Atom feed
* [ANNOUNCE] ORT - Oops Reporting Tool
@ 2005-06-24 10:50 Michał Piotrowski
  2005-06-24 13:42 ` Christian
  2005-06-25 14:33 ` Michał Piotrowski
  0 siblings, 2 replies; 7+ messages in thread
From: Michał Piotrowski @ 2005-06-24 10:50 UTC (permalink / raw)
  To: linux-kernel, Jesper Juhl, Paolo Ciarrocchi, randy_dunlap

Hi all,

Here is our (see copyright section ;)) simple script that help to create 
a bug report:
http://stud.wsi.edu.pl/~piotrowskim/files/ort/beta/ort-b1.tar.bz2
<http://stud.wsi.edu.pl/%7Epiotrowskim/files/ort/ort-a5.tar.bz2>

Why do we do this?
Because many people don't have time to prepare a good (with all 
importrant pieces of information) bug report.

How does it work?
It creates file with information about your system (software, hardware, 
used modules etc.), add file with oops into it and in the future sends 
it to the chosen mainterner or lkml.

How can you help?
If you know something about bash scripting you can review it, add some 
useful features and make some optimalisations. Or just send me an idea.

Regards,
Michał Piotrowski


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ANNOUNCE] ORT - Oops Reporting Tool
  2005-06-24 10:50 [ANNOUNCE] ORT - Oops Reporting Tool Michał Piotrowski
@ 2005-06-24 13:42 ` Christian
  2005-06-24 15:45   ` randy_dunlap
       [not found]   ` <4d8e3fd3050624085929581341@mail.gmail.com>
  2005-06-25 14:33 ` Michał Piotrowski
  1 sibling, 2 replies; 7+ messages in thread
From: Christian @ 2005-06-24 13:42 UTC (permalink / raw)
  To: linux-kernel; +Cc: Michał Piotrowski

Michał Piotrowski schrieb:
> If you know something about bash scripting you can review it, add some 
> useful features and make some optimalisations. Or just send me an idea.

why does it have to be run as root? the only things i see missing are 
the "Capabilities" output from lspci -vvv when running as a user.

otherwise: great script, could be even included in ../scripts ?

thanks,
Christian.
-- 
BOFH excuse #145:

Flat tire on station wagon with tapes.  ("Never underestimate the 
bandwidth of a station wagon full of tapes hurling down the highway" 
Andrew S. Tannenbaum)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ANNOUNCE] ORT - Oops Reporting Tool
  2005-06-24 13:42 ` Christian
@ 2005-06-24 15:45   ` randy_dunlap
       [not found]   ` <4d8e3fd3050624085929581341@mail.gmail.com>
  1 sibling, 0 replies; 7+ messages in thread
From: randy_dunlap @ 2005-06-24 15:45 UTC (permalink / raw)
  To: Christian; +Cc: linux-kernel, piotrowskim

On Fri, 24 Jun 2005 15:42:37 +0200 Christian wrote:

| Micha__ Piotrowski schrieb:
| > If you know something about bash scripting you can review it, add some 
| > useful features and make some optimalisations. Or just send me an idea.
| 
| why does it have to be run as root? the only things i see missing are 
| the "Capabilities" output from lspci -vvv when running as a user.

'lsusb -v' also needs root permissions, but yes, other than those
2 commands, root is not needed AFAIK.

| otherwise: great script, could be even included in ../scripts ?


---
~Randy

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ANNOUNCE] ORT - Oops Reporting Tool
  2005-06-24 10:50 [ANNOUNCE] ORT - Oops Reporting Tool Michał Piotrowski
  2005-06-24 13:42 ` Christian
@ 2005-06-25 14:33 ` Michał Piotrowski
  1 sibling, 0 replies; 7+ messages in thread
From: Michał Piotrowski @ 2005-06-25 14:33 UTC (permalink / raw)
  To: linux-kernel, Paolo Ciarrocchi, Paul TT, randy_dunlap, Jesper Juhl

Hi all,

Here is our (see copyright section ;)) simple script that help to create 
a bug report:
http://stud.wsi.edu.pl/~piotrowskim/files/ort/beta/ort-b2.tar.bz2

Why do we do this?
Because many people don't have time to prepare a good (with all 
importrant pieces of information) bug report.

How does it work?
It creates file with information about your system (software, hardware, 
used modules etc.), add file with oops into it and in the future sends 
it to the chosen mainterner or lkml.

How can you help?
If you know something about bash scripting you can review it, add some 
useful features and make some optimalisations. Or just send me an idea.

Changelog:
- Paul TT {
 - I wrote a yes_no function tho check answer to "[Y/n]" questions
 - I added some extra checks when multiple answer asked, if the reply is 
blank, bash primt out a lot of unary expected errors
 - added detection of PAGER env variable
}
- Paolo Ciarrocchi - kernel-ort-doc.patch

Regards,
Michał Piotrowski

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ANNOUNCE] ORT - Oops Reporting Tool
  2005-06-25 22:00     ` Christian Kujau
@ 2005-06-25 20:19       ` Michał Piotrowski
  2005-06-26 18:58       ` Paolo Ciarrocchi
  1 sibling, 0 replies; 7+ messages in thread
From: Michał Piotrowski @ 2005-06-25 20:19 UTC (permalink / raw)
  To: Christian Kujau, linux-kernel

Hi,

Christian Kujau wrote:

> Paolo Ciarrocchi wrote:
>
>>
>> The commands that are requiring root capabilties are:
>> lspci -vvv lsusb -v
>
>
> i still dislike the idea being forced to be root, does the attached 
> patch looks ok?
>
>
Maybe something like that

sudo lspci -vvv
sudo lsusb -v

?

Regards,
Michał Piotrowski

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ANNOUNCE] ORT - Oops Reporting Tool
       [not found]   ` <4d8e3fd3050624085929581341@mail.gmail.com>
@ 2005-06-25 22:00     ` Christian Kujau
  2005-06-25 20:19       ` Michał Piotrowski
  2005-06-26 18:58       ` Paolo Ciarrocchi
  0 siblings, 2 replies; 7+ messages in thread
From: Christian Kujau @ 2005-06-25 22:00 UTC (permalink / raw)
  To: Michał Piotrowski; +Cc: Paolo Ciarrocchi, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 260 bytes --]

Paolo Ciarrocchi wrote:
> 
> The commands that are requiring root capabilties are:
> lspci -vvv 
> lsusb -v

i still dislike the idea being forced to be root, does the attached patch 
looks ok?

thank you,
Christian.

-- 
BOFH excuse #211:

Lightning strikes.

[-- Attachment #2: ort-b1.diff --]
[-- Type: text/plain, Size: 966 bytes --]

--- ort/ort.sh.orig	2005-06-25 23:42:22.000000000 +0200
+++ ort/ort.sh	2005-06-25 23:54:32.000000000 +0200
@@ -34,7 +34,6 @@ EM_CLI=mutt
 
 help() {
     echo "Usage: [root@mylinuxbox ~]$ ./ort.sh oops.txt"
-    echo "You need to be root [uid=0] to run the script"
     exit 1
 }
 
@@ -53,7 +52,12 @@ cmd_line() {
 check_uid() {
     if [ $UID != "0" ]
 	then
-	    help
+	    echo -n "You should be root [uid=0] to run the script, continue? [y,n]  "
+	    read c
+	    if [ "$c" != "y" ]; then
+		echo "Aborted."
+		exit 1
+	    fi
     fi
 }
 
@@ -274,7 +278,7 @@ point_7_4() {
 
 point_7_5() {
     echo -e "\n[7.5.] PCI information" >> $ORT_F
-    lspci -vvv >> $ORT_F
+    env PATH=/bin:/usr/bin:/sbin:/usr/sbin lspci -vvv >> $ORT_F
 }
 
 point_7_6() {
@@ -286,7 +290,7 @@ point_7_6() {
 
 point_7_7() {
     echo -e "\n[7.7.] USB information" >> $ORT_F
-    lsusb -v >> $ORT_F
+    env PATH=/bin:/usr/bin:/sbin:/usr/sbin lsusb -v >> $ORT_F
 }
 
 point_7_8() {

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ANNOUNCE] ORT - Oops Reporting Tool
  2005-06-25 22:00     ` Christian Kujau
  2005-06-25 20:19       ` Michał Piotrowski
@ 2005-06-26 18:58       ` Paolo Ciarrocchi
  1 sibling, 0 replies; 7+ messages in thread
From: Paolo Ciarrocchi @ 2005-06-26 18:58 UTC (permalink / raw)
  To: Christian Kujau; +Cc: Michał Piotrowski, linux-kernel

2005/6/26, Christian Kujau <evil@g-house.de>:
> Paolo Ciarrocchi wrote:
> >
> > The commands that are requiring root capabilties are:
> > lspci -vvv
> > lsusb -v
> 
> i still dislike the idea being forced to be root, does the attached patch
> looks ok?

Just for my understanding, why do you dislike to be forced to be root ?
You are reporting a kernel problem, I don't see any problem in being
root, but I donìt have a clear understing of pro and cons.

> --- ort/ort.sh.orig     2005-06-25 23:42:22.000000000 +0200
> +++ ort/ort.sh  2005-06-25 23:54:32.000000000 +0200
> @@ -34,7 +34,6 @@ EM_CLI=mutt
> 
> help() {
>     echo "Usage: [root@mylinuxbox ~]$ ./ort.sh oops.txt"
> -    echo "You need to be root [uid=0] to run the script"
>     exit 1
> }
> 
> @@ -53,7 +52,12 @@ cmd_line() {
> check_uid() {
>     if [ $UID != "0" ]
>        then
> -           help
> +           echo -n "You should be root [uid=0] to run the script, continue? [y,n]  "
> +           read c
> +           if [ "$c" != "y" ]; then
> +               echo "Aborted."
> +               exit 1
> +           fi
>     fi
> }

This is fine with me.
 
> @@ -274,7 +278,7 @@ point_7_4() {
> 
> point_7_5() {
>     echo -e "\n[7.5.] PCI information" >> $ORT_F
> -    lspci -vvv >> $ORT_F
> +    env PATH=/bin:/usr/bin:/sbin:/usr/sbin lspci -vvv >> $ORT_F

What's the benefit of this change ?

> }
> 
> point_7_6() {
> @@ -286,7 +290,7 @@ point_7_6() {
> 
> point_7_7() {
>     echo -e "\n[7.7.] USB information" >> $ORT_F
> -    lsusb -v >> $ORT_F
> +    env PATH=/bin:/usr/bin:/sbin:/usr/sbin lsusb -v >> $ORT_F
> }
> 
> point_7_8() {
> 
> 


-- 
Paolo

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-06-26 18:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-24 10:50 [ANNOUNCE] ORT - Oops Reporting Tool Michał Piotrowski
2005-06-24 13:42 ` Christian
2005-06-24 15:45   ` randy_dunlap
     [not found]   ` <4d8e3fd3050624085929581341@mail.gmail.com>
2005-06-25 22:00     ` Christian Kujau
2005-06-25 20:19       ` Michał Piotrowski
2005-06-26 18:58       ` Paolo Ciarrocchi
2005-06-25 14:33 ` Michał Piotrowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.