| 关键词: Dmidecode 信息 00000000 memory BIOS System 输出 内存 Type file |
一、 CPU相关1. CPU的硬件信息[@125 opt]# cat /proc/cpuinfoprocessor : 0vendor_id : GenuineIntelcpu family : 6model : 45model name : Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHzstepping : 7cpu MHz : 2000.062cache size : 20480 KBphysical id : 0siblings : 16core id : 0cpu cores : 8apicid : 0fpu : yesfpu_exception : yescpuid level : 13wp : yesflags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tscida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lmbogomips : 4000.12clflush size : 64cache_alignment : 64address sizes : 46 bits physical, 48 bits virtualpower management: [8]二、 内存相关1. 内存硬件信息[@125 opt]# cat /proc/meminfoMemTotal: 32915200 kBMemFree: 10768212 kBBuffers: 318444 kBCached: 19147620 kBSwapCached: 368 kBActive: 2555992 kBInactive: 18833328 kBHighTotal: 0 kBHighFree: 0 kBLowTotal: 32915200 kBLowFree: 10768212 kBSwapTotal: 8385920 kBSwapFree: 8385552 kBDirty: 7860 kBWriteback: 0 kBAnonPages: 1923272 kBMapped: 23200 kBSlab: 703024 kBPageTables: 8896 kBNFS_Unstable: 0 kBBounce: 0 kBCommitLimit: 24843520 kBCommitted_AS: 2439540 kBVmallocTotal: 34359738367 kBVmallocUsed: 271820 kBVmallocChunk: 34359464951 kBHugePages_Total: 0HugePages_Free: 0HugePages_Rsvd: 0Hugepagesize: 2048 kB2. 内存使用情况 free[@125 opt]# freetotal used free shared buffers cachedMem: 32915200 3673460 29241740 0 256348 888828-/+ buffers/cache: 2528284 30386916Swap: 8385920 0 8385920三、 硬盘相关[@ltv_125 opt]# df -h -TFilesystem Type Size Used Avail Use% Mounted on/dev/sda1 ext3 3.9G 542M 3.2G 15% //dev/sda6 ext3 791G 20G 730G 3% /opt/dev/sda3 ext3 3.9G 651M 3.1G 18% /var/dev/sda5 ext3 4.9G 2.2G 2.5G 47% /usrtmpfs tmpfs 16G 40K 16G 1% /dev/shm四、查看开机启动消息[@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 2011Command line: ro root=LABEL=/BIOS-provided physical RAM map:BIOS-e820: 0000000000010000 - 000000000009c000 (usable)BIOS-e820: 0000000000100000 - 00000000cd2f0000 (usable)BIOS-e820: 00000000cd2f0000 - 00000000cd31c000 (reserved)BIOS-e820: 00000000cd31c000 - 00000000cd35b000 (ACPI data)BIOS-e820: 00000000cd35b000 - 00000000d0000000 (reserved)BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)BIOS-e820: 00000000fe000000 - 0000000100000000 (reserved)BIOS-e820: 0000000100000000 - 0000000830000000 (usable)五、芯片信息1. $ lspci -v2. $ dmidecodeDmidecode 这款软件允许你在 Linux 系统下获取有关硬件方面的信息。Dmidecode 遵循 SMBIOS/DMI 标准,其输出的信息包括 BIOS、系统、主板、处理器、内存、缓存等等Usage: dmidecode [OPTIONS]Options are:-d, --dev-mem FILE Read memory from device FILE (default: /dev/mem)从设备文件读信息,输出内容与不加参数标准输出相同-h, --help Display this help text and exit显示帮助信息-q, --quiet Less verbose output显示更少的简化信息-s, --string KEYWORD Only display the value of the given DMI string只显示指定DMI字符串的信息-t, --type TYPE Only display the entries of given type只显示指定条目的信息-u, --dump Do not decode the entries显示未解码的原始条目内容--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?显示版本信息2.1 dmidecode参数string及type列表(1)Valid string keywords are:bios-vendorbios-versionbios-release-datesystem-manufacturersystem-product-namesystem-versionsystem-serial-numbersystem-uuidbaseboard-manufacturerbaseboard-product-namebaseboard-versionbaseboard-serial-numberbaseboard-asset-tagchassis-manufacturerchassis-typechassis-versionchassis-serial-numberchassis-asset-tagprocessor-familyprocessor-manufacturerprocessor-versionprocessor-frequency(2)Valid type keywords are:biossystembaseboardchassisprocessormemoryCacheconnectorslot(3)type全部编码列表0 BIOS1 System2 Base Board3 Chassis4 Processor5 Memory Controller6 Memory Module7 Cache8 Port Connector9 System Slots10 On Board Devices11 OEM Strings12 System Configuration Options13 BIOS Language14 Group Associations15 System Event Log16 Physical Memory Array17 Memory Device18 32-bit Memory Error19 Memory Array Mapped Address20 Memory Device Mapped Address21 Built-in Pointing Device22 Portable Battery23 System Reset24 Hardware Security25 System Power Controls26 Voltage Probe27 Cooling Device28 Temperature Probe29 Electrical Current Probe30 Out-of-band Remote Access31 Boot Integrity Services32 System Boot33 64-bit Memory Error34 Management Device35 Management Device Component36 Management Device Threshold Data37 Memory Channel38 IPMI Device39 Power Supply40 Additional Information41 Onboard Device2.2 命令用法示例查看服务器型号:dmidecode | grep 'Product Name'查看主板的序列号:dmidecode |grep 'Serial Number'查看系统序列号:dmidecode -s system-serial-number查看内存信息:dmidecode -t memory查看OEM信息:dmidecode -t 11关于 Dmidecode 的更多用法,你可以通过指定 -h 选项查询不带选项执行 dmidecode 通常会输出所有的硬件信息。Dmidecode 有个很有用的选项 -t,可以按指定类型输出相关信息,假如要获得处理器方面的信息,则可以执行:$ dmidecode -t processor |
|
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系
[邮箱地址] 删除
|