[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

gathering system information



I am planning to develop a script that gathers all the _relevant_
system information for common configuration tasks such as sound,
graphics, wireless, network, printer etc.

Here is a proof of concept
https://gitlab.com/d3k2mk7/rutils/blob/master/debian_user/gather_system_info.py
which gathers information related to the sound task such as sound card
information, kernel modules loaded, debian version, kernel version
etc.,  Appendix shows a sample run on my system.

Similar things can be done for other tasks. For example, to address X
related issues, the script may parse Xorg.0.log for relevant errors,
show what graphics driver packages are installed, show information on
the graphics adapter etc.,

The general idea is that if a user is having trouble configuring these
tasks (ex:- sound/printer does not work), he can simply copy paste the
output of this single script in the email to debian-user mailing list
as opposed to gathering everything manually.

What do you think? Is it a useful/stupid idea? Any
feedback/comments/criticism are greatly appreciated (no matter how
small you think they are).

thanks
raju

Appendix:
% python3 gather_system_info.py
lspci -nnk | grep -i audio
00:1b.0 Audio device [0403]: Intel Corporation 82801JI (ICH10 Family)
HD Audio Controller [8086:3a3e]

lsmod | grep snd
snd_usb_audio         135354  1
snd_usbmidi_lib        23347  1 snd_usb_audio
snd_rawmidi            26806  1 snd_usbmidi_lib
snd_seq_device         13132  1 snd_rawmidi
snd_hda_codec_analog    13795  1
snd_hda_codec_generic    63181  1 snd_hda_codec_analog
snd_hda_intel          26327  3
snd_hda_controller     26646  1 snd_hda_intel
snd_hda_codec         104500  4
snd_hda_codec_generic,snd_hda_intel,snd_hda_controller,snd_hda_codec_analog
snd_hwdep              13148  2 snd_usb_audio,snd_hda_codec
snd_pcm_oss            44798  0
snd_mixer_oss          22042  1 snd_pcm_oss
snd_pcm                88662  5
snd_pcm_oss,snd_usb_audio,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer              26627  1 snd_pcm
snd                    65244  21
snd_pcm_oss,snd_usb_audio,snd_hwdep,snd_timer,snd_pcm,snd_rawmidi,snd_hda_codec_generic,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_mixer_oss,snd_hda_codec_analog
soundcore              13026  2 snd,snd_hda_codec
usbcore               195468  8
uhci_hcd,snd_usb_audio,uvcvideo,usb_storage,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbhid


# contents of  /etc/apt/sources.list
deb http://httpredir.debian.org/debian/ jessie main contrib non-free
deb-src http://httpredir.debian.org/debian/ jessie main contrib non-free
deb http://httpredir.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://httpredir.debian.org/debian/ jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

uname -a
Linux hogwarts 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4
(2016-02-29) x86_64 GNU/Linux


-- 
Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog


Reply to: