September 1, 2007: Retrieving Hardware Information
September 1, 2007: Retrieving Hardware Information
September 1, 2007: Retrieving Hardware Information
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