If we want to display all hardware inside the computer with Linux installed, then we can use command hwinfo
. In Ubuntu Linux we can install hwinfo
package using the following command :
tedy@tedy-laptop:~$ sudo apt-get install hwinfo Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: bwidget tablelist Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libhd14 The following NEW packages will be installed: hwinfo libhd14 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/717kB of archives. After this operation, 1978kB of additional disk space will be used. Do you want to continue [Y/n]? y WARNING: The following packages cannot be authenticated! libhd14 hwinfo Install these packages without verification [y/N]? y Selecting previously deselected package libhd14. (Reading database ... 190769 files and directories currently installed.) Unpacking libhd14 (from .../libhd14_14.19-2ubuntu1_i386.deb) ... Selecting previously deselected package hwinfo. Unpacking hwinfo (from .../hwinfo_14.19-2ubuntu1_i386.deb) ... Processing triggers for man-db ... Setting up libhd14 (14.19-2ubuntu1) ... Setting up hwinfo (14.19-2ubuntu1) ... Processing triggers for libc6 ... ldconfig deferred processing now taking place tedy@tedy-laptop:~$
And we can easily get the list of all hardware using hwinfo
command. Sometimes we only need the sumarry of the hardware so we can put the option like this :
tedy@tedy-laptop:~$ hwinfo --short cpu: Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz, 2400 MHz Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz, 2400 MHz keyboard: /dev/input/event1 AT Translated Set 2 keyboard mouse: /dev/input/mice USB Optical Mouse /dev/input/mice Macintosh mouse button emulation /dev/input/mice SynPS/2 Synaptics TouchPad graphics card: Intel Mobile GM965/GL960 Integrated Graphics Controller Intel 965 GM sound: Intel 82801H (ICH8 Family) HD Audio Controller storage: O2 Micro Integrated MS/xD Controller Intel 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller Intel 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller network: wlan0 Intel PRO/Wireless 4965 AG or AGN Network Connection eth0 Marvell 88E8055 PCI-E Gigabit Ethernet Controller network interface: pan0 Ethernet network interface vbox0 Ethernet network interface wlan0 WLAN network interface wmaster0 Network Interface eth0 Ethernet network interface lo Loopback network interface disk: /dev/sdb SAMSUNG HM121HI /dev/sda Hitachi HTS54251 partition: /dev/sdb2 Partition /dev/sdb5 Partition /dev/sda1 Partition /dev/sda2 Partition /dev/sda3 Partition /dev/sda5 Partition /dev/sda6 Partition /dev/sda7 Partition cdrom: /dev/sr0 Optiarc DVD RW AD-7910A usb controller: Intel 82801H (ICH8 Family) USB2 EHCI Controller #1 Intel 82801H (ICH8 Family) USB UHCI Controller #3 Intel 82801H (ICH8 Family) USB UHCI Controller #2 Intel 82801H (ICH8 Family) USB UHCI Controller #1 Intel 82801H (ICH8 Family) USB2 EHCI Controller #2 Intel 82801H (ICH8 Family) USB UHCI Controller #5 Intel 82801H (ICH8 Family) USB UHCI Contoller #4 bios: BIOS bridge: O2 Micro OZ711SP1 Memory CardBus Controller Intel 82801HEM (ICH8M) LPC Interface Controller Intel 82801 Mobile PCI Bridge Intel 82801H (ICH8 Family) PCI Express Port 3 Intel 82801H (ICH8 Family) PCI Express Port 1 Intel Mobile PM965/GM965/GL960 Memory Controller Hub hub: Linux 2.6.27-7-generic ehci_hcd EHCI Host Controller Linux 2.6.27-7-generic ehci_hcd EHCI Host Controller Linux 2.6.27-7-generic uhci_hcd UHCI Host Controller Linux 2.6.27-7-generic uhci_hcd UHCI Host Controller Linux 2.6.27-7-generic uhci_hcd UHCI Host Controller Linux 2.6.27-7-generic uhci_hcd UHCI Host Controller Linux 2.6.27-7-generic uhci_hcd UHCI Host Controller memory: Main Memory firewire controller: O2 Micro Firewire (IEEE 1394) unknown: FPU DMA controller PIC Timer Keyboard controller /dev/lp0 Parallel controller O2 Micro Integrated MMC/SD Controller Intel 82801H (ICH8 Family) SMBus Controller Unclassified device Unclassified device Unclassified device Unclassified device Unclassified device Unclassified device Unclassified device Unclassified device Unclassified device Unclassified device Unclassified device Unclassified device Serial controller Logitech OEM Camera tedy@tedy-laptop:~$
Besides hwinfo
command we can use dmidecode
command too like displayed on the example below :
[root@aptserver marketing]# dmidecode -q BIOS Information Vendor: Phoenix Technologies, LTD Version: 6.00 PG Release Date: 08/01/2003 Address: 0xE0000 Runtime Size: 128 kB ROM Size: 256 kB Characteristics: ISA is supported PCI is supported PNP is supported APM is supported BIOS is upgradeable BIOS shadowing is allowed ESCD support is available Boot from CD is supported Selectable boot is supported BIOS ROM is socketed EDD is supported 5.25"/360 KB floppy services are supported (int 13h) 5.25"/1.2 MB floppy services are supported (int 13h) 3.5"/720 KB floppy services are supported (int 13h) 3.5"/2.88 MB floppy services are supported (int 13h) Print screen service is supported (int 5h) 8042 keyboard services are supported (int 9h) Serial services are supported (int 14h) Printer services are supported (int 17h) CGA/mono video services are supported (int 10h) ACPI is supported USB legacy is supported AGP is supported LS-120 boot is supported ATAPI Zip drive boot is supported System Information Manufacturer: VIA Technologies, Inc. Product Name: KT333CF-8235 Version: Serial Number: UUID: Not Present Wake-up Type: Power Switch Base Board Information Manufacturer: Product Name: KT333CF-8235 Version: Serial Number: Chassis Information Manufacturer: Type: Desktop Lock: Not Present Version: Serial Number: Asset Tag: Boot-up State: Unknown Power Supply State: Unknown Thermal State: Unknown Security Status: Unknown Processor Information Socket Designation: Socket A Type: Central Processor Family: Duron Manufacturer: AMD ID: 81 06 00 00 FF FB 83 03 Signature: Family 6, Model 8, Stepping 1 Flags: FPU (Floating-point unit on-chip) VME (Virtual mode extension) DE (Debugging extension) PSE (Page size extension) TSC (Time stamp counter) MSR (Model specific registers) PAE (Physical address extension) MCE (Machine check exception) CX8 (CMPXCHG8 instruction supported) APIC (On-chip APIC hardware supported) SEP (Fast system call) MTRR (Memory type range registers) PGE (Page global enable) MCA (Machine check architecture) CMOV (Conditional move instruction supported) PAT (Page attribute table) PSE-36 (36-bit page size extension) MMX (MMX technology supported) FXSR (Fast floating-point save and restore) SSE (Streaming SIMD extensions) Version: AMD Athlon(tm) XP Voltage: 3.3 V External Clock: 133 MHz Max Speed: 1500 MHz Current Speed: 1800 MHz Status: Populated, Enabled Upgrade: ZIF Socket Memory Controller Information Error Detecting Method: None Error Correcting Capabilities: None Supported Interleave: One-way Interleave Current Interleave: Four-way Interleave Maximum Memory Module Size: 32 MB Maximum Total Memory Size: 96 MB Supported Speeds: 70 ns 60 ns Supported Memory Types: Standard EDO Memory Module Voltage: 5.0 V Associated Memory Slots: 3 0x0006 0x0007 0x0008 Enabled Error Correcting Capabilities: None Memory Module Information Socket Designation: A0 Bank Connections: 0 Current Speed: 60 ns Type: DIMM SDRAM Installed Size: 256 MB (Single-bank Connection) Enabled Size: 256 MB (Single-bank Connection) Error Status: OK Memory Module Information Socket Designation: A1 Bank Connections: None Current Speed: 60 ns Type: Unknown Installed Size: Not Installed Enabled Size: Not Installed Error Status: OK Memory Module Information Socket Designation: A2 Bank Connections: None Current Speed: 60 ns Type: Unknown Installed Size: Not Installed Enabled Size: Not Installed Error Status: OK Cache Information Socket Designation: Internal Cache Configuration: Enabled, Not Socketed, Level 1 Operational Mode: Write Back Location: Internal Installed Size: 128 KB Maximum Size: 128 KB Supported SRAM Types: Synchronous Installed SRAM Type: Synchronous Speed: Unknown Error Correction Type: Unknown System Type: Unknown Associativity: Unknown Cache Information Socket Designation: External Cache Configuration: Enabled, Not Socketed, Level 2 Operational Mode: Write Back Location: External Installed Size: 256 KB Maximum Size: 256 KB Supported SRAM Types: Synchronous Installed SRAM Type: Synchronous Speed: Unknown Error Correction Type: Unknown System Type: Unknown Associativity: Unknown Port Connector Information Internal Reference Designator: PRIMARY IDE Internal Connector Type: On Board IDE External Reference Designator: Not Specified External Connector Type: None Port Type: Other Port Connector Information Internal Reference Designator: SECONDARY IDE Internal Connector Type: On Board IDE External Reference Designator: Not Specified External Connector Type: None Port Type: Other Port Connector Information Internal Reference Designator: FDD Internal Connector Type: On Board Floppy External Reference Designator: Not Specified External Connector Type: None Port Type: 8251 FIFO Compatible Port Connector Information Internal Reference Designator: COM1 Internal Connector Type: 9 Pin Dual Inline (pin 10 cut) External Reference Designator: External Connector Type: DB-9 male Port Type: Serial Port 16450 Compatible Port Connector Information Internal Reference Designator: COM2 Internal Connector Type: 9 Pin Dual Inline (pin 10 cut) External Reference Designator: External Connector Type: DB-9 male Port Type: Serial Port 16450 Compatible Port Connector Information Internal Reference Designator: LPT1 Internal Connector Type: DB-25 female External Reference Designator: External Connector Type: DB-25 female Port Type: Parallel Port ECP/EPP Port Connector Information Internal Reference Designator: Keyboard Internal Connector Type: PS/2 External Reference Designator: External Connector Type: PS/2 Port Type: Keyboard Port Port Connector Information Internal Reference Designator: PS/2 Mouse Internal Connector Type: PS/2 External Reference Designator: External Connector Type: PS/2 Port Type: Mouse Port Port Connector Information Internal Reference Designator: Not Specified Internal Connector Type: None External Reference Designator: USB External Connector Type: Other Port Type: USB Port Connector Information Internal Reference Designator: Not Specified Internal Connector Type: None External Reference Designator: AUDIO External Connector Type: None Port Type: Audio Port System Slot Information Designation: PCI0 Type: 32-bit PCI Current Usage: Available Length: Long ID: 1 Characteristics: 5.0 V is provided PME signal is supported System Slot Information Designation: PCI1 Type: 32-bit PCI Current Usage: In Use Length: Long ID: 2 Characteristics: 5.0 V is provided PME signal is supported System Slot Information Designation: PCI2 Type: 32-bit PCI Current Usage: Available Length: Long ID: 3 Characteristics: 5.0 V is provided PME signal is supported System Slot Information Designation: PCI3 Type: 32-bit PCI Current Usage: In Use Length: Long ID: 4 Characteristics: 5.0 V is provided PME signal is supported System Slot Information Designation: AGP Type: 32-bit AGP Current Usage: Available Length: Long ID: 8 Characteristics: 5.0 V is provided BIOS Language Information Installable Languages: 3 n|US|iso8859-1 n|US|iso8859-1 r|CA|iso8859-1 Currently Installed Language: n|US|iso8859-1 Physical Memory Array Location: System Board Or Motherboard Use: System Memory Error Correction Type: None Maximum Capacity: 768 MB Number Of Devices: 3 Memory Device Total Width: Unknown Data Width: Unknown Size: 256 MB Form Factor: DIMM Set: None Locator: A0 Bank Locator: Bank0/1 Type: Unknown Type Detail: None Memory Device Total Width: Unknown Data Width: Unknown Size: No Module Installed Form Factor: DIMM Set: None Locator: A1 Bank Locator: Bank2/3 Type: Unknown Type Detail: None Memory Device Total Width: Unknown Data Width: Unknown Size: No Module Installed Form Factor: DIMM Set: None Locator: A2 Bank Locator: Bank4/5 Type: Unknown Type Detail: None Memory Array Mapped Address Starting Address: 0x00000000000 Ending Address: 0x0000FFFFFFF Range Size: 256 MB Partition Width: 0 Memory Device Mapped Address Starting Address: 0x00000000000 Ending Address: 0x0000FFFFFFF Range Size: 256 MB Partition Row Position: 1 Memory Device Mapped Address Starting Address: 0x00000000000 Ending Address: 0x000000003FF Range Size: 1 kB Partition Row Position: 1 Memory Device Mapped Address Starting Address: 0x00000000000 Ending Address: 0x000000003FF Range Size: 1 kB Partition Row Position: 1 System Boot Information Status: No errors detected [root@aptserver marketing]#
There is another command for display all installed hardware in Linux box, it’s lshw
. To run the command just type lshw -short
like the example below :
[root@pwsupport-ftpserver tedy]# lshw -short H/W path Device Class Description ===================================================== system Computer /0 bus D845EBG2 /0/0 memory 64KiB BIOS /0/4 processor Intel(R) Pentium(R) 4 CPU 2.40GHz /0/4/5 memory 8KiB L1 cache /0/4/6 memory 512KiB L2 cache /0/35 memory 1GiB System Memory /0/35/0 memory 1GiB DIMM DDR Synchronous 266 MHz (3.8 ns) /0/35/1 memory DIMM DDR Synchronous 266 MHz (3.8 ns) [empty] /0/100 bridge 82845 845 [Brookdale] Chipset Host Bridge /0/100/1 bridge 82845 845 [Brookdale] Chipset AGP Bridge /0/100/1/0 display NV11 [GeForce2 MX/MX 400] /0/100/1d bus 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 /0/100/1d/1 usb1 bus UHCI Host Controller /0/100/1d.1 bus 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 /0/100/1d.1/1 usb2 bus UHCI Host Controller /0/100/1d.2 bus 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 /0/100/1d.2/1 usb3 bus UHCI Host Controller /0/100/1d.7 bus 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller /0/100/1d.7/1 usb4 bus EHCI Host Controller /0/100/1e bridge 82801 PCI Bridge /0/100/1e/2 eth1 network RTL8139 Ethernet /0/100/1e/c eth0 network RTL8139 Ethernet /0/100/1f bridge 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge /0/100/1f.1 storage 82801DB (ICH4) IDE Controller /0/100/1f.1/0 ide0 bus IDE Channel 0 /0/100/1f.1/0/0 /dev/hda disk 80GB ST380011A /0/100/1f.1/0/0/1 /dev/hda1 volume 101MiB EXT3 volume /0/100/1f.1/0/0/2 /dev/hda2 volume 74GiB Linux LVM Physical Volume partition /0/100/1f.1/1 ide1 bus IDE Channel 1 /0/100/1f.1/1/1 /dev/hdd disk LITE-ON LTR-52246S /0/100/1f.3 bus 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller /0/100/1f.5 multimedia 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller [root@pwsupport-ftpserver tedy]# [root@pwsupport-ftpserver tedy]#
For complete output just type lshw
without any option (remember this command will need root access priviledge) :
[root@pwsupport-ftpserver tedy]# lshw pwsupport-ftpserver description: Computer width: 32 bits capabilities: smbios-2.3 dmi-2.3 configuration: boot=normal uuid=1CDA3BE5-2B27-11D7-861A-00E0180A1E8B *-core description: Motherboard product: D845EBG2 vendor: Intel Corporation physical id: 0 version: AAA82888-206 serial: AZ2B30407626 *-firmware description: BIOS vendor: Intel Corp. physical id: 0 version: PT84520A.86A.0011.P06.0209201643 (09/20/2002) size: 64KiB capacity: 448KiB capabilities: pci pnp upgrade shadowing cdboot bootselect edd int13floppynec int13floppytoshiba int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb agp ls120boot zipboot biosbootspecification netboot *-cpu description: CPU product: Intel(R) Pentium(R) 4 CPU 2.40GHz vendor: Intel Corp. physical id: 4 bus info: cpu@0 version: 15.2.7 slot: J2E1 size: 2400MHz capacity: 3GHz width: 32 bits clock: 133MHz capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe up cid configuration: id=0 *-cache:0 description: L1 cache physical id: 5 slot: None size: 8KiB capacity: 8KiB capabilities: pipeline-burst internal varies data *-cache:1 description: L2 cache physical id: 6 slot: None size: 512KiB capacity: 512KiB capabilities: pipeline-burst internal varies unified *-memory description: System Memory physical id: 35 slot: System board or motherboard size: 1GiB capacity: 3GiB *-bank:0 description: DIMM DDR Synchronous 266 MHz (3.8 ns) product: PartNum1 vendor: Manufacturer1 physical id: 0 serial: SerNum1 slot: J6G2 size: 1GiB width: 64 bits clock: 266MHz (3.8ns) *-bank:1 description: DIMM DDR Synchronous 266 MHz (3.8 ns) [empty] product: PartNum2 vendor: Manufacturer2 physical id: 1 serial: SerNum2 slot: J6G1 width: 64 bits clock: 266MHz (3.8ns) *-pci description: Host bridge product: 82845 845 [Brookdale] Chipset Host Bridge vendor: Intel Corporation physical id: 100 bus info: pci@0000:00:00.0 version: 11 width: 32 bits clock: 33MHz configuration: driver=agpgart-intel *-pci:0 description: PCI bridge product: 82845 845 [Brookdale] Chipset AGP Bridge vendor: Intel Corporation physical id: 1 bus info: pci@0000:00:01.0 version: 11 width: 32 bits clock: 66MHz capabilities: pci normal_decode bus_master *-display description: VGA compatible controller product: NV11 [GeForce2 MX/MX 400] vendor: nVidia Corporation physical id: 0 bus info: pci@0000:01:00.0 version: b2 width: 32 bits clock: 66MHz capabilities: pm agp agp-2.0 vga bus_master cap_list configuration: latency=32 maxlatency=1 mingnt=5 *-usb:0 description: USB Controller product: 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 vendor: Intel Corporation physical id: 1d bus info: pci@0000:00:1d.0 version: 01 width: 32 bits clock: 33MHz capabilities: uhci bus_master configuration: driver=uhci_hcd latency=0 module=uhci_hcd *-usbhost product: UHCI Host Controller vendor: Linux 2.6.18-53.el5 uhci_hcd physical id: 1 bus info: usb@1 logical name: usb1 version: 2.06 capabilities: usb-1.10 configuration: driver=hub slots=2 speed=12.0MB/s *-usb:1 description: USB Controller product: 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 vendor: Intel Corporation physical id: 1d.1 bus info: pci@0000:00:1d.1 version: 01 width: 32 bits clock: 33MHz capabilities: uhci bus_master configuration: driver=uhci_hcd latency=0 module=uhci_hcd *-usbhost product: UHCI Host Controller vendor: Linux 2.6.18-53.el5 uhci_hcd physical id: 1 bus info: usb@2 logical name: usb2 version: 2.06 capabilities: usb-1.10 configuration: driver=hub slots=2 speed=12.0MB/s *-usb:2 description: USB Controller product: 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 vendor: Intel Corporation physical id: 1d.2 bus info: pci@0000:00:1d.2 version: 01 width: 32 bits clock: 33MHz capabilities: uhci bus_master configuration: driver=uhci_hcd latency=0 module=uhci_hcd *-usbhost product: UHCI Host Controller vendor: Linux 2.6.18-53.el5 uhci_hcd physical id: 1 bus info: usb@3 logical name: usb3 version: 2.06 capabilities: usb-1.10 configuration: driver=hub slots=2 speed=12.0MB/s *-usb:3 description: USB Controller product: 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller vendor: Intel Corporation physical id: 1d.7 bus info: pci@0000:00:1d.7 version: 01 width: 32 bits clock: 33MHz capabilities: pm debug ehci bus_master cap_list configuration: driver=ehci_hcd latency=0 module=ehci_hcd *-usbhost product: EHCI Host Controller vendor: Linux 2.6.18-53.el5 ehci_hcd physical id: 1 bus info: usb@4 logical name: usb4 version: 2.06 capabilities: usb-2.00 configuration: driver=hub slots=6 speed=480.0MB/s *-pci:1 description: PCI bridge product: 82801 PCI Bridge vendor: Intel Corporation physical id: 1e bus info: pci@0000:00:1e.0 version: 81 width: 32 bits clock: 33MHz capabilities: pci normal_decode bus_master *-network:0 description: Ethernet interface product: RTL8139 Ethernet vendor: D-Link System Inc physical id: 2 bus info: pci@0000:02:02.0 logical name: eth1 version: 10 serial: 00:50:ba:5f:1a:a2 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=8139too driverversion=0.9.27 duplex=full latency=32 link=yes maxlatency=64 mingnt=32 module=8139too multicast=yes port=MII speed=100MB/s *-network:1 description: Ethernet interface product: RTL8139 Ethernet vendor: D-Link System Inc physical id: c bus info: pci@0000:02:0c.0 logical name: eth0 version: 10 serial: 00:50:ba:b4:7a:08 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=8139too driverversion=0.9.27 duplex=full ip=192.168.234.254 latency=32 link=yes maxlatency=64 mingnt=32 module=8139too multicast=yes port=MII speed=100MB/s *-isa description: ISA bridge product: 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge vendor: Intel Corporation physical id: 1f bus info: pci@0000:00:1f.0 version: 01 width: 32 bits clock: 33MHz capabilities: isa bus_master configuration: latency=0 *-ide description: IDE interface product: 82801DB (ICH4) IDE Controller vendor: Intel Corporation physical id: 1f.1 bus info: pci@0000:00:1f.1 version: 01 width: 32 bits clock: 33MHz capabilities: ide bus_master configuration: driver=PIIX_IDE latency=0 *-ide:0 description: IDE Channel 0 physical id: 0 bus info: ide@0 logical name: ide0 clock: 33MHz *-disk description: ATA Disk product: ST380011A vendor: Seagate physical id: 0 bus info: ide@0.0 logical name: /dev/hda version: 3.06 serial: 3JV14735 size: 74GiB (80GB) capabilities: ata dma lba iordy smart security pm partitioned partitioned:dos configuration: mode=udma5 signature=a79ba79b smart=on *-volume:0 description: EXT3 volume vendor: Linux physical id: 1 bus info: ide@0.0,1 logical name: /dev/hda1 logical name: /boot version: 1.0 serial: 94cb7140-7bc7-42ec-8d9d-8846a628f9c0 size: 101MiB capacity: 101MiB capabilities: primary bootable journaled extended_attributes large_files huge_files recover ext3 ext2 initialized configuration: created=2008-10-29 16:29:14 filesystem=ext3 label=/boot modified=2008-11-24 07:59:28 mount.fstype=ext3 mount.options=rw,data=ordered mounted=2008-11-24 07:59:28 state=mounted *-volume:1 description: Linux LVM Physical Volume partition physical id: 2 bus info: ide@0.0,2 logical name: /dev/hda2 serial: L4OShd-CVlQ-DYi6-ZwG7-8COq-z7Yx-C4lk3i size: 74GiB capacity: 74GiB capabilities: primary multi lvm2 *-ide:1 description: IDE Channel 1 physical id: 1 bus info: ide@1 logical name: ide1 clock: 33MHz *-cdrom description: CD-R/CD-RW writer product: LITE-ON LTR-52246S physical id: 1 bus info: ide@1.1 logical name: /dev/hdd version: 6S0D capabilities: packet atapi cdrom removable nonmagnetic dma lba iordy audio cd-r cd-rw configuration: mode=udma2 status=nodisc *-serial description: SMBus product: 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller vendor: Intel Corporation physical id: 1f.3 bus info: pci@0000:00:1f.3 version: 01 width: 32 bits clock: 33MHz configuration: driver=i801_smbus latency=0 module=i2c_i801 *-multimedia description: Multimedia audio controller product: 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller vendor: Intel Corporation physical id: 1f.5 bus info: pci@0000:00:1f.5 version: 01 width: 32 bits clock: 33MHz capabilities: pm bus_master cap_list configuration: driver=Intel ICH latency=0 module=snd_intel8x0 [root@pwsupport-ftpserver tedy]#
By default, Red Hat Enterprise Linux 5.1 DVD doesn’t contain lshw
package. To retrieve that package, we suppose to update our repositories using online repositories.
[root@pwsupport-ftpserver tedy]# rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm [root@pwsupport-ftpserver tedy]# yum install lshw
If we want to display all hardware inside the computer with Solaris installed, we have some option and the easiest use command prtdiag
like the example below :
root@test-box02# prtdiag -v System Configuration: Sun Microsystems sun4u Sun Fire V120 (UltraSPARC-IIe 648MHz) System clock frequency: 100 MHz Memory size: 1024 Megabytes ========================= CPUs ========================= Run Ecache CPU CPU Brd CPU Module MHz MB Impl. Mask --- --- ------- ----- ------ ------ ---- 0 0 0 648 0.5 13 3.3 ========================= IO Cards ========================= Bus# Freq Brd Type MHz Slot Name Model --- ---- ---- ---- -------------------------------- ---------------------- 0 PCI-1 33 12 ebus 0 PCI-1 33 3 pmu-pci10b9,7101 0 PCI-1 33 3 lomp 0 PCI-1 33 7 isa 0 PCI-1 33 12 network-pci108e,1101 SUNW,pci-eri 0 PCI-1 33 12 usb-pci108e,1103.1 0 PCI-1 33 13 ide-pci10b9,5229 0 PCI-1 33 5 network-pci108e,1101 SUNW,pci-eri 0 PCI-1 33 5 usb-pci108e,1103.1 0 PCI-2 33 8 scsi-glm Symbios,53C896 0 PCI-2 33 8 scsi-glm Symbios,53C896 0 PCI-2 33 5 pci-pci8086,b154 No failures found in System =========================== ========================= HW Revisions ========================= ASIC Revisions: --------------- Cheerio: ebus Rev 1 System PROM revisions: ---------------------- CORE 1.0.12 2002/01/08 13:00 root@test-box02#
Other option is by using prtconf
command :
root@test-box02# prtconf -v System Configuration: Sun Microsystems sun4u Memory size: 1024 Megabytes System Peripherals (Software Nodes): SUNW,UltraAX-i2 System properties: name='relative-addressing' type=int items=1 value=00000001 name='MMU_PAGEOFFSET' type=int items=1 value=00001fff name='MMU_PAGESIZE' type=int items=1 value=00002000 name='PAGESIZE' type=int items=1 value=00002000 Driver properties: name='pm-hardware-state' type=string items=1 dev=none value='no-suspend-resume' packages (driver not attached) terminal-emulator (driver not attached) deblocker (driver not attached) obp-tftp (driver not attached) disk-label (driver not attached) SUNW,builtin-drivers (driver not attached) dropins (driver not attached) kbd-translator (driver not attached) ufs-file-system (driver not attached) chosen (driver not attached) openprom (driver not attached) client-services (driver not attached) options, instance #0 System properties: name='ttymodes' type=byte items=36 value=00.00.25.02.00.00.18.05.00.00.00.bd.00.00.8a.3b.03.1c.7f.15.04.00.00.00.11.13.1a.19.12.0f.17.16.00.00.00.00 name='class' type=string items=1 value='root' aliases (driver not attached) memory (driver not attached) virtual-memory (driver not attached) pci, instance #0 Driver properties: name='interrupt-priorities' type=int items=6 dev=none value=0000000e.0000000e.0000000e.0000000e.0000000e.0000000e name='virtual-dma' type=int items=2 dev=none value=c0000000.20000000 Register Specifications: Bus Type=0x1fe, Address=0x0, Size=0x10000 Bus Type=0x1fe, Address=0x1000000, Size=0x100 pci, instance #0 Driver properties: name='device_type' type=string items=1 dev=none value='pci' Hardware properties: name='latency-timer' type=int items=1 value=00000040 name='cache-line-size' type=int items=1 value=00000010 ebus, instance #0 Driver properties: name='no-dma-interrupt-sync' type=boolean dev=none Hardware properties: name='latency-timer' type=int items=1 value=00000050 name='cache-line-size' type=int items=1 value=00000010 flashprom (driver not attached) eeprom (driver not attached) idprom (driver not attached) SUNW,lomh (driver not attached) pmu (driver not attached) i2c (driver not attached) temperature (driver not attached) dimm (driver not attached) dimm (driver not attached) i2c-nvram (driver not attached) idprom (driver not attached) motherboard-fru (driver not attached) fan-control (driver not attached) lomp (driver not attached) isa, instance #1 Driver properties: name='no-dma-interrupt-sync' type=boolean dev=none power, instance #0 serial, instance #0 serial, instance #1 network, instance #0 Hardware properties: name='latency-timer' type=int items=1 value=00000050 name='cache-line-size' type=int items=1 value=00000010 usb, instance #0 System software properties: name='ddi-forceattach' type=int items=1 value=00000001 Driver properties: name='pm-want-child-notification?' type=boolean dev=none Hardware properties: name='root-hub' type=boolean name='latency-timer' type=int items=1 value=00000050 name='cache-line-size' type=int items=1 value=00000010 ide, instance #0 Driver properties: name='pm-components' type=string items=3 dev=none value='NAME=ide-controller' + '0=Device D3 State' + '3=Device D0 State' Hardware properties: name='latency-timer' type=int items=1 value=00000010 disk (driver not attached) cdrom (driver not attached) network, instance #1 Hardware properties: name='latency-timer' type=int items=1 value=00000050 name='cache-line-size' type=int items=1 value=00000010 usb, instance #1 System software properties: name='ddi-forceattach' type=int items=1 value=00000001 Driver properties: name='pm-want-child-notification?' type=boolean dev=none Hardware properties: name='root-hub' type=boolean name='latency-timer' type=int items=1 value=00000050 name='cache-line-size' type=int items=1 value=00000010 pci, instance #1 Driver properties: name='device_type' type=string items=1 dev=none value='pci' Hardware properties: name='latency-timer' type=int items=1 value=00000040 name='cache-line-size' type=int items=1 value=00000010 scsi, instance #0 Driver properties: name='target1-TQ' type=int items=1 dev=none value=00000001 name='target1-wide' type=int items=1 dev=none value=00000001 name='target1-sync-speed' type=int items=1 dev=none value=00013880 name='target0-TQ' type=int items=1 dev=none value=00000001 name='target0-wide' type=int items=1 dev=none value=00000001 name='target0-sync-speed' type=int items=1 dev=none value=00013880 name='pm-components' type=string items=4 dev=none value='NAME=glm0' + '0=Off (PCI D3 State)' + '1=Coma(PCI D2 State)' + '3=On (PCI D0 State)' name='scsi-selection-timeout' type=int items=1 dev=(50,0) value=000000fa name='scsi-options' type=int items=1 dev=(50,0) value=00107ff8 name='scsi-watchdog-tick' type=int items=1 dev=(50,0) value=0000000a name='scsi-tag-age-limit' type=int items=1 dev=(50,0) value=00000002 name='scsi-reset-delay' type=int items=1 dev=(50,0) value=00000bb8 Hardware properties: name='latency-timer' type=int items=1 value=00000088 name='cache-line-size' type=int items=1 value=00000010 disk (driver not attached) tape (driver not attached) sd, instance #0 System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000000 name='class_prop' type=string items=1 value='atapi' name='class' type=string items=1 value='scsi' Driver properties: name='pm-components' type=string items=3 dev=none value='NAME=spindle-motor' + '0=off' + '1=on' name='pm-hardware-state' type=string items=1 dev=none value='needs-suspend-resume' name='ddi-failfast-supported' type=boolean dev=none name='ddi-kernel-ioctl' type=boolean dev=none Hardware properties: name='devid' type=string items=1 value='id1,sd@w500186200330e530' name='inquiry-revision-id' type=string items=1 value='0491' name='inquiry-product-id' type=string items=1 value='ST314655LSUN146G' name='inquiry-vendor-id' type=string items=1 value='SEAGATE' name='inquiry-device-type' type=int items=1 value=00000000 sd, instance #1 System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000001 name='class_prop' type=string items=1 value='atapi' name='class' type=string items=1 value='scsi' Driver properties: name='pm-components' type=string items=3 dev=none value='NAME=spindle-motor' + '0=off' + '1=on' name='pm-hardware-state' type=string items=1 dev=none value='needs-suspend-resume' name='ddi-failfast-supported' type=boolean dev=none name='ddi-kernel-ioctl' type=boolean dev=none Hardware properties: name='devid' type=string items=1 value='id1,sd@SFUJITSU_MAP3367N_SUN36G_00N012K1____' name='inquiry-revision-id' type=string items=1 value='0301' name='inquiry-product-id' type=string items=1 value='MAP3367N SUN36G' name='inquiry-vendor-id' type=string items=1 value='FUJITSU' name='inquiry-device-type' type=int items=1 value=00000000 sd, instance #2 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000002 name='class_prop' type=string items=1 value='atapi' name='class' type=string items=1 value='scsi' sd, instance #3 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000003 name='class_prop' type=string items=1 value='atapi' name='class' type=string items=1 value='scsi' sd, instance #4 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000004 name='class' type=string items=1 value='scsi' sd, instance #5 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000005 name='class' type=string items=1 value='scsi' sd, instance #6 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000006 name='class' type=string items=1 value='scsi' sd, instance #7 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000008 name='class' type=string items=1 value='scsi' sd, instance #8 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000009 name='class' type=string items=1 value='scsi' sd, instance #9 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=0000000a name='class' type=string items=1 value='scsi' sd, instance #10 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=0000000b name='class' type=string items=1 value='scsi' sd, instance #11 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=0000000c name='class' type=string items=1 value='scsi' sd, instance #12 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=0000000d name='class' type=string items=1 value='scsi' sd, instance #13 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=0000000e name='class' type=string items=1 value='scsi' sd, instance #14 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=0000000f name='class' type=string items=1 value='scsi' scsi, instance #1 Driver properties: name='pm-components' type=string items=4 dev=none value='NAME=glm1' + '0=Off (PCI D3 State)' + '1=Coma(PCI D2 State)' + '3=On (PCI D0 State)' name='scsi-selection-timeout' type=int items=1 dev=(50,0) value=000000fa name='scsi-options' type=int items=1 dev=(50,0) value=00107ff8 name='scsi-watchdog-tick' type=int items=1 dev=(50,0) value=0000000a name='scsi-tag-age-limit' type=int items=1 dev=(50,0) value=00000002 name='scsi-reset-delay' type=int items=1 dev=(50,0) value=00000bb8 Hardware properties: name='latency-timer' type=int items=1 value=00000088 name='cache-line-size' type=int items=1 value=00000010 disk (driver not attached) tape (driver not attached) sd, instance #15 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000000 name='class_prop' type=string items=1 value='atapi' name='class' type=string items=1 value='scsi' sd, instance #16 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000001 name='class_prop' type=string items=1 value='atapi' name='class' type=string items=1 value='scsi' sd, instance #17 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000002 name='class_prop' type=string items=1 value='atapi' name='class' type=string items=1 value='scsi' sd, instance #18 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000003 name='class_prop' type=string items=1 value='atapi' name='class' type=string items=1 value='scsi' sd, instance #19 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000004 name='class' type=string items=1 value='scsi' sd, instance #20 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000005 name='class' type=string items=1 value='scsi' sd, instance #21 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000006 name='class' type=string items=1 value='scsi' sd, instance #22 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000008 name='class' type=string items=1 value='scsi' sd, instance #23 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=00000009 name='class' type=string items=1 value='scsi' sd, instance #24 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=0000000a name='class' type=string items=1 value='scsi' sd, instance #25 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=0000000b name='class' type=string items=1 value='scsi' sd, instance #26 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=0000000c name='class' type=string items=1 value='scsi' sd, instance #27 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=0000000d name='class' type=string items=1 value='scsi' sd, instance #28 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=0000000e name='class' type=string items=1 value='scsi' sd, instance #29 (driver not attached) System properties: name='lun' type=int items=1 value=00000000 name='target' type=int items=1 value=0000000f name='class' type=string items=1 value='scsi' pci (driver not attached) pci108e,1000 (driver not attached) SUNW,qfe (driver not attached) pci108e,1000 (driver not attached) SUNW,qfe (driver not attached) pci108e,1000 (driver not attached) SUNW,qfe (driver not attached) pci108e,1000 (driver not attached) SUNW,qfe (driver not attached) SUNW,UltraSPARC-IIe (driver not attached) pseudo, instance #0 System properties: name='class' type=string items=1 value='root' root@test-box02#
hello