1LSHW(1) LSHW(1)
2
3
4
6 lshw - list hardware
7
9 lshw [ -version ]
10
11 lshw [ -help ]
12
13 lshw [ -X ]
14
15 lshw [ [ -html ] [ -short ] [ -xml ] [ -json ] [ -businfo ] ] [
16 -dump filename ] [ -class class... ] [ -disable test... ] [ -enable
17 test... ] [ -sanitize ] [ -numeric ] [ -quiet ]
18
20 lshw is a small tool to extract detailed information on the hardware
21 configuration of the machine. It can report exact memory configuration,
22 firmware version, mainboard configuration, CPU version and speed, cache
23 configuration, bus speed, etc. on DMI-capable x86 or IA-64 systems and
24 on some PowerPC machines (PowerMac G4 is known to work).
25
26 It currently supports DMI (x86 and IA-64 only), OpenFirmware device
27 tree (PowerPC only), PCI/AGP, CPUID (x86), IDE/ATA/ATAPI, PCMCIA (only
28 tested on x86), SCSI and USB.
29
30 -version
31 Displays the version of lshw and exits.
32
33 -help Displays the available command line options and quits.
34
35 -X Launch the X11 GUI (if available).
36
37 -html Outputs the device tree as an HTML page.
38
39 -xml Outputs the device tree as an XML tree.
40
41 -json Outputs the device tree as a JSON object (JavaScript Object
42 Notation).
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 -dump filename
52 Display output and dump collected information into a file
53 (SQLite database).
54
55 -class class
56 Only show the given class of hardware. class can be found using
57 lshw -short or lshw -businfo.
58
59 -C class
60 Alias for -class class.
61
62 -enable test
63
64 -disable test
65 Enables or disables a test. test can be dmi (for DMI/SMBIOS
66 extensions), device-tree (for OpenFirmware device tree), spd
67 (for memory Serial Presence Detect), memory (for memory-size
68 guessing heuristics), cpuinfo (for kernel-reported CPU detec‐
69 tion), cpuid (for CPU detection), pci (for PCI/AGP access),
70 isapnp (for ISA PnP extensions), pcmcia (for PCMCIA/PCCARD), ide
71 (for IDE/ATAPI), usb (for USB devices),scsi (for SCSI) or net‐
72 work (for network interfaces detection).
73
74 -quiet Don't display status.
75
76 -sanitize
77 Remove potentially sensitive information from output (IP
78 addresses, serial numbers, etc.).
79
80 -numeric
81 Also display numeric IDs (for PCI and USB devices).
82
84 lshw currently does not detect Firewire(IEEE1394) devices.
85
86 Not all architectures supported by GNU/Linux are fully supported (e.g.
87 CPU detection).
88
89 "Virtual" SCSI interfaces used for SCSI emulation over IDE are not
90 reported correctly yet.
91
93 lshw must be run as super user or it will only report partial informa‐
94 tion.
95
97 /usr/local/share/pci.ids
98
99 /usr/share/pci.ids
100
101 /etc/pci.ids
102
103 /usr/share/hwdata/pci.ids
104 A list of all known PCI ID's (vendors, devices, classes and sub‐
105 classes). If compiled with zlib support, lshw will look for
106 pci.ids.gz first, then for pci.ids.
107
108 /proc/bus/pci/*
109 Used to access the configuration of installed PCI buses and
110 devices.
111
112 /proc/ide/*
113 Used to access the configuration of installed IDE buses and
114 devices.
115
116 /proc/scsi/*, /dev/sg*
117 Used to access the configuration of installed SCSI devices.
118
119 /dev/cpu/*/cpuid
120 Used on x86 platforms to access CPU-specific configuration.
121
122 /proc/device-tree/*
123 Used on PowerPC platforms to access OpenFirmware configuration.
124
125 /proc/bus/usb/*
126 Used to access the configuration of installed USB buses and
127 devices.
128
129 /sys/* Used on 2.6 kernels to access hardware/driver configuration
130 information.
131
133 lshw -short
134 Lists hardware in a compact format.
135
136 lshw -class disk -class storage
137 Lists all disks and storage controllers in the system.
138
139 lshw -html -class network
140 Lists all network interfaces in HTML.
141
142 lshw -disable dmi
143 Don't use DMI to detect hardware.
144
146 /proc/*, linuxinfo(1), lspci(8), lsusb(8)
147
149 lshw is distributed under the GNU GENERAL PUBLIC LICENSE (GPL) version
150 2.
151
153 lshw is maintained by Lyonel Vincent <lyonel@ezix.org>.
154
156 The webpage for lshw is at
157 <URL:http://lshw.ezix.org/>
158
159
160
161$Rev$ 28 January 2018 LSHW(1)