Linux Hardware Information acquisition

Source: Internet
Author: User
Tags uuid

Dmidecode: Introduction: The Dmidecode command obtains hardware information and outputs it by reading the DMI database. Because DMI information can be artificially modified, so the information inside is not necessarily the system accurate information Dmidecode follow the SMBIOS/DMI standard, its output information including BIOS, system, motherboard, processor, memory, cache and so on DMI: (The following content from Baidu Encyclopedia) DM I is a management system that assists in the collection of computer system information, and the collection of DMI information must be carried out in strict compliance with the SMBIOS specification Smbios is a unified specification that the motherboard or system manufacturer should follow to display product management information in a standard format Smbios and DMI are by the industry guidance Body Desktop Management Task Force (DMTF) drafted an open technical standard in which DMI is designed for any platform and operating system DMI acts as the interface between the management tool and the system layer. It establishes a standard manageable system that makes it easier for computer vendors and users to understand the system the main component of DMI is the management Information Format (MIF) database. This database includes all information about computer systems and accessories through DMI, users can obtain serial numbers, computer manufacturers, serial port information and other system accessories information installation: Yum-y install dmidecode use format: DMI decode [Options] [sub-parameters] common options:-H,--help display Help information-Q,--quiet relative to the output of no option less information (dmidecode if you do not add                The option defaults to output all information)-V,--version output version number-T,--type type displays the content sub-parameters related to the specified type: BIOS display and BIOS information about the system display and systems information baseboard display and the motherboard has             Information on chassis   Processor display and processor-related information memory display and RAM-related information cache display and hold            Information about connector slot display and slot information-S,--string KEYWORD displays the specified content                Sub-parameter: Bios-vendor display BIOS Vendor bios-version display BIOS version                Bios-release-date Display BIOS production date system-manufacturer get server manufacturer            System-product-name get the server product name System-version System-serial-number Get server serial number System-uuid get server UUID baseboard-manufacturer get motherboard health                Manufacturer Baseboard-product-name Get motherboard product name Baseboard-version Get Motherboard version Baseboard-serial-number get the motherboard serial number Baseboard-asset-tag get the motherboard label Chassi          S-manufacturer      Chassis-type chassis-version Chassis-serial-number Chassis-asset-tag                Processor-family Get processor model Processor-manufacturer get processor manufacturer Processor-version Get processor details processor-frequency Get Processor Frequency Example: Dmidecod                                      E-s system-manufacturer #获取服务器厂家 dmidecode-s system-product-name        #获取服务器类型 dmidecode-s System-serial-number #获取服务器sn号 Dmidecode-s System-uuid #获取服务器uuid Dmidecode | Grep-p-a5 "Memory\s+device" |grep size|grep-v Range #查看内存插槽数 Dmidecode | Grep-p ' maximum\s+capacity ' #查看主板支持的最大内存容量获取内存信息: command: Free read files:/proc/meminfo,/proc/swa PS Get CPU Information: command: lscpu Read file:/proc/cpuinfo Get Hard disk information: Get basic information: fdisk, parted,Blkid, lsblk get more information: hdparm, Smartctl get System Version information: command: lsb_release Read file: CentOS series:/etc/redhat-release /etc/centos-release/etc/system-release Debian series:/etc/debian_version Fedor          A series:/etc/fedora-release get Kernel version information command: UNAME-R get host name command: hostname get NIC information: command: Ifconfig, IP other: lshw Display hardware information table, output as HTML or XML format hwinfo query hardware information LSPPCI lists information about the PCI bus and device information connected to the PCI bus LSSCSI list SCSI device information

Linux Hardware Information acquisition

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.