0% found this document useful (0 votes)
61 views

September 1, 2007: Retrieving Hardware Information

This document provides commands that can be used to retrieve hardware information on a Linux system. It lists the dmidecode command, which reads information from the BIOS, and other commands like dmesg, lsdev, and lspci that display installed hardware components. It also notes that with a 2.6 kernel or newer, detailed hardware information for devices can be found under the /sys directory.

Uploaded by

arunabhatla
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views

September 1, 2007: Retrieving Hardware Information

This document provides commands that can be used to retrieve hardware information on a Linux system. It lists the dmidecode command, which reads information from the BIOS, and other commands like dmesg, lsdev, and lspci that display installed hardware components. It also notes that with a 2.6 kernel or newer, detailed hardware information for devices can be found under the /sys directory.

Uploaded by

arunabhatla
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

September 1, 2007

Retrieving Hardware Information


To retrieve information on systems hardware like vendor, manufacturer, product, S/N, etc. the following command can be used:
dmidecode

The dmidecode command reads the information from the system BIOS, see also http://www.nongnu.org/dmidecode/. There are a few other commands you might want to check out which list installed hardware components:
dmesg lsdev lshal lspci lsusb lsscsi

Beginning with the 2.6 kernel you can get lots of information from /sys. For example, to get information on an Emulex HBA:
# ls /sys/class/scsi_host/host1/ board_mode lpfc_cr_delay board_online lpfc_drvr_version cmd_per_lun lpfc_fcp_class ctlreg lpfc_fdmi_on device lpfc_hba_queue_depth fwrev lpfc_link_speed hdw lpfc_log_verbose host_busy lpfc_lun_queue_depth info lpfc_max_luns lpfc_ack0 lpfc_multi_ring_support lpfc_cr_count lpfc_nodev_tmo # lpfc_poll lpfc_poll_tmo lpfc_scan_down lpfc_topology lpfc_use_adisc management_version mbox modeldesc modelname nport_evt_cnt num_discovered_ports option_rom_version portnum proc_name programtype scan serialnum sg_tablesize state uevent unchecked_isa_dma unique_id

Filed under: Linux, General werner @ 8:58 pm Comments (0)

You might also like