Skip to content

lshw, obtener especificaciones del hardware

3/marzo/2009

msi7021Anteriormente, conocimos a dmidecode que nos entrega información del hardware detallado en la BIOS. Ahora, es el turno de Hardware Lister o lshw, un comando que nos entregará información con las especificaciones de todo el hardware que se encuentre conectado en nuestro equipo, como por ejemplo la configuración de memoria exacta, la versión de firmware , configuración de la placa madre, versión del procesador y la velocidad, la configuración de cache, la velocidad del BUS, etc.

Con lshw puedes obtener información de tu hardware sin necesidad de un destornillador para abrir el gabinete del equipo. También es muy útil cuando el equipo se encuentra alejado o no tengamos acceso físico al equipo.

Instalación y uso del programa después del salto.

Instalación

Tan simple como hacer clic en lshw 1-click install. Ya sabes, abrir con YaST meta-paquetes, etc. Al finalizar tendremos el programa instalado y listo para utilizar desde una terminal.

Uso de lshw

Para obtener un listado de especificaciones de hardware hay que usar el comando lshw como superusuario o mediante sudo:

lshw

Cuando ejecutamos lshw sin opciones, obtendremos información detallada de la configuración de hardware existente en la maquina en un formato de texto, el cual tiene la siguiente estructura:

información del sitema
   información de la placa madre
     información del procesador
	cache, logical cpu
     memoria
	capacidad, tamaño total, información individual de los bancos
     información de las ranuas pci
     información de las ranuas ide
	información de los discos
		tamaño total, partición,
     información de las ranuras usb
    red

Por ejemplo:

# lshw
skynet
description: Desktop Computer
product: MS-7021
vendor: MSI
version: 1.0
serial: 00000000
width: 32 bits
capabilities: smbios-2.3 dmi-2.3 smp-1.4 smp
configuration: chassis=desktop cpus=1
*-core
description: Motherboard
product: MS-7021
vendor: MSI
physical id: 0
version: 1.0
serial: 00000000
*-firmware
description: BIOS
vendor: American Megatrends Inc.
physical id: 0
version: Version 07.00T (04/02/01)
size: 64KiB
capacity: 192KiB
capabilities: isa pci pnp apm upgrade shadowing escd cdboot bootselect socketedrom edd int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int17printer int10video acpi usb agp ls120boot zipboot biosbootspecification
*-cpu
description: CPU
product: AMD Sempron(tm) 2400+
vendor: Advanced Micro Devices [AMD]
physical id: 4
bus info: cpu@0
version: 6.8.1
slot: Socket-A
size: 1667MHz
capacity: 3GHz
width: 32 bits
clock: 166MHz
capabilities: boot fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow up
*-cache:0
description: L1 cache
physical id: 5
slot: Internal Cache
size: 128KiB
capacity: 1MiB
capabilities: synchronous internal write-back unified
*-cache:1
description: L2 cache
physical id: 6
slot: Internal Cache
size: 256KiB
capacity: 1MiB
capabilities: synchronous internal write-back unified
*-memory
description: System memory
physical id: 1
size: 767MiB
*-pci
description: Host bridge
product: VT8377 [KT400/KT600 AGP] Host Bridge
vendor: VIA Technologies, Inc.
physical id: 100
bus info: pci@0000:00:00.0
version: 80
width: 32 bits
clock: 66MHz
configuration: driver=agpgart-via latency=8
resources: irq:0 memory:e0000000-e7ffffff(prefetchable)
*-pci
description: PCI bridge
product: VT8237/VX700 PCI Bridge
vendor: VIA Technologies, Inc.
physical id: 1
bus info: pci@0000:00:01.0
version: 00
width: 32 bits
clock: 66MHz
capabilities: pci pm normal_decode bus_master cap_list
resources: memory:dde00000-dfefffff memory:cdd00000-ddcfffff(prefetchable)
*-display
description: VGA compatible controller
product: NV18 [GeForce4 MX 4000]
vendor: nVidia Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: c1
width: 32 bits
clock: 66MHz
capabilities: pm agp agp-3.0 vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=248 maxlatency=1 mingnt=5
resources: irq:16 memory:de000000-deffffff memory:d0000000-d7ffffff(prefetchable) memory:dfee0000-dfefffff(prefetchable)
*-storage
description: RAID bus controller
product: VIA VT6420 SATA RAID Controller
vendor: VIA Technologies, Inc.
physical id: f
bus info: pci@0000:00:0f.0
logical name: scsi3
version: 80
width: 32 bits
clock: 33MHz
capabilities: storage pm bus_master cap_list emulated
configuration: driver=sata_via latency=32
resources: irq:20 ioport:ec00(size=8) ioport:e800(size=4) ioport:e400(size=8) ioport:e000(size=4) ioport:dc00(size=16) ioport:d800(size=256)
*-disk
description: ATA Disk
product: SAMSUNG HD160JJ
physical id: 0.0.0
bus info: scsi@3:0.0.0
logical name: /dev/sdb
version: WU10
serial: S08HJ1MYB20763
size: 149GiB (160GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 signature=000c03a8
*-volume:0
description: EXT3 volume
vendor: Linux
physical id: 1
bus info: scsi@3:0.0.0,1
logical name: /dev/sdb1
logical name: /
version: 1.0
serial: 1d08c17f-66ce-4f35-ba15-0e5d76ce9db3
size: 19GiB
capacity: 19GiB
capabilities: primary bootable journaled extended_attributes large_files recover ext3 ext2 initialized
configuration: created=2008-12-27 04:44:09 filesystem=ext3 modified=2009-03-02 11:51:36 mount.fstype=ext3 mount.options=rw,errors=continue,user_xattr,acl,barrier=1,data=ordered mounted=2009-03-02 11:51:36 state=mounted
*-volume:1
description: Linux swap volume
physical id: 2
bus info: scsi@3:0.0.0,2
logical name: /dev/sdb2
version: 1
size: 337MiB
capacity: 337MiB
capabilities: primary nofs swap initialized
configuration: filesystem=swap pagesize=4096
*-volume:2
description: Extended partition
physical id: 4
bus info: scsi@3:0.0.0,4
logical name: /dev/sdb4
size: 129GiB
capacity: 129GiB
capabilities: primary extended partitioned partitioned:extended
*-logicalvolume
description: Linux filesystem partition
physical id: 5
logical name: /dev/sdb5
logical name: /home
capacity: 129GiB
configuration: mount.fstype=ext3 mount.options=rw,errors=continue,user_xattr,acl,barrier=1,data=ordered state=mounted
*-ide
description: IDE interface
product: VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE
vendor: VIA Technologies, Inc.
physical id: f.1
bus info: pci@0000:00:0f.1
logical name: scsi0
logical name: scsi1
version: 06
width: 32 bits
clock: 33MHz
capabilities: ide pm bus_master cap_list emulated
configuration: driver=pata_via latency=32
resources: irq:20 ioport:1f0(size=8) ioport:3f6 ioport:170(size=8) ioport:376 ioport:fc00(size=16)
*-disk
description: ATA Disk
product: Maxtor 2F030L0
vendor: Maxtor
physical id: 0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: VAM5
serial: F182KQWE
size: 28GiB (30GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 signature=c49fc49f
*-volume
description: Windows NTFS volume
physical id: 1
bus info: scsi@0:0.0.0,1
logical name: /dev/sda1
logical name: /windows/C
version: 3.1
serial: f8330e76-9dc8-714a-b82d-e1770498d4ab
size: 28GiB
capacity: 28GiB
capabilities: primary bootable ntfs initialized
configuration: clustersize=4096 created=2006-09-23 13:28:52 filesystem=ntfs label=WIN-XP mount.fstype=fuseblk mount.options=rw,nosuid,nodev,noexec,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 state=mounted
*-cdrom:0
description: DVD-RAM writer
product: DVDRAM GSA-4167B
vendor: HL-DT-ST
physical id: 1
bus info: scsi@1:0.0.0
logical name: /dev/cdrom
logical name: /dev/cdrw
logical name: /dev/dvd
logical name: /dev/dvdrw
logical name: /dev/scd0
logical name: /dev/sr0
version: DL12
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: ansiversion=5 status=ready
*-medium
physical id: 0
logical name: /dev/cdrom
*-cdrom:1
description: CD-R/CD-RW writer
physical id: 0.1.0
bus info: scsi@1:0.1.0
logical name: /dev/scd1
logical name: /dev/sr1
capabilities: audio cd-r cd-rw
configuration: status=nodisc
*-usb:0
description: USB Controller
product: VT82xxxxx UHCI USB 1.1 Controller
vendor: VIA Technologies, Inc.
physical id: 10
bus info: pci@0000:00:10.0
version: 81
width: 32 bits
clock: 33MHz
capabilities: pm uhci bus_master cap_list
configuration: driver=uhci_hcd latency=32
resources: irq:21 ioport:c800(size=32)
*-usb:1
description: USB Controller
product: VT82xxxxx UHCI USB 1.1 Controller
vendor: VIA Technologies, Inc.
physical id: 10.1
bus info: pci@0000:00:10.1
version: 81
width: 32 bits
clock: 33MHz
capabilities: pm uhci bus_master cap_list
configuration: driver=uhci_hcd latency=32
resources: irq:21 ioport:cc00(size=32)
*-usb:2
description: USB Controller
product: VT82xxxxx UHCI USB 1.1 Controller
vendor: VIA Technologies, Inc.
physical id: 10.2
bus info: pci@0000:00:10.2
version: 81
width: 32 bits
clock: 33MHz
capabilities: pm uhci bus_master cap_list
configuration: driver=uhci_hcd latency=32
resources: irq:21 ioport:d000(size=32)
*-usb:3
description: USB Controller
product: VT82xxxxx UHCI USB 1.1 Controller
vendor: VIA Technologies, Inc.
physical id: 10.3
bus info: pci@0000:00:10.3
version: 81
width: 32 bits
clock: 33MHz
capabilities: pm uhci bus_master cap_list
configuration: driver=uhci_hcd latency=32
resources: irq:21 ioport:d400(size=32)
*-usb:4
description: USB Controller
product: USB 2.0
vendor: VIA Technologies, Inc.
physical id: 10.4
bus info: pci@0000:00:10.4
version: 86
width: 32 bits
clock: 33MHz
capabilities: pm ehci bus_master cap_list
configuration: driver=ehci_hcd latency=32
resources: irq:21 memory:dfffbe00-dfffbeff
*-isa
description: ISA bridge
product: VT8237 ISA bridge [KT600/K8T800/K8T890 South]
vendor: VIA Technologies, Inc.
physical id: 11
bus info: pci@0000:00:11.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: isa pm bus_master cap_list
configuration: latency=0
*-multimedia
description: Multimedia audio controller
product: VT8233/A/8235/8237 AC97 Audio Controller
vendor: VIA Technologies, Inc.
physical id: 11.5
bus info: pci@0000:00:11.5
version: 60
width: 32 bits
clock: 33MHz
capabilities: pm cap_list
configuration: driver=VIA 82xx Audio latency=0
resources: irq:22 ioport:c400(size=256)
*-network
description: Ethernet interface
product: VT6102 [Rhine-II]
vendor: VIA Technologies, Inc.
physical id: 12
bus info: pci@0000:00:12.0
logical name: eth0
version: 78
serial: 00:11:09:d9:ce:a5
size: 100MB/s
capacity: 100MB/s
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=via-rhine driverversion=1.4.3 duplex=full ip=192.168.1.2 latency=32 link=yes maxlatency=8 mingnt=3 multicast=yes port=MII speed=100MB/s
resources: irq:23 ioport:c000(size=256) memory:dfffbd00-dfffbdff
*-scsi
physical id: 2
bus info: usb@5:6.1
logical name: scsi4
capabilities: emulated scsi-host
configuration: driver=usb-storage
*-disk
description: SCSI Disk
physical id: 0.0.0
bus info: scsi@4:0.0.0
logical name: /dev/sdc
size: 232GiB (250GB)
capabilities: partitioned partitioned:dos
configuration: signature=b1bbb75d
*-volume
description: Windows NTFS volume
physical id: 1
bus info: scsi@4:0.0.0,1
logical name: /dev/sdc1
logical name: /media/SimpleDrive
version: 3.1
serial: 82395f3e-a606-b949-b4f4-7c9da664821f
size: 232GiB
capacity: 232GiB
capabilities: primary ntfs initialized
configuration: clustersize=4096 created=2008-06-03 17:29:53 filesystem=ntfs label=SimpleDrive mount.fstype=fuseblk mount.options=rw,nosuid,nodev,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 state=mounted

Para obtener información únicamente sobre los discos utiliza el siguiente comando:

# lshw -class disk
*-disk
description: ATA Disk
product: SAMSUNG HD160JJ
physical id: 0.0.0
bus info: scsi@3:0.0.0
logical name: /dev/sdb
version: WU10
serial: S08HJ1MYB20763
size: 149GiB (160GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 signature=000c03a8
*-disk
description: ATA Disk
product: Maxtor 2F030L0
vendor: Maxtor
physical id: 0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: VAM5
serial: F182KQWE
size: 28GiB (30GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 signature=c49fc49f
*-cdrom:0
description: DVD-RAM writer
product: DVDRAM GSA-4167B
vendor: HL-DT-ST
physical id: 1
bus info: scsi@1:0.0.0
logical name: /dev/cdrom
logical name: /dev/cdrw
logical name: /dev/dvd
logical name: /dev/dvdrw
logical name: /dev/scd0
logical name: /dev/sr0
version: DL12
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: ansiversion=5 status=ready
*-medium
physical id: 0
logical name: /dev/cdrom
*-cdrom:1
description: CD-R/CD-RW writer
physical id: 0.1.0
bus info: scsi@1:0.1.0
logical name: /dev/scd1
logical name: /dev/sr1
capabilities: audio cd-r cd-rw
configuration: status=nodisc
*-disk
description: SCSI Disk
physical id: 0.0.0
bus info: scsi@4:0.0.0
logical name: /dev/sdc
size: 232GiB (250GB)
capabilities: partitioned partitioned:dos
configuration: signature=b1bbb75d

Otras clases que puedes utilizar son:

  • address
  • bridge
  • bus
  • communication
  • disk
  • display
  • generic
  • input
  • memory
  • multimedia
  • network
  • power
  • printer
  • processor
  • storage
  • system
  • tape
  • volume

También, puedes obtener un resumen del reporte con la opción -short:

microtek:/home/alex # lshw -short
H/W path            Device      Class       Description
=======================================================
system      MS-7021
/0                              bus         MS-7021
/0/0                            memory      64KiB BIOS
/0/4                            processor   AMD Sempron(tm) 2400+
/0/4/5                          memory      128KiB L1 cache
/0/4/6                          memory      256KiB L2 cache
/0/1                            memory      767MiB System memory
/0/100                          bridge      VT8377 [KT400/KT600 AGP] Host Bridge
/0/100/1                        bridge      VT8237/VX700 PCI Bridge
/0/100/1/0                      display     NV18 [GeForce4 MX 4000]
/0/100/f            scsi3       storage     VIA VT6420 SATA RAID Controller
/0/100/f/0.0.0      /dev/sdb    disk        160GB SAMSUNG HD160JJ
/0/100/f/0.0.0/1    /dev/sdb1   volume      19GiB EXT3 volume
/0/100/f/0.0.0/2    /dev/sdb2   volume      337MiB Linux swap volume
/0/100/f/0.0.0/4    /dev/sdb4   volume      129GiB Extended partition
/0/100/f/0.0.0/4/5  /dev/sdb5   volume      129GiB Linux filesystem partition
/0/100/f.1          scsi0       storage     VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE
/0/100/f.1/0        /dev/sda    disk        30GB Maxtor 2F030L0
/0/100/f.1/0/1      /dev/sda1   volume      28GiB Windows NTFS volume
/0/100/f.1/1        /dev/cdrom  disk        DVDRAM GSA-4167B
/0/100/f.1/1/0      /dev/cdrom  disk
/0/100/f.1/0.1.0    /dev/scd1   disk        CD-R/CD-RW writer
/0/100/10                       bus         VT82xxxxx UHCI USB 1.1 Controller
/0/100/10.1                     bus         VT82xxxxx UHCI USB 1.1 Controller
/0/100/10.2                     bus         VT82xxxxx UHCI USB 1.1 Controller
/0/100/10.3                     bus         VT82xxxxx UHCI USB 1.1 Controller
/0/100/10.4                     bus         USB 2.0
/0/100/11                       bridge      VT8237 ISA bridge [KT600/K8T800/K8T890 South]
/0/100/11.5                     multimedia  VT8233/A/8235/8237 AC97 Audio Controller
/0/100/12           eth0        network     VT6102 [Rhine-II]
/0/2                scsi4       storage
/0/2/0.0.0          /dev/sdc    disk        250GB SCSI Disk
/0/2/0.0.0/1        /dev/sdc1   volume      232GiB Windows NTFS volume

Puedes guardar el reporte en un archivo con formato HTML o XML de la siguiente forma:

# lshw -html > detalles-hw.html
# lshw -xml > detalles-hw.xml

Si deseas mas información sobre el uso del programa, utiliza las páginas man del comando: man lshw.

Enlace:

Sitio oficial de Hardware Lister

Anuncios
One Comment

Trackbacks

  1. HardInfo, información de nuestro hardware « MicroTeknologias

Los comentarios están cerrados.

A %d blogueros les gusta esto: