[[OS関連]]
目次~
#contents
*概要 [#r5f85ba7]
Linuxのコマンドラインで機器情報を取得する方法。

*手順 [#g3951c7b]
dmidecodeコマンドを使用する。~

-全情報の取得
 # dmidecode --type system
~

--ProLiant DL20 Gen10
 # dmidecode 3.2
 Getting SMBIOS data from sysfs.
 SMBIOS 3.1.1 present.
 
 Handle 0x001C, DMI type 1, 27 bytes
 System Information
         Manufacturer: HPE
         Product Name: ProLiant DL20 Gen10
         Version: Not Specified
         Serial Number: 00000000
         UUID: 00000000-000-0000-0000-00000000
         Wake-up Type: Power Switch
         SKU Number: 00000000
         Family: ProLiant
 
 Handle 0x004A, DMI type 32, 11 bytes
 System Boot Information
        Status: No errors detected

--仮想マシン(VMware)
 # dmidecode 3.3
 Getting SMBIOS data from sysfs.
 SMBIOS 2.7 present.
 
 Handle 0x0001, DMI type 1, 27 bytes
 System Information
         Manufacturer: VMware, Inc.
         Product Name: VMware7,1
         Version: None
         Serial Number: VMware-00 00 00 00 00 00 00 00
         UUID: 00000000-000-0000-0000-00000000
         Wake-up Type: Power Switch
         SKU Number: Not Specified
         Family: Not Specified
 
 Handle 0x009E, DMI type 23, 13 bytes
 System Reset
         Status: Enabled
         Watchdog Timer: Present
         Boot Option: Do Not Reboot
         Boot Option On Limit: Do Not Reboot
         Reset Count: Unknown
         Reset Limit: Unknown
         Timer Interval: Unknown
         Timeout: Unknown
 
 Handle 0x00A1, DMI type 32, 11 bytes
 System Boot Information
         Status: No errors detected

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS