./getinfo.sh and RHEL 6.0

A 5 star hangout for overworked and underpaid system admins.
User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

./getinfo.sh and RHEL 6.0

Post by AlanBartlett » 2010/12/25 15:53:25

I am tending, these days, to use my laptop more often than my desktop workstation -- or so it seems. When I obtained the hardware, I logically divided the disk into approximately two equal halves and installed [i]CentOS 5.5[/i] onto the first half of the disk. When [i]RHEL 6.0[/i] became available, that was installed onto the second half of the disk.

To be able to make maximum use of the hardware under [i]CentOS 5[/i], I eventually installed the [i]ELRepo Project[/i]'s [url=http://elrepo.org/linux/kernel/el5/]kernel-ml[/url] packages. Slowly but surely I developed a preference for [i]RHEL 6[/i], which should be a good indicator for current users of [i]CentOS 5[/i] on laptops . . .

So snipping out the paragraphs I could type -- but haven't :-) -- I come to the main point of this thread. Forgetting that I was running [i]RHEL[/i] and not [i]CentOS[/i], I have just executed the [b]./getinfo.sh[/b] script. So, did everything work? You be the judge --

[code]
== BEGIN uname -rmi ==
2.6.32-71.7.1.el6.x86_64 x86_64 x86_64
== END uname -rmi ==

== BEGIN rpm -q centos-release ==
package centos-release is not installed
== END rpm -q centos-release ==

== BEGIN cat /etc/redhat-release ==
Red Hat Enterprise Linux Server release 6.0 (Santiago)
== END cat /etc/redhat-release ==

== BEGIN getenforce ==
Enforcing
== END getenforce ==

== BEGIN rpm -q yum rpm python ==
yum-3.2.27-14.el6_0.1.noarch
rpm-4.8.0-12.el6.x86_64
python-2.6.5-3.el6.x86_64
== END rpm -q yum rpm python ==

== BEGIN ls /etc/yum.repos.d ==
elrepo.repo
mirrors-rpmforge
mirrors-rpmforge-extras
mirrors-rpmforge-testing
packagekit-media.repo
rpmforge.repo
== END ls /etc/yum.repos.d ==

== BEGIN cat /etc/yum.conf ==
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3

# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

exclude = *.i?86
== END cat /etc/yum.conf ==

== BEGIN yum repolist all ==
Loaded plugins: refresh-packagekit, rhnplugin
repo id repo name status
InstallMedia Red Hat Enterprise Lin disabled
elrepo ELRepo.org Community E disabled
elrepo-kernel ELRepo.org Community E disabled
elrepo-testing ELRepo.org Community E disabled
rhel-x86_64-server-6 Red Hat Enterprise Lin enabled: 2,869+769
rhel-x86_64-server-fastrack-6 RHEL Server FasTrack ( enabled: 0
rhel-x86_64-server-optional-6 RHEL Server Optional ( enabled: 1,995+740
rhel-x86_64-server-optional-fastrack-6 RHEL Server Optional F enabled: 0
rhel-x86_64-server-supplementary-6 RHEL Server Supplement enabled: 40+13
rpmforge RHEL 6Server - RPMforg disabled
rpmforge-extras RHEL 6Server - RPMforg disabled
rpmforge-testing RHEL 6Server - RPMforg disabled
repolist: 4,904
== END yum repolist all ==

== BEGIN egrep 'include|exclude' /etc/yum.repos.d/*.repo ==
== END egrep 'include|exclude' /etc/yum.repos.d/*.repo ==

== BEGIN sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==
== END sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==

== BEGIN cat /etc/fstab ==

#
# /etc/fstab
# Created by anaconda on Sat Nov 13 14:31:34 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=a8c35ae7-622e-4dcd-84db-7ec224f09c34 / ext4 defaults 1 1
UUID=d9694a9f-71eb-4f96-a88e-4803a43e83ad /boot ext4 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
== END cat /etc/fstab ==

== BEGIN df -h ==
Filesystem Size Used Avail Use% Mounted on
/dev/sda4 115G 3.4G 106G 4% /
tmpfs 2.0G 336K 2.0G 1% /dev/shm
/dev/sda3 485M 55M 405M 12% /boot
== END df -h ==

== BEGIN fdisk -l ==

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0000b7ed

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 15200 121989577+ 83 Linux
/dev/sda3 15201 15264 512000 83 Linux
/dev/sda4 15264 30402 121591808 83 Linux
== END fdisk -l ==

== BEGIN blkid ==
/dev/sda2: LABEL="/" UUID="b08932ca-d3eb-43e3-9b08-37f9c1aae9e3" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda3: UUID="d9694a9f-71eb-4f96-a88e-4803a43e83ad" TYPE="ext4"
/dev/sda4: UUID="a8c35ae7-622e-4dcd-84db-7ec224f09c34" TYPE="ext4"
/dev/sda1: LABEL="/boot" UUID="6f4b4f7a-56f7-4c18-9ddf-1bc5701847a0" TYPE="ext2"
== END blkid ==

== BEGIN rpm -qa kernel\* | sort ==
kernel-2.6.32-71.7.1.el6.x86_64
kernel-2.6.32-71.el6.x86_64
kernel-devel-2.6.32-71.7.1.el6.x86_64
kernel-doc-2.6.32-71.7.1.el6.noarch
kernel-firmware-2.6.32-71.7.1.el6.noarch
kernel-headers-2.6.32-71.7.1.el6.x86_64
== END rpm -qa kernel\* | sort ==

== BEGIN lspci ==
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)
02:01.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
02:01.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04)
02:01.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21)
02:01.3 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 11)
09:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5761e Gigabit Ethernet PCIe (rev 10)
0c:00.0 Network controller: Intel Corporation Ultimate N WiFi Link 5300
== END lspci ==

== BEGIN lspci -n ==
00:00.0 0600: 8086:2a40 (rev 07)
00:02.0 0300: 8086:2a42 (rev 07)
00:02.1 0380: 8086:2a43 (rev 07)
00:1a.0 0c03: 8086:2937 (rev 02)
00:1a.1 0c03: 8086:2938 (rev 02)
00:1a.2 0c03: 8086:2939 (rev 02)
00:1a.7 0c03: 8086:293c (rev 02)
00:1b.0 0403: 8086:293e (rev 02)
00:1c.0 0604: 8086:2940 (rev 02)
00:1c.1 0604: 8086:2942 (rev 02)
00:1c.4 0604: 8086:2948 (rev 02)
00:1d.0 0c03: 8086:2934 (rev 02)
00:1d.1 0c03: 8086:2935 (rev 02)
00:1d.2 0c03: 8086:2936 (rev 02)
00:1d.7 0c03: 8086:293a (rev 02)
00:1e.0 0604: 8086:2448 (rev 92)
00:1f.0 0601: 8086:2919 (rev 02)
00:1f.2 0106: 8086:2929 (rev 02)
00:1f.3 0c05: 8086:2930 (rev 02)
02:01.0 0607: 1180:0476 (rev ba)
02:01.1 0c00: 1180:0832 (rev 04)
02:01.2 0805: 1180:0822 (rev 21)
02:01.3 0880: 1180:0843 (rev 11)
09:00.0 0200: 14e4:1680 (rev 10)
0c:00.0 0280: 8086:4235
== END lspci -n ==

== BEGIN ifconfig -a ==
eth0 Link encap:Ethernet HWaddr A4:BA:DB:C1:20:9E
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:16

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:918 (918.0 b) TX bytes:918 (918.0 b)

wlan0 Link encap:Ethernet HWaddr 00:21:6A:BA:9F:DE
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::221:6aff:feba:9fde/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12469 errors:0 dropped:0 overruns:0 frame:0
TX packets:12994 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10537683 (10.0 MiB) TX bytes:2501737 (2.3 MiB)

== END ifconfig -a ==

== BEGIN route -n ==
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0
== END route -n ==

== BEGIN cat /etc/resolv.conf ==
# Generated by NetworkManager
nameserver 192.168.0.1
== END cat /etc/resolv.conf ==

== BEGIN grep net /etc/nsswitch.conf ==
#networks: nisplus [NOTFOUND=return] files
#netmasks: nisplus [NOTFOUND=return] files
netmasks: files
networks: files
netgroup: nisplus
== END grep net /etc/nsswitch.conf ==

== BEGIN chkconfig --list | grep -Ei 'network|wpa' ==
NetworkManager 0:off 1:off 2:on 3:on 4:on 5:on 6:off
== END chkconfig --list | grep -Ei 'network|wpa' ==

[/code]
Now here's a question for [b]Phil[/b] (the current maintainer of the [b]getinfo.sh[/b] script):

Perhaps we could consider replacing the "[b]rpm -q centos-release[/b]" line with the more generic "[b]rpm -qa \*-release\*[/b]" line?

This is what I see on [i]RHEL 6[/i] --

[code]
[ajb@Duo2 tmp]$ rpm -qa \*-release\*
rpmforge-release-0.5.2-2.el6.rf.x86_64
redhat-release-server-6Server-6.0.0.37.el6.x86_64
elrepo-release-6-2.el6.elrepo.noarch
[/code]

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: ./getinfo.sh and RHEL 6.0

Post by pschaff » 2011/01/01 03:41:25

Huh??? Did someone yank my tail? Must have been asleep. :roll:

Sounds good to me. Done. Here's the result for SL6 Alpha on my laptop:

Information for general problems.
[code]
== BEGIN uname -rmi ==
2.6.32-71.7.1.el6.i686 i686 i386
== END uname -rmi ==

== BEGIN rpm -qa \*-release\* ==
sl-release-6-6.0.0.37.sl6.0.5rolling.i686
elrepo-release-6-2.el6.elrepo.noarch
adobe-release-i386-1.0-1.noarch
sl-release-notes-6.0-0.3.rolling.noarch
epel-release-6-5.noarch
rpmforge-release-0.5.2-2.el6.rf.i686
== END rpm -qa \*-release\* ==

== BEGIN cat /etc/redhat-release ==
Scientific Linux release 6.0 (Carbon)
== END cat /etc/redhat-release ==

== BEGIN getenforce ==
Enforcing
== END getenforce ==

== BEGIN rpm -q yum rpm python ==
yum-3.2.27-14.el6_0.1.noarch
rpm-4.8.0-12.el6.i686
python-2.6.5-3.el6.i686
== END rpm -q yum rpm python ==

== BEGIN ls /etc/yum.repos.d ==
adobe-linux-i386.repo
adobe-linux-i386.repo~
elrepo.repo
epel.repo
epel-testing.repo
google-chrome.repo
google.repo
local.repo
mirrors-rpmforge
mirrors-rpmforge-extras
mirrors-rpmforge-testing
rhel-beta.repo.rpmsave
rpmforge.repo
sl.repo
sl-updates.repo
== END ls /etc/yum.repos.d ==

== BEGIN cat /etc/yum.conf ==
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3

# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
== END cat /etc/yum.conf ==

== BEGIN yum repolist all ==
Loaded plugins: changelog, downloadonly, priorities, protect-packages, refresh-
: packagekit
0 packages excluded due to repository priority protections
repo id repo name status
adobe-linux-i386 Adobe Systems Incorporated enabled: 18
elrepo ELRepo.org Community Enterprise Linux Repo disabled
elrepo-kernel ELRepo.org Community Enterprise Linux Kern disabled
elrepo-testing ELRepo.org Community Enterprise Linux Test disabled
epel Extra Packages for Enterprise Linux 6 - i3 disabled
epel-debuginfo Extra Packages for Enterprise Linux 6 - i3 disabled
epel-source Extra Packages for Enterprise Linux 6 - i3 disabled
epel-testing Extra Packages for Enterprise Linux 6 - Te disabled
epel-testing-debuginfo Extra Packages for Enterprise Linux 6 - Te disabled
epel-testing-source Extra Packages for Enterprise Linux 6 - Te disabled
google Google - i386 disabled
google-chrome google-chrome enabled: 3
local Local YUM Repository disabled
localtest Local Testing YUM Repository disabled
rpmforge RHEL 6 - RPMforge.net - dag disabled
rpmforge-extras RHEL 6 - RPMforge.net - extras disabled
rpmforge-testing RHEL 6 - RPMforge.net - testing disabled
sl Scientific Linux 6 - i386 enabled: 4,621
sl-source Scientific Linux 6 Alpha - Source disabled
sl-testing Scientific Linux 6 Testing - i386 disabled
sl-testing-source Scientific Linux 6 Testing - Source disabled
sl-updates Scientific Linux 6 - i386 - updates enabled: 250
repolist: 4,892
== END yum repolist all ==

== BEGIN egrep 'include|exclude' /etc/yum.repos.d/*.repo ==
== END egrep 'include|exclude' /etc/yum.repos.d/*.repo ==

== BEGIN sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==
priority = 1 [adobe-linux-i386]
priority = 1 [elrepo]
priority = 1 [elrepo-kernel]
priority = 1 [elrepo-testing]
priority = 1 [google]
priority = 1 [local]
priority = 1 [local]
priority = 1 [localtest]
priority = 1 [localtest]
priority = 1 [sl]
priority = 1 [sl-source]
priority = 1 [sl-testing]
priority = 1 [sl-testing-source]
priority = 1 [sl-updates]
priority = 10 [rpmforge]
priority = 10 [rpmforge-extras]
priority = 10 [rpmforge-testing]
priority = 20 [epel]
priority = 20 [epel-debuginfo]
priority = 20 [epel-source]
priority = 20 [epel-testing]
priority = 20 [epel-testing-debuginfo]
priority = 20 [epel-testing-source]
== END sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n ==

== BEGIN cat /etc/fstab ==

#
# /etc/fstab
# Created by anaconda on Tue Aug 3 11:19:03 2010
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=6026427c-8f73-46d0-88e0-d9f2547823de / ext3 defaults 1 1
#UUID=f3fff4e3-3841-4d92-9ba7-e95ff7f3fa19 /CentOS ext3 defaults 1 2
UUID=b82c02bd-eccc-4364-a747-3ea7944bdd1d /oldhome ext3 defaults 1 2
UUID=05bb89c1-d8f1-48f4-8356-1feebfc5faf2 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
== END cat /etc/fstab ==

== BEGIN df -h ==
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 20G 12G 6.9G 64% /
tmpfs 757M 424K 757M 1% /dev/shm
/dev/sda6 4.2G 573M 3.5G 15% /oldhome
== END df -h ==

== BEGIN fdisk -l ==

Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd9acd9ac

Device Boot Start End Blocks Id System
/dev/sda1 1 6119 49150836 7 HPFS/NTFS
/dev/sda2 6120 8731 20980890 83 Linux
/dev/sda3 * 8732 11343 20980890 83 Linux
/dev/sda4 11344 12161 6570585 5 Extended
/dev/sda5 11344 11605 2104483+ 82 Linux swap / Solaris
/dev/sda6 11606 12161 4466038+ 83 Linux
== END fdisk -l ==

== BEGIN blkid ==
/dev/sda1: UUID="E034DD8534DD5F5A" TYPE="ntfs"
/dev/sda2: UUID="6026427c-8f73-46d0-88e0-d9f2547823de" TYPE="ext3"
/dev/sda3: LABEL="/CentOS" UUID="f3fff4e3-3841-4d92-9ba7-e95ff7f3fa19" TYPE="ext3" SEC_TYPE="ext2"
/dev/sda5: LABEL="SWAP-sda5" UUID="05bb89c1-d8f1-48f4-8356-1feebfc5faf2" TYPE="swap"
/dev/sda6: UUID="b82c02bd-eccc-4364-a747-3ea7944bdd1d" TYPE="ext3"
== END blkid ==

== BEGIN rpm -qa kernel\* | sort ==
kernel-2.6.32-44.2.el6.i686
kernel-2.6.32-71.7.1.el6.i686
kernel-2.6.32-71.el6.ayplus2.i686
kernel-devel-2.6.32-44.2.el6.i686
kernel-devel-2.6.32-71.7.1.el6.i686
kernel-devel-2.6.32-71.el6.ayplus2.i686
kernel-firmware-2.6.32-71.7.1.el6.noarch
kernel-headers-2.6.32-71.7.1.el6.i686
== END rpm -qa kernel\* | sort ==

== BEGIN lspci ==
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express PCI Express Root Port (rev 03)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 02)
00:1d.0 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300] (rev a1)
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
05:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
05:04.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller (rev 01)
05:06.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller
05:06.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
05:06.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 01)
05:06.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a)
05:06.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05)
== END lspci ==

== BEGIN lspci -n ==
00:00.0 0600: 8086:27a0 (rev 03)
00:01.0 0604: 8086:27a1 (rev 03)
00:1b.0 0403: 8086:27d8 (rev 02)
00:1c.0 0604: 8086:27d0 (rev 02)
00:1c.1 0604: 8086:27d2 (rev 02)
00:1d.0 0c03: 8086:27c8 (rev 02)
00:1d.1 0c03: 8086:27c9 (rev 02)
00:1d.2 0c03: 8086:27ca (rev 02)
00:1d.3 0c03: 8086:27cb (rev 02)
00:1d.7 0c03: 8086:27cc (rev 02)
00:1e.0 0604: 8086:2448 (rev e2)
00:1f.0 0601: 8086:27b9 (rev 02)
00:1f.2 0101: 8086:27c4 (rev 02)
00:1f.3 0c05: 8086:27da (rev 02)
01:00.0 0300: 10de:01d7 (rev a1)
03:00.0 0280: 8086:4227 (rev 02)
05:01.0 0200: 10ec:8139 (rev 10)
05:04.0 0607: 1524:1410 (rev 01)
05:06.0 0c00: 1180:0832
05:06.1 0805: 1180:0822 (rev 19)
05:06.2 0880: 1180:0843 (rev 01)
05:06.3 0880: 1180:0592 (rev 0a)
05:06.4 0880: 1180:0852 (rev 05)
== END lspci -n ==

== BEGIN ifconfig -a ==
eth0 Link encap:Ethernet HWaddr 00:0F:B0:C8:E1:DD
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:21 Base address:0x8000

lo Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1308 (1.2 KiB) TX bytes:1308 (1.2 KiB)

pan0 Link encap:Ethernet HWaddr 82:AE:18:6D:59:34
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

wlan0 Link encap:Ethernet HWaddr 00:13:02:25:61:C3
inet addr:192.168.1.14 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::213:2ff:fe25:61c3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:228 errors:0 dropped:0 overruns:0 frame:0
TX packets:163 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:73472 (71.7 KiB) TX bytes:23901 (23.3 KiB)

== END ifconfig -a ==

== BEGIN route -n ==
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
== END route -n ==

== BEGIN cat /etc/resolv.conf ==
# Generated by NetworkManager
domain home
search home
nameserver 192.168.1.1
nameserver 71.252.0.12
== END cat /etc/resolv.conf ==

== BEGIN grep net /etc/nsswitch.conf ==
#networks: nisplus [NOTFOUND=return] files
#netmasks: nisplus [NOTFOUND=return] files
netmasks: files
networks: files
netgroup: nisplus
== END grep net /etc/nsswitch.conf ==

== BEGIN chkconfig --list | grep -Ei 'network|wpa' ==
NetworkManager 0:off 1:off 2:on 3:on 4:on 5:on 6:off
network 0:off 1:off 2:off 3:off 4:off 5:off 6:off
wpa_supplicant 0:off 1:off 2:off 3:off 4:off 5:off 6:off
== END chkconfig --list | grep -Ei 'network|wpa' ==
[/code]

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: ./getinfo.sh and RHEL 6.0

Post by AlanBartlett » 2011/01/01 16:28:13

That looks nice. :-)

On reviewing the output, the sight of all those configured repositories (complete with assigned priorities) essentially tells me that it has to be a (NASA) [b]Phil[/b]'s system. ;-)

But then I spotted a obvious testing kernel that wasn't anything to do with me. :-x With closer scrutiny, I observed the [b]ayplus2[/b]. So that's all right, it's a [b]toracat[/b] kernel. :-D

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: ./getinfo.sh and RHEL 6.0

Post by pschaff » 2011/01/01 16:39:34

You've got it - tested per [b]toracat[/b]'s request. :-D

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

./getinfo.sh and RHEL 6.0

Post by toracat » 2011/01/01 16:40:42

With closer scrutiny of [b]Alan[/b]'s output, I find it an extremely bad example. :-x Some 3rd party repos are installed but there is no [i]priorities[/i] set up :-P

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: ./getinfo.sh and RHEL 6.0

Post by pschaff » 2011/01/01 16:45:24

At least the offending repos are from trusted sources, and disabled by default. ;-)

The getinfo.sh script turns out to be a pretty good tool to check one's own configuration. The first time I ran it on RHEL6/SL6 I found that both NetworkManager and network services were enabled by default. I noticed [b]Alan[/b] has removed the unneeded services.

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: ./getinfo.sh and RHEL 6.0

Post by AlanBartlett » 2011/01/01 16:52:08

[b]toracat[/b] needs glasses. :-P

There are two 3rd party repositories configured, both of which are well-behaved and are not enabled by default.

Remember [i]Mr Yum[/i]'s ([b]Seth Vidal[/b]) dislike of the [i]yum-priorities[/i] plugin? I will use [i]yum-priorities[/i] when it is necesssary but it is not necessary in my case, above.

Anyway, I was not displaying my system's output as an example of what someone should do but just as an example of how the [b]getinfo.sh[/b] script behaves with [i]RHEL 6.0[/i].

([b]toracat[/b] == pesky-cat). :roll:

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: ./getinfo.sh and RHEL 6.0

Post by AlanBartlett » 2011/01/01 17:24:38

Something for [b]toracat[/b] to ponder.

A [i]RHEL 6.0[/i] system and repositories from the [i]ELRepo Project[/i] & [i]RPMforge[/i] are configured.

As the result of a swipe from a certain feline paw, the [i]yum-plugin-priorities[/i] plugin has been installed & configured.

Now please consider --

[code]
[ajb@Duo2 yum.repos.d]$ ls
elrepo.repo mirrors-rpmforge mirrors-rpmforge-extras mirrors-rpmforge-testing packagekit-media.repo rpmforge.repo
[ajb@Duo2 yum.repos.d]$ sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n
priority = 10 [elrepo]
priority = 10 [elrepo-kernel]
priority = 10 [elrepo-testing]
priority = 10 [InstallMedia]
priority = 10 [rpmforge]
priority = 15 [rpmforge-testing]
priority = 20 [rpmforge-extras]
[ajb@Duo2 yum.repos.d]$
[/code]
The question it this: What priority is assigned to the default [i]RHEL 6.0[/i] repositories? :-?

I knew there was another reason why I did not initially install the [i]yum-plugin-priorities[/i] plugin. :roll:

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: ./getinfo.sh and RHEL 6.0

Post by toracat » 2011/01/01 17:37:12

What is so awfully wrong is that you are presenting an example using TUV's install. :-o In CentOS-6, that question is not relevant. :-D Hey, this is a CentOS forum !

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: ./getinfo.sh and RHEL 6.0

Post by AlanBartlett » 2011/01/01 18:17:36

Big sigh! :roll:

This is [i]CentOS Social[/i], in which [i]anything[/i] (within reason) goes. This is not a [i]CentOS 6[/i] forum. :-x

Post Reply