linux下面獲取主機資訊
獲取記憶體資訊:
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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux: 獲取硬碟的UUID資訊Linux硬碟UI
- Python獲取網路中的存活主機以及哪些主機是LinuxPythonLinux
- Linux基礎(一):獲取LinuxCPU資訊Linux
- python 獲取linux本機資訊【十全十美】PythonLinux
- 【Python】獲取機器使用資訊Python
- linux驅動之獲取裝置樹資訊Linux
- JavaScript 獲取主機名程式碼JavaScript
- 獲取位置資訊
- 獲取Linux本機IP命令Linux
- Bash 實現 Linux 版 sysinfo 獲取系統資訊Linux
- iOS 程式碼 獲取wifi資訊 及主動連線WiFiiOSWiFi
- iOS 獲取本機的裝置資訊UIDeviceiOSUIIDEdev
- 獲取計算機系統唯一資訊計算機
- Java解析微信獲取手機號資訊Java
- Linux應用程式獲取執行緒棧的資訊Linux執行緒
- Inxi:獲取Linux系統和硬體資訊的神器Linux
- Oracle中獲取主機名和IP地址Oracle
- Oracle獲取所有表名資訊和獲取指定表名欄位資訊Oracle
- iOS獲取SIM卡資訊iOS
- 獲取AFP服務資訊
- uniapp微信小程式獲取手機號 位置資訊APP微信小程式
- 基於隨機定位的地圖資訊獲取方式隨機地圖
- 從Linux核心中獲取真隨機數Linux隨機
- 獲取.crt證書的資訊
- ipmitool獲取伺服器資訊MIT伺服器
- ABL獲取XBL資訊記錄
- 使用捕獲 獲取身份證號的資訊
- 資訊爆炸時代,如何獲取優質資訊?
- Linux 獲取幫助Linux
- Linux 獲取系統開機/啟動時間Linux
- php-MediaInfo 獲取媒體資訊PHPAI
- 獲取app版本號相關資訊APP
- 使用Python獲取ECS相關資訊Python
- 【Python小隨筆】 SSH 獲取資訊Python
- 應屆生如何獲取招聘資訊
- google books api 獲取圖書資訊GoAPI
- ElasticSearch 獲取es資訊以及索引操作Elasticsearch索引
- Oracle 元件資訊獲取途徑整理Oracle元件
- iphone 獲取地址的詳細資訊iPhone