Howto Gather Log Files Easily - Help Us to Help You

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Howto Gather Log Files Easily - Help Us to Help You

Postby wolfden » Sun Dec 28, 2008 6:15

We've put together a little script that can help you gather log files
This package now has been adopted into app-misc/sabayonlive-tools-2.0

Code: Select all
equo update


Code: Select all
equo install sabayonlive-tools


then run

Code: Select all
sabutil menu


if using portage you can
Code: Select all
layman -S
and then
Code: Select all
emerge sabayonlive-tools


You have to be root to run this script to get the information needed.

Code: Select all
#sabutil menu


Image

now just enter in what you want to do, for fdisk, hit 07 and than hit enter, it will display it on your screen and than give you a url which you can give that url to anyone to view, than push enter to return to main menu:
Image

So now if you have an issue, you can easily gather up the information that is often required to problem solve and help devs get the needed info. This can work on live disks as well. If you enter live help, we are gonna ask for these logs also, so now you are armed to give the proper info, win win for all. Yes the screenshots show I am using putty to connect to my home computer.

:santa:
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: Howto Gather Log Files Easily - Help Us to Help You

Postby wolfden » Wed Jan 21, 2009 6:10

I've updated the scripts to now include the edition of sabayon-edition

Starting with LiteMCE we now include /etc/sabayon-edition - this will help us know which edition of Sabayon Linux you are running along with what Version.

Example of sys.sh when ran with mysabayon.sh:
Code: Select all
#
sh /usr/bin/sys.sh

wolf64
--------------------------------------------------------------------
Hostname : wolf64
Host Address : 192.168.0.8
Main Memory : 2034976
Number of CPUs : 2
CPU Type : x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5600+ 2800.000 MHz
OS Release : Sabayon Linux x86-64 4
OS Edition : Sabayon Linux 4 LiteMCE amd64
Kernel Name : Linux GNU/Linux
Kernel Version : 2.6.28-sabayon
Uptime : 22:43:08 up 1:59, 4 users, load average: 0.48, 0.40, 0.34
--------------------------------------------------------------------
Entropy Version Equo: v0.24.8
Portage Version Portage 2.2_rc17 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.28-sabayon x86_64)
--------------------------------------------------------------------
Kernel List
Available kernel symlink targets:
[1] linux-2.6.27-sabayon
[2] linux-2.6.28-sabayon *
Your Kernel Should Be Set To:
2.6.28-sabayon
Use eselect kernel set #
--------------------------------------------------------------------
OpenGL List
Available OpenGL implementations:
[1] ati
[2] nvidia *
[3] xorg-x11
The above should be set to your video card, see lspci
Use eselect opengl set #
--------------------------------------------------------------------
Java VM List
Available Java Virtual Machines:
[1] emul-linux-x86-java-1.6
[2] icedtea-6
[3] icedtea6-bin
[4] sun-jdk-1.6 system-vm
Use java-config --set-system-vm #
--------------------------------------------------------------------
Java-nsplugin List

Available 32-bit Java browser plugins

Available 64-bit Java browser plugins
[1] icedtea6-bin current
Use eselect java-nsplugin set #
--------------------------------------------------------------------
Devices - lspci
--------------------------------------------------------------------
nVidia Corporation MCP55 Memory Controller (rev a1)
nVidia Corporation MCP55 LPC Bridge (rev a2)
nVidia Corporation MCP55 SMBus (rev a2)
nVidia Corporation MCP55 USB Controller (rev a1)
nVidia Corporation MCP55 USB Controller (rev a2)
nVidia Corporation MCP55 IDE (rev a1)
nVidia Corporation MCP55 SATA Controller (rev a2)
nVidia Corporation MCP55 SATA Controller (rev a2)
nVidia Corporation MCP55 SATA Controller (rev a2)
nVidia Corporation MCP55 PCI bridge (rev a2)
nVidia Corporation MCP55 Ethernet (rev a2)
nVidia Corporation MCP55 Ethernet (rev a2)
nVidia Corporation MCP55 PCI Express bridge (rev a2)
nVidia Corporation MCP55 PCI Express bridge (rev a2)
nVidia Corporation MCP55 PCI Express bridge (rev a2)
nVidia Corporation MCP55 PCI Express bridge (rev a2)
nVidia Corporation MCP55 PCI Express bridge (rev a2)
nVidia Corporation MCP55 PCI Express bridge (rev a2)
Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
Creative Labs CA0106 Soundblaster
Atheros Communications Inc. AR2413 802.11bg NIC (rev 01)
nVidia Corporation G70 [GeForce 7600 GT] (rev a1)
-------------------------------------------------------------------
Devices - lsmod
--------------------------------------------------------------------
Module Size Used by
snd_seq_midi 13696 0
snd_seq_dummy 10372 0
snd_seq_oss 34368 0
snd_seq_midi_event 13312 2 snd_seq_midi,snd_seq_oss
snd_seq 49296 6 snd_seq_midi,snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss 40704 0
snd_mixer_oss 20736 1 snd_pcm_oss
ipv6 257856 16
ovcamchip 24712 0
w9968cf 62848 0
compat_ioctl32 15872 1 w9968cf
videodev 38528 2 w9968cf,compat_ioctl32
v4l1_compat 18820 1 videodev
nvidia 8108096 56
snd_ca0106 34576 8
snd_rawmidi 25472 2 snd_seq_midi,snd_ca0106
snd_seq_device 13588 5 snd_seq_midi,snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
snd_ac97_codec 98888 1 snd_ca0106
ath5k 98176 0
cfi_cmdset_0002 30976 1
snd_pcm 67592 6 snd_pcm_oss,snd_ca0106,snd_ac97_codec
ohci_hcd 29212 0
isp1760 24240 0
jedec_probe 21632 0
mac80211 143920 1 ath5k
snd_timer 24976 5 snd_seq,snd_pcm
cfi_probe 11648 0
pcspkr 10368 0
gen_probe 11008 2 jedec_probe,cfi_probe
ssb 42116 1 ohci_hcd
i2c_nforce2 14344 0
snd 54008 20 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_ca0106,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer
cfi_util 13440 2 cfi_cmdset_0002,cfi_probe
forcedeth 53904 0
led_class 11528 1 ath5k
i2c_core 25888 4 ovcamchip,w9968cf,nvidia,i2c_nforce2
ac97_bus 9728 1 snd_ac97_codec
k8temp 12160 0
pcmcia 37400 1 ssb
ck804xrom 11396 0
snd_page_alloc 15888 2 snd_ca0106,snd_pcm
tg3 122756 0
e1000 123204 0
dm_bbr 18480 0
sl811_hcd 19200 0
uhci_hcd 29984 0
ehci_hcd 41996 0
sx8 23568 0
scsi_wait_scan 9728 0
b1 30976 0
kernelcapi 43808 1 b1
--------------------------------------------------------------------
Devices - lsusb

--------------------------------------------------------------------
Bus 002 Device 002: ID 1046:9967 Winbond Electronics Corp. [hex] W9967CF/W9968CF WebCam IC
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 04a9:170c Canon, Inc. PIXMA MP500 Scanner
Bus 001 Device 002: ID 058f:6362 Alcor Micro Corp. Hi-Speed 21-in-1 Flash Card Reader/Writer (Internal/External)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
--------------------------------------------------------------------
Memory
--------------------------------------------------------------------
total used free shared buffers cached
Mem: 1987 1484 503 0 111 399
-/+ buffers/cache: 973 1013
Swap: 1004 0 1004
Total: 2991 1484 1507
--------------------------------------------------------------------
Disk Space
--------------------------------------------------------------------
Filesystem Type Size Used Avail Use% Mounted on
rootfs rootfs 98G 8.0G 85G 9% /
/dev/sdb8 ext4 98G 8.0G 85G 9% /
udev tmpfs 11M 148k 11M 2% /dev
shm tmpfs 1.1G 78k 1.1G 1% /dev/shm
rc-svcdir tmpfs 1.1M 144k 906k 14% /lib/rc/init.d
cachedir tmpfs 98G 8.0G 85G 9% /lib/splash/cache
/dev/sdb7 ext3 502M 59M 418M 13% /boot
/dev/shm tmpfs 1.1G 78k 1.1G 1% /dev/shm
/dev/sda5 ext3 158G 79G 71G 53% /media/SLx86
/dev/sdc5 vfat 200G 166G 35G 83% /media/STORAGE
/dev/sdd5 vfat 186G 111G 76G 60% /media/MOVIES
/dev/sdd8 ext3 43G 8.6G 32G 22% /media/ARCH
/dev/sdb5 ext3 102G 5.2G 92G 6% /media/UBUNTU
/dev/sdb6 ext3 79G 16G 59G 22% /media/FUNTOO
/dev/sdb1 fuseblk 210G 58G 153G 28% /media/VISTA
/dev/sdd9 fuseblk 51G 28G 23G 56% /media/MISC
/dev/sda1 fuseblk 158G 117G 41G 75% /media/WINXP
--------------------------------------------------------------------
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: Howto Gather Log Files Easily - Help Us to Help You

Postby dunsurfin » Wed Jan 21, 2009 10:15

wolfden wrote:use the attaached files and replace the exisiting ones.


In red on the post:
You do not have the required permissions to view the files attached to this post.
dunsurfin
Sagely Hen
 
Posts: 1333
Joined: Sun Jan 07, 2007 21:38
Location: Newcastle upon Tyne UK

Re: Howto Gather Log Files Easily - Help Us to Help You

Postby wolfden » Thu Jan 22, 2009 4:30

Well that is odd, I'll just upload em

Download the Files Here than extract em - hopefully this works
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: Howto Gather Log Files Easily - Help Us to Help You

Postby dunsurfin » Thu Jan 22, 2009 8:10

Thank you. It worked OK late last night. Puzzling :)
dunsurfin
Sagely Hen
 
Posts: 1333
Joined: Sun Jan 07, 2007 21:38
Location: Newcastle upon Tyne UK

Re: Howto Gather Log Files Easily - Help Us to Help You

Postby thriftee » Tue Jan 27, 2009 0:23

When I try option 09 I get an error that the directory doesn't exist

cat: /etc/sabayon-edition no such file or directory
thriftee
Simple Hen
 
Posts: 45
Joined: Tue Jan 13, 2009 20:57

Re: Howto Gather Log Files Easily - Help Us to Help You

Postby joost » Tue Jan 27, 2009 11:06

Sabayon 4.0(r1) doesn't have /etc/sabayon-edition
:D
joost
Sagely Hen
 
Posts: 2574
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands

Re: Howto Gather Log Files Easily - Help Us to Help You

Postby wolfden » Tue Jan 27, 2009 23:43

wolfden wrote:I've updated the scripts to now include the edition of sabayon-edition

Starting with LiteMCE we now include /etc/sabayon-edition - this will help us know which edition of Sabayon Linux you are running along with what Version.


That is why I mentioned it in the post - it still works just fine with SL 4
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: Howto Gather Log Files Easily - Help Us to Help You

Postby throdon » Tue Feb 03, 2009 7:10

has there been any thought on creating this as a program that will install when you actually intall this on your computer.
i have been around linux for 1.5 years, sabayon since 3.4f and this might be a little to difficult for a new person
but it would be real easy if it had a menu item for log files, sort of like a screen shot menu item.
Troll hunter with an overzealous nature
throdon
Advanced Hen
 
Posts: 229
Joined: Mon Aug 20, 2007 13:06
Location: Central valley, California

Re: Howto Gather Log Files Easily - Help Us to Help You

Postby wolfden » Tue Feb 03, 2009 7:29

plans are to make it a package that can be installed via package manager
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Next

Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 1 guest

cron