博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux下面获取主机信息
阅读量:2453 次
发布时间:2019-05-10

本文共 4125 字,大约阅读时间需要 13 分钟。

获取内存信息:

tonykorn97:/nsr/logs # dmidecode |grep -A16 "Memory Device$"

Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: DIMM
Set: 1
Locator: DIMM1_A
Bank Locator: Not Specified
Type:
Type Detail: Synchronous
Speed: 400 MHz (2.5 ns)
Handle 0x1101
DMI type 17, 23 bytes.

Memory Device

Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: DIMM
Set: 1
Locator: DIMM1_B
Bank Locator: Not Specified
Type:
Type Detail: Synchronous
Speed: 400 MHz (2.5 ns)
Handle 0x1102
DMI type 17, 23 bytes.
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: DIMM
Set: 2
Locator: DIMM2_A
Bank Locator: Not Specified
Type:
Type Detail: Synchronous
Speed: 400 MHz (2.5 ns)
Handle 0x1103
DMI type 17, 23 bytes.
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: DIMM
Set: 2
Locator: DIMM2_B
Bank Locator: Not Specified
Type:
Type Detail: Synchronous
Speed: 400 MHz (2.5 ns)
Handle 0x1104
DMI type 17, 23 bytes.
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: DIMM
Set: 3
Locator: DIMM3_A
Bank Locator: Not Specified
Type:
Type Detail: Synchronous
Speed: 400 MHz (2.5 ns)
Handle 0x1105
DMI type 17, 23 bytes.
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 1024 MB
Form Factor: DIMM
Set: 3
Locator: DIMM3_B
Bank Locator: Not Specified
Type:
Type Detail: Synchronous
Speed: 400 MHz (2.5 ns)
Handle 0x1300
DMI type 19, 15 bytes.
Memory Array Mapped Address
Starting Address: 0x00000000000
tonykorn97:/nsr/logs #

tonykorn97:/nsr/logs # man dmidecode

Reformatting dmidecode(8), please wait...
DMIDECODE(8) DMIDECODE(8)

NAME

dmidecode - DMI table decoder

SYNOPSIS

dmidecode

DESCRIPTION

dmidecode is a tool for dumping a computer's DMI (some say SMBIOS) table contents in a human-readable format. This table
contains a description of the system's hardware components, as well as other useful pieces of information such as serial
numbers and BIOS revision. Thanks to this table, you can retrieve this information without having to probe for the actual
hardware. While this is a good point in terms of report speed and safeness, this also makes the presented information
possibly unreliable.

The DMI table doesn't only describe what the system is currently made of, it also can report the possible evolutions

(such as the fastest supported CPU or the maximal amount of memory supported).

SMBIOS stands for System Management BIOS, while DMI stands for Desktop Management Interface. Both standards are tightly

related and developed by the DMTF (Desktop Management Task Force).

As you run it, dmidecode will try to locate the DMI table. If it succeeds, it will then parse this table and display a

list of records like this one:

Handle 0x0002

DMI type 2, 8 bytes.
Base Board Information
Manufacturer: Intel
Product Name: C440GX+
Version: 727281-001
Serial Number: INCY92700942

Each record has:

a?… A handle. This is a unique identifier, which allows records to reference each other. For example, processor records

usually reference cache memory records using their handles.

a?… A type. The SMBIOS specification defines different types of elements a computer can be made of. In this example, the

type is 2, which means that the record contains "Base Board Information".

a?… A size. Each record has a 4-byte header (2 for the handle, 1 for the type, 1 for the size), the rest is used by the

record data. This value doesn't take text strings into account (these are placed at the end of the record), so the
actual length of the record may be (and is often) greater than the displayed value.

tonykorn97:/nsr/logs #

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/312079/viewspace-245627/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/312079/viewspace-245627/

你可能感兴趣的文章
css 相同的css属性_CSS属性,内容和L10N
查看>>
js .has_使用has.js进行JavaScript功能检测
查看>>
dojo ajax 传参_使用Dojo动画AJAX记录删除
查看>>
内核标头和开发包_PHP标头和流行的Mime类型
查看>>
preferreds-color-scheme:CSS媒体查询
查看>>
git 获取某个分支_获取Git分支在某个日期签出
查看>>
api.ajax和ajax_实施Google AJAX搜索API
查看>>
apache 下载 速度_使用Apache限制下载速度
查看>>
mootools_带有MooStarRating的MooTools星级
查看>>
cfs_quota_Mobile Safari中的QUOTA_EXCEEDED_ERR
查看>>
mootools_使用MooTools的别名功能
查看>>
wordpress页面_强制登录以查看WordPress博客页面
查看>>
wordpress标签分类_在WordPress中更改类别标签
查看>>
mootools_使用MooTools或jQuery的iPhone单击效果
查看>>
shoelace下载_Shoelace.css:基本CSS入门工具包
查看>>
bit.ly 短地址转换_使用PHP创建Bit.ly短URL:API版本3
查看>>
flext_Flext:MooTools自动增长Textrea插件
查看>>
mootools_书评:MooTools 1.2入门指南
查看>>
创建GitHub Pull Request和Issue模板
查看>>
reddit_使用PHP和JSON获取URL的Reddit分数
查看>>