日記帳

日記です。

Let's note W2 に Debian 4.0 Etch

http://d.hatena.ne.jp/sa-y/20070624 の続き.

dmidecode パッケージって何?

インストールされているけど何かよくわからないパッケージとして dmidecode を調べてみた.何で dmidecode かっていうと何よりまず読み方がわからなかったので…「でぃーまいどこーど」って何?っていう…

とりあえず何のコマンドが入ってるのか調べる.

% dpkg -L dmidecode | grep 'bin/'
/usr/sbin/dmidecode
/usr/sbin/biosdecode
/usr/sbin/ownership
/usr/sbin/vpddecode

コマンドは4つ.他のコマンドの名前から dmidecode は「でぃーえむあい でこーど」と読むのではないかという気がしてきた.

% man dmidecode

man を読むと dmidecode はコンピュータの DMI テーブルの内容を人間に読めるようなフォーマットで表示するツールだと書いてある.それで DMI ってのは Desktop Management Interface の略で,コンピュータにつながっているハードウェアやソフトウェアを統一的に管理するための標準インターフェースらしい.

あまり詳しく載ってないけど Wikipedia の説明.

dmidecode は DMI のコンポーネント(管理対象となるハードウェアやソフトウェア)とのインターフェース部分を使って PC のハードウェア情報を集めてくる,というツールの模様.

man を読むと同パッケージの他のコマンドも大体同じような機能のコマンドのようです.

  • biosdecode - BIOS 情報を表示
  • vpddecode - IBM のコンピュータの「vital product data」の情報を表示
  • ownership - Compaq の「ownership tag」の情報を表示

ということで dmidecode パッケージはこんな感じのツールをまとめたものなのですね…

試しに Let's node W2 で dmidecode 実行してみると以下のようになりました.一部マスクしてあります.

# dmidecode 2.8
SMBIOS 2.3 present.
42 structures occupying 1589 bytes.
Table at 0x000E7D50.

Handle 0x0000, DMI type 0, 20 bytes
BIOS Information
	Vendor: Phoenix Technologies K.K.
	Version: V5.00L11
	Release Date: 09/21/2004
	Address: 0xE2E80
	Runtime Size: 119168 bytes
	ROM Size: 512 kB
	Characteristics:
		PCI is supported
		PC Card (PCMCIA) is supported
		PNP is supported
		BIOS is upgradeable
		BIOS shadowing is allowed
		ESCD support is available
		Boot from CD is supported
		Selectable boot is supported
		EDD is supported
		3.5"/720 KB floppy services are supported (int 13h)
		Print screen service is supported (int 5h)
		8042 keyboard services are supported (int 9h)
		ACPI is supported
		USB legacy is supported
		BIOS boot specification is supported
		Function key-initiated network boot is supported

Handle 0x0001, DMI type 1, 25 bytes
System Information
	Manufacturer: Matsushita Electric Industrial Co.,Ltd.
	Product Name: CF-W2EW1AXR
	Version: 005
	Serial Number: XXXXXXXXXX
	UUID: 00000000-0000-1000-8000-XXXXXXXXXXXX
	Wake-up Type: Power Switch

Handle 0x0002, DMI type 2, 8 bytes
Base Board Information
	Manufacturer: Matsushita Electric Industrial Co.,Ltd.
	Product Name: CFW2-5
	Version: 001
	Serial Number: None

Handle 0x0003, DMI type 3, 17 bytes
Chassis Information
	Manufacturer: Matsushita Electric Industrial Co.,Ltd.
	Type: Notebook
	Lock: Not Present
	Version: 001
	Serial Number: None
	Asset Tag: No Asset Tag
	Boot-up State: Unknown
	Power Supply State: Safe
	Thermal State: Safe
	Security Status: Unknown
	OEM Information: 0x00000000

Handle 0x0004, DMI type 4, 35 bytes
Processor Information
	Socket Designation: IC1
	Type: Central Processor
	Family: Unknown
Manufacturer: GenuineIntel
ID: D6 06 00 00 BF F9 E9 AF
	Version: Intel(R) Pentium(R) M processor 1.10GHz
	Voltage: 0.9 V
	External Clock: 400 MHz
	Max Speed: 1100 MHz
	Current Speed: 1100 MHz
	Status: Populated, Enabled
	Upgrade: None
	L1 Cache Handle: 0x0008
	L2 Cache Handle: 0x0009
	L3 Cache Handle: Not Provided
	Serial Number: Not Specified
	Asset Tag: Not Specified
	Part Number: Not Specified

Handle 0x0005, DMI type 5, 20 bytes
Memory Controller Information
	Error Detecting Method: None
	Error Correcting Capabilities:
		None
	Supported Interleave: Other
	Current Interleave: Other
	Maximum Memory Module Size: 512 MB
	Maximum Total Memory Size: 1024 MB
	Supported Speeds:
		Unknown
	Supported Memory Types:
		DIMM
		SDRAM
	Memory Module Voltage: Unknown
	Associated Memory Slots: 2
		0x0006
		0x0007
	Enabled Error Correcting Capabilities:
		None

Handle 0x0006, DMI type 6, 12 bytes
Memory Module Information
	Socket Designation: On Board
	Bank Connections: 0 1
	Current Speed: Unknown
	Type: None
	Installed Size: 256 MB (Double-bank Connection)
	Enabled Size: 256 MB (Double-bank Connection)
	Error Status: OK

Handle 0x0007, DMI type 6, 12 bytes
Memory Module Information
	Socket Designation: 172 Micro DIMM-CN7
	Bank Connections: 2 3
	Current Speed: Unknown
	Type: DIMM SDRAM
	Installed Size: 512 MB (Double-bank Connection)
	Enabled Size: 512 MB (Double-bank Connection)
	Error Status: OK

Handle 0x0008, DMI type 7, 19 bytes
Cache Information
	Socket Designation: L1 Cache
	Configuration: Enabled, Not Socketed, Level 1
	Operational Mode: Write Back
	Location: Internal
	Installed Size: 32 KB
	Maximum Size: 32 KB
	Supported SRAM Types:
		Unknown
	Installed SRAM Type: Unknown
	Speed: Unknown
	Error Correction Type: Unknown
	System Type: Data
	Associativity: Unknown

Handle 0x0009, DMI type 7, 19 bytes
Cache Information
	Socket Designation: L2 Cache
	Configuration: Enabled, Not Socketed, Level 2
	Operational Mode: Write Back
	Location: Internal
	Installed Size: 2048 KB
	Maximum Size: 2048 KB
	Supported SRAM Types:
		Unknown
	Installed SRAM Type: Burst
	Speed: Unknown
	Error Correction Type: Unknown
	System Type: Unknown
	Associativity: Unknown

Handle 0x000A, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: CN6
	Internal Connector Type: None
	External Reference Designator: USB 0
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x000B, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: CN7
	Internal Connector Type: None
	External Reference Designator: USB 1
	External Connector Type: Access Bus (USB)
	Port Type: USB

Handle 0x000C, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: CN12
	Internal Connector Type: None
	External Reference Designator: PC Card
	External Connector Type: 68 Pin Dual Inline
	Port Type: Cardbus

Handle 0x000D, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: JK1
	Internal Connector Type: None
	External Reference Designator: MIC
	External Connector Type: Mini Jack (headphones)
	Port Type: Audio Port

Handle 0x000E, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: JK2
	Internal Connector Type: None
	External Reference Designator: Headphone
	External Connector Type: Mini Jack (headphones)
	Port Type: Audio Port

Handle 0x000F, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: CN9
	Internal Connector Type: None
	External Reference Designator: EXT.DISPLAY
	External Connector Type: DB-15 female
	Port Type: Video Port

Handle 0x0010, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: CN802
	Internal Connector Type: None
	External Reference Designator: SD Card
	External Connector Type: Proprietary
	Port Type: Other

Handle 0x0011, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: CN18
	Internal Connector Type: Other
	External Reference Designator: Modem
	External Connector Type: RJ-11
	Port Type: Modem Port

Handle 0x0012, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: CN14
	Internal Connector Type: Other
	External Reference Designator: LAN
	External Connector Type: RJ-45
	Port Type: Network Port

Handle 0x0013, DMI type 8, 9 bytes
Port Connector Information
	Internal Reference Designator: CN15
	Internal Connector Type: Other
	External Reference Designator: Wireless LAN
	External Connector Type: None
	Port Type: Network Port

Handle 0x0014, DMI type 9, 13 bytes
System Slot Information
	Designation: PC Card
	Type: 32-bit PC Card (PCMCIA)
	Current Usage: Unknown
	Length: Other
	ID: Adapter 0, Socket 0
	Characteristics:
		5.0 V is provided
		3.3 V is provided
		PC Card-16 is supported
		Cardbus is supported
		PME signal is supported
		Hot-plug devices are supported

Handle 0x0015, DMI type 9, 13 bytes
System Slot Information
	Designation: SD Card
	Type: Other
	Current Usage: Available
	Length: Other
	Characteristics:
		3.3 V is provided
		Hot-plug devices are supported

Handle 0x0016, DMI type 9, 13 bytes
System Slot Information
	Designation: mini PCI
	Type: 32-bit PCI
	Current Usage: In Use
	Length: Other
	ID: 0
	Characteristics:
		5.0 V is provided
		3.3 V is provided
		PME signal is supported

Handle 0x0017, DMI type 10, 10 bytes
On Board Device 1 Information
	Type: Video
	Status: Enabled
	Description: Intel 855GM
On Board Device 2 Information
	Type: Sound
	Status: Enabled
	Description: Sigmatel 9753
On Board Device 3 Information
	Type: Ethernet
	Status: Enabled
	Description: Realtek 8101L Fast Ethernet

Handle 0x0018, DMI type 11, 5 bytes
OEM Strings
	String 1: UNDEFINED\n

Handle 0x0019, DMI type 13, 22 bytes
BIOS Language Information
	Installable Languages: 2
		en|US|iso8859-1
		ja|JP|unicode-1
	Currently Installed Language: ja|JP|unicode-1

Handle 0x001A, DMI type 16, 15 bytes
Physical Memory Array
	Location: System Board Or Motherboard
	Use: System Memory
	Error Correction Type: None
	Maximum Capacity: 1 GB
	Error Information Handle: Not Provided
	Number Of Devices: 2

Handle 0x001B, DMI type 16, 15 bytes
Physical Memory Array
	Location: System Board Or Motherboard
	Use: Flash Memory
	Error Correction Type: None
	Maximum Capacity: 512 kB
	Error Information Handle: Not Provided
	Number Of Devices: 1

Handle 0x001C, DMI type 17, 27 bytes
Memory Device
	Array Handle: 0x001A
	Error Information Handle: No Error
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 256 MB
	Form Factor: TSOP
	Set: None
	Locator: Onboard
	Bank Locator: Onboard
	Type: DDR
	Type Detail: Synchronous
	Speed: Unknown
	Manufacturer: Not Specified
	Serial Number: Not Specified
	Asset Tag: Not Specified
	Part Number: Not Specified

Handle 0x001D, DMI type 17, 27 bytes
Memory Device
	Array Handle: 0x001A
	Error Information Handle: No Error
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 512 MB
	Form Factor: DIMM
	Set: None
	Locator: DIMM
	Bank Locator: DIMM
	Type: DDR
	Type Detail: Synchronous
	Speed: Unknown
	Manufacturer: Not Specified
	Serial Number: Not Specified
	Asset Tag: Not Specified
	Part Number: Not Specified

Handle 0x001E, DMI type 17, 27 bytes
Memory Device
	Array Handle: 0x001B
	Error Information Handle: No Error
	Total Width: 8 bits
	Data Width: 8 bits
	Size: 512 kB
	Form Factor: TSOP
	Set: None
	Locator: Flash ROM
	Bank Locator: Flash ROM
	Type: Flash
	Type Detail: Non-Volatile
	Speed: Unknown
	Manufacturer: Not Specified
	Serial Number: Not Specified
	Asset Tag: Not Specified
	Part Number: Not Specified

Handle 0x001F, DMI type 19, 15 bytes
Memory Array Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x0000FFFFFFF
	Range Size: 256 MB
	Physical Array Handle: 0x001A
	Partition Width: 0

Handle 0x0020, DMI type 19, 15 bytes
Memory Array Mapped Address
	Starting Address: 0x00010000000
	Ending Address: 0x0002FFFFFFF
	Range Size: 512 MB
	Physical Array Handle: 0x001A
	Partition Width: 0

Handle 0x0021, DMI type 19, 15 bytes
Memory Array Mapped Address
	Starting Address: 0x000FFF80000
	Ending Address: 0x000FFFFFFFF
	Range Size: 512 kB
	Physical Array Handle: 0x001B
	Partition Width: 0

Handle 0x0022, DMI type 20, 19 bytes
Memory Device Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x0000FFFFFFF
	Range Size: 256 MB
	Physical Device Handle: 0x001C
	Memory Array Mapped Address Handle: 0x001F
	Partition Row Position: 1

Handle 0x0023, DMI type 20, 19 bytes
Memory Device Mapped Address
	Starting Address: 0x00010000000
	Ending Address: 0x0002FFFFFFF
	Range Size: 512 MB
	Physical Device Handle: 0x001D
	Memory Array Mapped Address Handle: 0x0020
	Partition Row Position: 1

Handle 0x0024, DMI type 20, 19 bytes
Memory Device Mapped Address
	Starting Address: 0x000FFF80000
	Ending Address: 0x000FFFFFFFF
	Range Size: 512 kB
	Physical Device Handle: 0x001E
	Memory Array Mapped Address Handle: 0x0021
	Partition Row Position: 1

Handle 0x0025, DMI type 21, 7 bytes
Built-in Pointing Device
	Type: Touch Pad
	Interface: PS/2
	Buttons: 2

Handle 0x0026, DMI type 255, 7 bytes
OEM-specific Type
	Header and Data:
		FF 07 26 00 08 A2 00

Handle 0x0027, DMI type 22, 26 bytes
Portable Battery
	Location: in the back
	Manufacturer: Panasonic
	Manufacture Date:  
	Serial Number:  
	Name: CF-VZSU27A
	Chemistry: Lithium Ion
	Design Capacity: 52170 mWh
	Design Voltage: 7400 mV
	SBDS Version: Not Specified
	Maximum Error: 0%
	OEM-specific Information: 0x00000000

Handle 0x0028, DMI type 32, 11 bytes
System Boot Information
	Status: No errors detected

Handle 0x0029, DMI type 127, 4 bytes
End Of Table

ここまで情報が取れるんですねぇ… バッテリーの容量や電圧まで表示されてるし.なんか System Information の Serial Number とか PC の本体の裏にシールで張ってあるシリアルナンバーがそのまま表示されててちょっとびっくり.

何故こんなツールが標準でインストールされているのかというとどうもインストール時のログを収集するのに使う模様.インストールに失敗した時のハードウェア構成の情報とかを正確に集められるようにインストーラが使うんじゃないだろうか?