Centos 6/RHEL using Getinfo

A handy little script for gathering system information is

getinfo, it's available from elrepo

$ sudo rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org

$ sudo rpm -Uvh http://elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm

$ sudo vi /etc/yum.repos.d/elrepo.repo    Disable it by default

$ sudo yum -y install getinfo

Running it will save information to a temp file or post it to pastebin.centos.org. 

All options can be run as a normal user but fdisk information can only be provided if run as root. 

Check first the contents of the output file to ensure it does not contain any sensitive information such as public IP addresses or hostnames.


Commands

1. Basic info - appropriate for any and all CentOS questions. - getinfo.sh basic

2. Disk/filesystem problem - Basic + full disk info - needs to be run as root - getinfo.sh disk

3. Hardware/driver/kernel problem - Basic + hardware and kernel info. - getinfo.sh driver

4. Network problem - Basic + full network info. - getinfo.sh network

5. Package problems with yum, rpm, and repos - Basic + rpm, yum, kernel. - getinfo.sh package

6. Everything - Run as either root or non-root, but won't get fdisk info unless root. - getinfo.sh all (the default)

As an example run as unprivileged user

$ getinfo.sh driver

 WARNING!!!
Not running as root. No fdisk, parted, blkid, or LVM information will be provide                                                                                                                                                             d!

Collecting system information for Driver questions. May take a few minutes.
uname...rpm...cat...getenforce...free...rpm...lspci...lsusb...rpm...***

########################
Results are in the file:
* /tmp/basedata.8UFpcW *
########################

Remember to hide sensitive information before posting.

Use cat to view the file

$ cat /tmp/basedata.8UFpcW

Some of the contents of the getinfo shell script output

 == BEGIN lspci -nn ==
00:00.0 Host bridge [0600]: Intel Corporation 82G33/G31/P35/P31 Express DRAM Con                                                                                                                                                             troller [8086:29c0] (rev 02)
00:01.0 PCI bridge [0604]: Intel Corporation 82G33/G31/P35/P31 Express PCI Expre                                                                                                                                                             ss Root Port [8086:29c1] (rev 02)
00:19.0 Ethernet controller [0200]: Intel Corporation 82562V-2 10/100 Network Co                                                                                                                                                             nnection [8086:10c0] (rev 02)
00:1a.0 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI C                                                                                                                                                             ontroller #4 [8086:2937] (rev 02)
00:1a.1 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI C                                                                                                                                                             ontroller #5 [8086:2938] (rev 02)
00:1a.2 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI C                                                                                                                                                             ontroller #6 [8086:2939] (rev 02)
00:1a.7 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB2 EHCI                                                                                                                                                              Controller #2 [8086:293c] (rev 02)
00:1b.0 Audio device [0403]: Intel Corporation 82801I (ICH9 Family) HD Audio Con                                                                                                                                                             troller [8086:293e] (rev 02)
00:1d.0 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI C                                                                                                                                                             ontroller #1 [8086:2934] (rev 02)
00:1d.1 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI C                                                                                                                                                             ontroller #2 [8086:2935] (rev 02)
00:1d.2 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB UHCI C                                                                                                                                                             ontroller #3 [8086:2936] (rev 02)
00:1d.7 USB controller [0c03]: Intel Corporation 82801I (ICH9 Family) USB2 EHCI                                                                                                                                                              Controller #1 [8086:293a] (rev 02)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev 9                                                                                                                                                             2)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801IR (ICH9R) LPC Interface Contr                                                                                                                                                             oller [8086:2916] (rev 02)
00:1f.2 IDE interface [0101]: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 po                                                                                                                                                             rt SATA Controller [IDE mode] [8086:2920] (rev 02)
00:1f.3 SMBus [0c05]: Intel Corporation 82801I (ICH9 Family) SMBus Controller [8                                                                                                                                                             086:2930] (rev 02)
00:1f.5 IDE interface [0101]: Intel Corporation 82801I (ICH9 Family) 2 port SATA                                                                                                                                                              Controller [IDE mode] [8086:2926] (rev 02)
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation G92 [GeForce 8800 G                                                                                                                                                             T] [10de:0611] (rev a2)
== END   lspci -nn ==

== BEGIN lsusb ==
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0781:556b SanDisk Corp.
Bus 002 Device 002: ID 0644:0201 TEAC Corp.
Bus 004 Device 002: ID 04f3:0212 Elan Microelectronics Corp. Laser Mouse
Bus 005 Device 002: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 008 Device 002: ID 046d:0b05 Logitech, Inc.
Bus 008 Device 003: ID 413c:8130 Dell Computer Corp.
Bus 008 Device 004: ID 046d:c718 Logitech, Inc.
Bus 008 Device 005: ID 046d:c719 Logitech, Inc.
== END   lsusb ==

== BEGIN rpm -qa kmod\* kmdl\* ==
kmod-nvidia-319.23-1.el6.elrepo.i686
== END   rpm -qa kmod\* kmdl\* ==

Labels: , ,