1LSHW(1) LSHW(1)
2
3
4
6 lshw - list hardware
7
9 lshw [ -version ]
10
11
12 lshw [ -help ]
13
14
15 lshw [ -X ]
16
17
18 lshw [ -html | -short | -xml | -businfo ] [ -class class ... ] [ -dis‐
19 able test ... ] [ -enable test ... ] [ -quiet ]
20
21
23 lshw is a small tool to extract detailed information on the hardware
24 configuration of the machine. It can report exact memory configuration,
25 firmware version, mainboard configuration, CPU version and speed, cache
26 configuration, bus speed, etc. on DMI-capable x86 or IA-64 systems and
27 on some PowerPC machines (PowerMac G4 is known to work).
28
29 It currently supports DMI (x86 and IA-64 only), OpenFirmware device
30 tree (PowerPC only), PCI/AGP, CPUID (x86), IDE/ATA/ATAPI, PCMCIA (only
31 tested on x86), SCSI and USB.
32
33 -version
34 Displays the version of lshw and exits.
35
36 -help Displays the available command line options and quits.
37
38 -X Launch the X11 GUI (if available).
39
40 -html Outputs the device tree as an HTML page.
41
42 -xml Outputs the device tree as an XML tree.
43
44 -short Outputs the device tree showing hardware paths, very much like
45 the output of HP-UX's ioscan.
46
47 -businfo
48 Outputs the device list showing bus information, detailing SCSI,
49 USB, IDE and PCI addresses.
50
51 -class class
52 Only show the given class of hardware. class can be found using
53 lshw -short or lshw -businfo.
54
55 -C class
56 Alias for -class class.
57
58 -enable test
59
60 -disable test
61 Enables or disables a test. test can be dmi (for DMI/SMBIOS
62 extensions), device-tree (for OpenFirmware device tree), spd
63 (for memory Serial Presence Detect), memory (for memory-size
64 guessing heuristics), cpuinfo (for kernel-reported CPU detec‐
65 tion), cpuid (for CPU detection), pci (for PCI/AGP access),
66 isapnp (for ISA PnP extensions), pcmcia (for PCMCIA/PCCARD), ide
67 (for IDE/ATAPI), usb (for USB devices),scsi (for SCSI) or net‐
68 work (for network interfaces detection).
69
70 -quiet Don't display status.
71
73 lshw currently does not detect Firewire(IEEE1394) devices.
74
75 Not all architectures supported by GNU/Linux are fully supported (e.g.
76 CPU detection).
77
78 "Virtual" SCSI interfaces used for SCSI emulation over IDE are not
79 reported correctly yet.
80
82 lshw must be run as super user or it will only report partial informa‐
83 tion.
84
86 /usr/local/share/pci.ids
87
88 /usr/share/pci.ids
89
90 /etc/pci.ids
91
92 /usr/share/hwdata/pci.ids
93 A list of all known PCI ID's (vendors, devices, classes and
94 subclasses).
95
96 /proc/bus/pci/*
97 Used to access the configuration of installed PCI busses and
98 devices.
99
100 /proc/ide/*
101 Used to access the configuration of installed IDE busses and
102 devices.
103
104 /proc/scsi/*, /dev/sg*
105 Used to access the configuration of installed SCSI devices.
106
107 /dev/cpu/*/cpuid
108 Used on x86 platforms to access CPU-specific configuration.
109
110 /proc/device-tree/*
111 Used on PowerPC platforms to access OpenFirmware configuration.
112
113 /proc/bus/usb/*
114 Used to access the configuration of installed USB busses and
115 devices.
116
117 /sys/* Used on 2.6 kernels to access hardware/driver configuration
118 information.
119
121 lshw -short
122 Lists hardware in a compact format.
123
124 lshw -class disk -class storage
125 Lists all disks and storage controllers in the system.
126
127 lshw -html -class network
128 Lists all network interfaces in HTML.
129
130 lshw -disable dmi
131 Don't use DMI to detect hardware.
132
134 /proc/*, linuxinfo(1), lspci(8), lsusb(8)
135
137 lshw is distributed under the GNU GENERAL PUBLIC LICENSE (GPL) version
138 2.
139
141 lshw is maintained by Lyonel Vincent <lyonel@ezix.org>.
142
144 The webpage for lshw is at
145 <URL:http://ezix.org/software/lshw.html>
146
147
148
149$Rev: 1723 $ 13 February 2007 LSHW(1)