1LSHW(1)                                                                LSHW(1)
2
3
4

NAME

6       lshw - list hardware
7

SYNOPSIS

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

DESCRIPTION

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              Dump collected information into a file (SQLite database).
53
54       -class class
55              Only show the given class of hardware. class can be found  using
56              lshw -short or lshw -businfo.
57
58       -C class
59              Alias for -class class.
60
61       -enable test
62
63       -disable test
64              Enables  or  disables  a  test.  test can be dmi (for DMI/SMBIOS
65              extensions), device-tree (for  OpenFirmware  device  tree),  spd
66              (for  memory  Serial  Presence  Detect), memory (for memory-size
67              guessing heuristics), cpuinfo (for  kernel-reported  CPU  detec‐
68              tion),  cpuid  (for  CPU  detection),  pci (for PCI/AGP access),
69              isapnp (for ISA PnP extensions), pcmcia (for PCMCIA/PCCARD), ide
70              (for  IDE/ATAPI),  usb (for USB devices),scsi (for SCSI) or net‐
71              work (for network interfaces detection).
72
73       -quiet Don't display status.
74
75       -sanitize
76              Remove  potentially  sensitive  information  from   output   (IP
77              addresses, serial numbers, etc.).
78
79       -numeric
80              Also display numeric IDs (for PCI and USB devices).
81

BUGS

83       lshw currently does not detect Firewire(IEEE1394) devices.
84
85       Not  all architectures supported by GNU/Linux are fully supported (e.g.
86       CPU detection).
87
88       "Virtual" SCSI interfaces used for SCSI  emulation  over  IDE  are  not
89       reported correctly yet.
90

NOTES

92       lshw  must be run as super user or it will only report partial informa‐
93       tion.
94

FILES

96       /usr/local/share/pci.ids
97
98       /usr/share/pci.ids
99
100       /etc/pci.ids
101
102       /usr/share/hwdata/pci.ids
103              A list of all known PCI ID's (vendors, devices, classes and sub‐
104              classes).   If  compiled  with  zlib support, lshw will look for
105              pci.ids.gz first, then for pci.ids.
106
107       /proc/bus/pci/*
108              Used to access the configuration  of  installed  PCI  buses  and
109              devices.
110
111       /proc/ide/*
112              Used  to  access  the  configuration  of installed IDE buses and
113              devices.
114
115       /proc/scsi/*, /dev/sg*
116              Used to access the configuration of installed SCSI devices.
117
118       /dev/cpu/*/cpuid
119              Used on x86 platforms to access CPU-specific configuration.
120
121       /proc/device-tree/*
122              Used on PowerPC platforms to access OpenFirmware configuration.
123
124       /proc/bus/usb/*
125              Used to access the configuration  of  installed  USB  buses  and
126              devices.
127
128       /sys/* Used  on  2.6  kernels  to  access hardware/driver configuration
129              information.
130

EXAMPLES

132       lshw -short
133              Lists hardware in a compact format.
134
135       lshw -class disk -class storage
136              Lists all disks and storage controllers in the system.
137
138       lshw -html -class network
139              Lists all network interfaces in HTML.
140
141       lshw -disable dmi
142              Don't use DMI to detect hardware.
143

SEE ALSO

145       /proc/*, linuxinfo(1), lspci(8), lsusb(8)
146

COPYING

148       lshw is distributed under the GNU GENERAL PUBLIC LICENSE (GPL)  version
149       2.
150

AUTHOR

152       lshw is maintained by Lyonel Vincent <lyonel@ezix.org>.
153

OTHER INFO

155       The webpage for lshw is at
156        <URL:http://lshw.ezix.org/>
157
158
159
160$Rev$                           28 January 2018                        LSHW(1)
Impressum