View hardware information in linux

Source: Internet
Author: User
I. CPU-related 1 CPU hardware information [@ 125opt] catproccpuinfoprocessor: 0vendor_id: GenuineIntelcpufamily: 6 model: 45mod I. CPU-related
1. CPU hardware information
[@ 125 opt] # cat/proc/cpuinfo
Processor: 0
Vendor_id: GenuineIntel
Cpu family: 6
Model: 45
Model name: Intel (R) Xeon (R) CPU E5-2650 0 @ 2.00 GHz
Stepping: 7
Cpu MHz: 2000.062
Cache size: 20480 KB
Physical id: 0
Siblings: 16
Core id: 0
Cpu cores: 8
Apicid: 0
Fpu: yes
Fpu_exception: yes
Cpuid level: 13
Wp: yes
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc
Ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm
Bogomips: 4000.12
Clflush size: 64
Cache_alignment: 64
Address sizes: 46 bits physical, 48 bits virtual
Power management: [8]


II. memory-related
1. memory hardware information
[@ 125 opt] # cat/proc/meminfo
MemTotal: 32915200 kB
MemFree: 10768212 kB
Buffers': 318444 kB
Cached: 19147620 kB
SwapCached: 368 kB
Active: 2555992 kB
Inactive: 18833328 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 32915200 kB
LowFree: 10768212 kB
SwapTotal: 8385920 kB
SwapFree: 8385552 kB
Dirty: 7860 kB
Writeback: 0 kB
AnonPages: 1923272 kB
Mapped: 23200 kB
Slab: 703024 kB
PageTables: 8896 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 24843520 kB
Committed_AS: 2439540 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 271820 kB
VmallocChunk: 34359464951 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
Hugepagesize: 2048 kB

2. free memory usage
[@ 125 opt] # free
Total used free shared buffers cached
Mem: 32915200 3673460 29241740 0 256348 888828
-/+ Buffers/cache: 2528284 30386916
Swap: 8385920 0 8385920

III. hard disk problems
[@ Ltv_125 opt] # df-h-T
Filesystem Type Size Used Avail Use % Mounted on
/Dev/sda1 ext3 3.9G 542 M 3.2G 15%/
/Dev/sda6 ext3 791G 20G 730G 3%/opt
/Dev/sda3 ext3 3.9G 651 M 3.1G 18%/var
/Dev/sda5 ext3 4.9G 2.2G 2.5G 47%/usr
Tmpfs 16G 40 K 16G 1%/dev/shm


4. View startup messages
[@ Ltv_125 rec_multiudp_to_file] # dmesg
Linux version 2.6.18-274. el5 (gcc version 4.1.2 20080704 (Red Hat 4.1.2-51) #1 SMP Fri Jul 8 17:36:59 EDT 2011
Command line: ro root = LABEL =/
BIOS-provided physical RAM map:
BIOS-e820: 0000000000010000-000000000009c000 (usable)
BIOS-e820: 0000000000100000-00000000cd2f0000 (usable)
BIOS-e820: 201710000cd2f0000-201710000cd31c000 (reserved)
BIOS-e820: commandid cd31c000-commandid cd35b000 (ACPI data)
BIOS-e820: commandid cd35b000-commandid d0000000 (reserved)
BIOS-e820: too many e0000000-too many f0000000 (reserved)
BIOS-e820: 201710000fe000000-0000000100000000 (reserved)
BIOS-e820: 0000000100000000-0000000830000000 (usable)

V. CHIP information
1. $ lspci-v


2. $ dmidecode
Dmidecode allows you to obtain hardware information in Linux.
Dmidecode complies with the SMBIOS/DMI standard. the output information includes BIOS, system, Motherboard, processor, memory, cache, and so on.

Usage: dmidecode [OPTIONS]
Options are:
-D, -- dev-mem FILE Read memory from device FILE (default:/dev/mem)
Reads information from a device file. the output content is the same as the standard output without parameters.

-H, -- help Display this help text and exit
Show Help information

-Q, -- quiet Less verbose output
Show less simplified information

-S, -- string KEYWORD Only display the value of the given DMI string
Only information of the specified DMI string is displayed.

-T, -- type TYPE Only display the entries of given type
Display only the information of a specified entry

-U, -- dump Do not decode the entries
Display undecoded original entry content
-- Dump-bin FILE Dump the DMI data to a binary file
-- From-dump FILE Read the DMI data from a binary file
-V, -- version Display the version and exit

? Show version information
2.1 dmidecode string and type list
(1) Valid string keywords are:
Bios-vendor
Bios-version
Bios-release-date
System-manufacturer
System-product-name
System-version
System-serial-number
System-uuid
Baseboard-manufacturer
Baseboard-product-name
Baseboard-version
Baseboard-serial-number
Baseboard-asset-tag
Chassis-manufacturer
Chassis-type
Chassis-version
Chassis-serial-number
Chassis-asset-tag
Processor-family
Processor-manufacturer
Processor-version
Processor-frequency
(2) Valid type keywords are:
Bios
System
Baseboard
Chassis
Processor
Memory
Cache
Connector
Slot
(3) list of all types
0 BIOS
1 System
2 Base Board
3. Chassis
4 Processor
5 Memory Controller
6 Memory Module
7 Cache
8 Port Connector
9 System Slots
10 On Board Devices
11 OEM Strings
12 System Configuration Options
13. BIOS Language
14 Group Associations
15 System Event Log
16 Physical Memory Array
17 Memory Device
18 32-bit Memory Error
19 Memory Array Mapped Address
20 Memory Device Mapped Address
21 Built-in Pointing Device
22 Portable Battery
23 System Reset
24 Hardware Security
25 System Power Controls
26 Voltage Probe
27 Cooling Device
28 Temperature Probe
29 Electrical Current Probe
30 Out-of-band Remote Access
31 Boot Integrity Services
32 System Boot
33 64-bit Memory Error
34 Management Device
35 Management Device Component
36 Management Device Threshold Data
37 Memory Channel
38 IPMI Device
39 Power Supply
40 Additional Information
41 Onboard Device


2.2 Command usage example
View Server model: dmidecode | grep 'product name'
View the Serial Number of the motherboard: dmidecode | grep 'serial number'
View the system serial number: dmidecode-s system-serial-number
View memory information: dmidecode-t memory
View OEM information: dmidecode-t 11

For more usage of Dmidecode, you can specify the-h option to query
Running dmidecode without option usually outputs all hardware information.

Dmidecode has a very useful option-t, which can output relevant information according to the specified type,
To obtain information about the processor,
You can execute:
$ Dmidecode-t processor
Related Article

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.