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).
105
106       /proc/bus/pci/*
107              Used  to  access  the  configuration of installed PCI busses and
108              devices.
109
110       /proc/ide/*
111              Used to access the configuration of  installed  IDE  busses  and
112              devices.
113
114       /proc/scsi/*, /dev/sg*
115              Used to access the configuration of installed SCSI devices.
116
117       /dev/cpu/*/cpuid
118              Used on x86 platforms to access CPU-specific configuration.
119
120       /proc/device-tree/*
121              Used on PowerPC platforms to access OpenFirmware configuration.
122
123       /proc/bus/usb/*
124              Used  to  access  the  configuration of installed USB busses and
125              devices.
126
127       /sys/* Used on 2.6  kernels  to  access  hardware/driver  configuration
128              information.
129

EXAMPLES

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

SEE ALSO

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

COPYING

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

AUTHOR

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

OTHER INFO

154       The webpage for lshw is at
155        <URL:http://lshw.org/>
156
157
158
159$Rev: 2179 $                      30 May 2010                          LSHW(1)
Impressum