sábado, 24 de mayo de 2008

- LSHW - Como Obtener las especificaciones de hardware en Linux

Para obtener el listado de especificaciones de hardware hay que usar el comando "lshw" ("ls" de Lister y "hw" de hardware) como superusuario:

Con esa orden aparece un extenso y detallado listado con las características técnicas de la máquina en la que se ejecute. Como el listado resultante es muy largo se puede acotar a un área concreta, mediante el parámetro "-C"

EJEMPLOS

Acotar al procesador:
lshw -C processor

Acotar a los discos duros:
lshw -C disk

Acotar a la memoria RAM:
lshw -C memory

Acotar a la tarjeta de sonido:
-sudo lshw -C sound

Acotar a los dispositivos de conexión a Internet:
lshw -C communication

Para poder leerlo de forma más cómoda se puede guardar en formato HTML:
lshw -html > nombre-de-archivo.html

También se puede guardar en XML:
lshw -html > nombre-de-archivo.html

Existe un front-end gráfico:
-gtk-lshw.
=================================================================

VERCIONES

La última versión es la B 02.12.01.
http://ezix.org/software/files/lshw-B.02.12.01.tar.gz

Otras verciones disponibles en SourceForge.net. :
http://www.linuxpackages.net/pkg_details.php?id=11703

VERCIONES PRECOMPILADAS

Mandriva Linux http://www.mandrivalinux.org/
*incluye lshw como un paquete estándar.


Gentoo Linux http://www.gentoo.org/
*incluye lshw como un paquete estándar.
los paquetes están disponibleS : http://packages.gentoo.org/


Debian http://www.debian.org/
los paquetes están disponible para muchas plataformas :
http://packages.debian.org/lshw


Fedora http://fedoraproject.org/
Ahora incluye lshw:
-sudo yum install lshw lshw-gui
instala lshw y su GUI.


RPM para RedHat Linux(7.x & 9), RedHat Enterprise Linux 2 & 3) y Fedora Core(1, 2 & 3)
disponibles en :
http://dag.wieers.com/rpm/packages/lshw/

=================================================================

INSTALACION


DESEMPAQUETAR:
tar xvfz lshw-release.tar.gz

COMPILAR:
cd lshw-release
make


CREAR "optional GUI":

make gui

CONSTRUIR RPM package:

rpmbuild -ta lshw-release.tar.gz


O INCLUIR "optional GUI":
rpmbuild -ta --with gui lshw-release.tar.gz


=================================================================

EJEMPLOS DE VISUALIZACION

*****ordenador personal de Escritorio GTK + interfaz de usuario gráfico (gtk-lshw)



==============================================================
*****Apple PowerMac dual G4 1.25GHz, 768MB memory
ioscan-like output (lshw -short)

==============================================================
H/W path Device Class Description
==============================================================
system Computer
/0 bus
/0/fff00000 memory BootROM
/0/0 /proc/device-tree memory OpenFirmware 3
/0/1 memory System memory
/0/1/0 memory Memory bank
/0/1/1 memory Memory bank
/0/1/2 memory Memory bank
/0/1/3 memory Memory bank
/0/2 processor CPU
/0/2/0 memory L1 Cache
/0/2/1 memory L2 Cache (unified)
/0/3 processor CPU
/0/3/0 memory L1 Cache
/0/3/1 memory L2 Cache (unified)
/0/100 bridge Host bridge
/0/100/10 /dev/fb0 display VGA compatible controller (VGA)
/0/101 bridge Host bridge
/0/101/17 generic KeyLargo Mac I/O
/0/101/17/1 ide1 bus Channel 0
/0/101/17/1/0 /dev/hdc disk IDE CD-ROM
/0/101/17/1/0/0 scsi0 storage SCSI storage controller
/0/101/17/1/0/0/0 bus Channel 0
/0/101/17/1/0/0/0/0 /dev/dvd disk DVD reader
/0/101/18 bus USB Controller (OHCI)
/0/101/19 bus USB Controller (OHCI)
/0/101/1b bus USB Controller (OHCI)
/0/101/1b.1 bus USB Controller (OHCI)
/0/101/1b.2 bus USB Controller (EHCI)
/0/102 bridge Host bridge
/0/102/d generic UniNorth 2 ATA/100
/0/102/d/2 ide2 bus Channel 0

/0/102/d/2/0 /dev/hde disk ATA Disk
/0/102/e bus FireWire (IEEE 1394) (OHCI)
/0/102/f eth0 network Ethernet controller



==============================================================
*****Dell OptiPlex GXa Pentium II 266MHz 192MB memory
==============================================================
dell
product: OptiPlex GXa 266L EM+
vendor: Dell Computer Corporation
serial: NL2SC
capabilities: smbios-2.2 dmi-2.2
*-core
*-firmware

description: BIOS
vendor: Dell Computer Corporation
version: A10 (06/23/00)
size: 64KB
capacity: 192KB
capabilities: isa pci pnp apm upgrade shadowing escd cdboot bootselect edd int13floppytoshiba int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video
*-cpu
product: Pentium II (Klamath)
vendor: GenuineIntel
slot: Microprocessor
size: 266MHz
capacity: 333MHz
clock: 66MHz
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov mmx
*-cache:0
description: Internal L1 Cache
size: 32KB
capacity: 32KB
*-cache:1
description: Pipeline burst Synchronous External L2 write-back Cache
size: 512KB
capacity: 512KB
*-memory
description: System Memory
slot: System board or motherboard
size: 192MB
capacity: 384MB
*-bank:0
description: DIMM DRAM Synchronous 64 bits
slot: DIMM_A
size: 64MB
*-bank:1
description: DIMM DRAM Synchronous 64 bits
slot: DIMM_B
size: 64MB
*-bank:2
description: DIMM DRAM Synchronous 64 bits
slot: DIMM_C
size: 64MB


=================================================================

No hay comentarios.: