Installare RPMFORGE REPO e LSHW su RHEL e CentOS

#!/bin/sh
# CentOS/RHEL 6 install script for RPMForge repo and lshw
export ARCH=`uname -i`
cd /~
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.$ARCH.rpm
rpm -Uhv rpmforge-release-0.5.3-1.el6.rf.$ARCH.rpm
rm rpmforge-release-0.5.3-1.el6.rf.$ARCH.rpm
yum install lshw -y


Esempio

lshw -short -quiet |grep -E 'system|processor|memory|storage|disk|volume'
system 74663RG ()
/0/0 memory 128KiB BIOS
/0/6 processor Intel(R) Core(TM)2 Duo CPU L9400 @ 1.86GHz
/0/6/a memory 64KiB L1 cache
/0/6/c memory 6MiB L2 cache
/0/b memory 64KiB L1 cache
/0/20 memory 8GiB System Memory
/0/20/0 memory 4GiB SODIMM DDR3 Synchronous 1066 MHz (0.9 ns)
/0/20/1 memory 4GiB SODIMM DDR3 Synchronous 1066 MHz (0.9 ns)
/0/100/1c.2/0 memory Memory controller
/0/100/1f.2 storage 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode]
/0/1 scsi0 storage
/0/1/0.0.0 /dev/sda disk 320GB ST9320325AS
/0/1/0.0.0/1 volume 1200MiB Windows NTFS volume
/0/1/0.0.0/2 volume 97GiB Windows NTFS volume
/0/1/0.0.0/3 volume 101GiB Windows NTFS volume
/0/1/0.0.0/4 volume 98GiB Extended partition
/0/1/0.0.0/4/5 volume 39GiB Linux filesystem partition
/0/1/0.0.0/4/6 volume 4000MiB Linux swap / Solaris partition
/0/1/0.0.0/4/7 volume 55GiB Linux filesystem partition
/0/2 scsi4 storage
/0/2/0.0.0 /dev/sdb disk 1977MB SCSI Disk
/0/2/0.0.0/1 volume 1883MiB Windows FAT volume
/0/3 scsi5 storage
/0/3/0.0.0 /dev/sdc disk DCP-135C
/0/3/0.0.0/0 /dev/sdc disk

lshw -c disk
*-disk
description: ATA Disk
product: ST9320325AS
vendor: Seagate
physical id: 0.0.0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: 0020
serial: 6VD9P319
size: 298GiB (320GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 sectorsize=512 signature=3a1aecad
*-disk
description: SCSI Disk
physical id: 0.0.0
bus info: scsi@4:0.0.0
logical name: /dev/sdb
size: 1886MiB (1977MB)
capabilities: partitioned partitioned:dos
configuration: sectorsize=512 signature=42174216
*-disk
description: SCSI Disk
product: DCP-135C
vendor: Brother
physical id: 0.0.0
bus info: scsi@5:0.0.0
logical name: /dev/sdc
version: 1.00
capabilities: removable
configuration: ansiversion=2 sectorsize=512
*-medium
physical id: 0
logical name: /dev/sdc

lshw -c cpu
*-cpu
description: CPU
product: Intel(R) Core(TM)2 Duo CPU L9400 @ 1.86GHz
vendor: Intel Corp.
physical id: 6
bus info: cpu@0
version: Intel(R) Core(TM)2 Duo CPU L9400 @ 1.86GHz
slot: None
size: 1867MHz
capacity: 1867MHz
width: 64 bits
clock: 266MHz
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx x86-64 constant_tsc arch_perfmon pebs bts nopl aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 lahf_lm ida dtherm tpr_shadow vnmi flexpriority cpufreq

lshw -short
H/W path Device Class Description
====================================================
system 74663RG ()
/0 bus 74663RG
/0/0 memory 128KiB BIOS
/0/6 processor Intel(R) Core(TM)2 Duo CPU L9400 @ 1.86GHz
/0/6/a memory 64KiB L1 cache
/0/6/c memory 6MiB L2 cache
/0/b memory 64KiB L1 cache
/0/20 memory 8GiB System Memory
/0/20/0 memory 4GiB SODIMM DDR3 Synchronous 1066 MHz (0.9 ns)
/0/20/1 memory 4GiB SODIMM DDR3 Synchronous 1066 MHz (0.9 ns)
/0/100 bridge Mobile 4 Series Chipset Memory Controller Hub
/0/100/2 display Mobile 4 Series Chipset Integrated Graphics Controller
/0/100/2.1 display Mobile 4 Series Chipset Integrated Graphics Controller
/0/100/3 communication Mobile 4 Series Chipset MEI Controller
/0/100/3.3 communication Mobile 4 Series Chipset AMT SOL Redirection
/0/100/19 eth0 network 82567LM Gigabit Network Connection
/0/100/1a bus 82801I (ICH9 Family) USB UHCI Controller #4
/0/100/1a.1 bus 82801I (ICH9 Family) USB UHCI Controller #5
/0/100/1a.2 bus 82801I (ICH9 Family) USB UHCI Controller #6
/0/100/1a.7 bus 82801I (ICH9 Family) USB2 EHCI Controller #2
/0/100/1b multimedia 82801I (ICH9 Family) HD Audio Controller
/0/100/1c bridge 82801I (ICH9 Family) PCI Express Port 1
/0/100/1c.1 bridge 82801I (ICH9 Family) PCI Express Port 2
/0/100/1c.1/0 wlan0 network Ultimate N WiFi Link 5300
/0/100/1c.2 bridge 82801I (ICH9 Family) PCI Express Port 3
/0/100/1c.2/0 memory Memory controller
/0/100/1c.3 bridge 82801I (ICH9 Family) PCI Express Port 4
/0/100/1d bus 82801I (ICH9 Family) USB UHCI Controller #1
/0/100/1d.1 bus 82801I (ICH9 Family) USB UHCI Controller #2
/0/100/1d.2 bus 82801I (ICH9 Family) USB UHCI Controller #3
/0/100/1d.7 bus 82801I (ICH9 Family) USB2 EHCI Controller #1
/0/100/1e bridge 82801 Mobile PCI Bridge
/0/100/1f bridge ICH9M-E LPC Interface Controller
/0/100/1f.2 storage 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode]
/0/100/1f.3 bus 82801I (ICH9 Family) SMBus Controller
/0/1 scsi0 storage
/0/1/0.0.0 /dev/sda disk 320GB ST9320325AS
/0/1/0.0.0/1 volume 1200MiB Windows NTFS volume
/0/1/0.0.0/2 volume 97GiB Windows NTFS volume
/0/1/0.0.0/3 volume 101GiB Windows NTFS volume
/0/1/0.0.0/4 volume 98GiB Extended partition
/0/1/0.0.0/4/5 volume 39GiB Linux filesystem partition
/0/1/0.0.0/4/6 volume 4000MiB Linux swap / Solaris partition
/0/1/0.0.0/4/7 volume 55GiB Linux filesystem partition
/0/2 scsi4 storage
/0/2/0.0.0 /dev/sdb disk 1977MB SCSI Disk
/0/2/0.0.0/1 volume 1883MiB Windows FAT volume
/0/3 scsi5 storage
/0/3/0.0.0 /dev/sdc disk DCP-135C
/0/3/0.0.0/0 /dev/sdc disk
/1 power 42T4646
/2 wwan0 network Ethernet interface

lshw -c system
localhost.localdomain
description: Notebook
product: 74663RG ()
vendor: LENOVO
version: ThinkPad X200s
serial: LV000G0
width: 64 bits
capabilities: smbios-2.4 dmi-2.4 vsyscall32
configuration: administrator_password=disabled boot=normal chassis=notebook family=ThinkPad X200s frontpanel_password=unknown keyboard_password=disabled power-on_password=disabled uuid=

Revisions

There are no revisions for this post.

Tags: , , ,