Linux的dmidecode命令怎么使用
这篇“Linux的dmidecode命令怎么使用”文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇“Linux的dmidecode命令怎么使用”文章吧。
dmidecode允许你在Linux系统下获取有关硬件方面的信息。dmidecode遵循SMBIOS/DMI标准,其输出的信息包括BIOS、系统、主板、处理器、内存、缓存等等。
运行dmidecode命令之后,屏幕会输出大量记录,可以使用less分页查看,每个记录有4个不同的值:
运行如下命令:
[root@localhost~]#dmidecode|less
SMBIOS规范定义了以下DMI类型:
TypeInformation────────────────────────────────────────────0BIOS1System2Baseboard3Chassis4Processor5MemoryController6MemoryModule7Cache8PortConnector9SystemSlots10OnBoardDevices11OEMStrings12SystemConfigurationOptions13BIOSLanguage14GroupAssociations15SystemEventLog16PhysicalMemoryArray17MemoryDevice1832-bitMemoryError19MemoryArrayMappedAddress20MemoryDeviceMappedAddress21Built-inPointingDevice22PortableBattery23SystemReset24HardwareSecurity25SystemPowerControls26VoltageProbe27CoolingDevice28TemperatureProbe29ElectricalCurrentProbe30Out-of-bandRemoteAccess31BootIntegrityServices32SystemBoot3364-bitMemoryError34ManagementDevice35ManagementDeviceComponent36ManagementDeviceThresholdData37MemoryChannel38IPMIDevice39PowerSupply40AdditionalInformation41OnboardDevicesExtendedInformation42ManagementControllerHostInterface
输出时可以使用关键字来代替数字形式的类型。需要添加–type参数。
KeywordTypes──────────────────────────────bios0,13system1,12,15,23,32baseboard2,10,41chassis3processor4memory5,6,16,17cache7connector8slot9使用类型id和关键字显示硬件信息
显示bios的信息:
[root@localhost~]#dmidecode-tbios或者[root@localhost~]#dmidecode-t0,13
[root@localhost~]#dmidecode-tbaseboard
显示有关已安装物理内存(RAM)的信息,请运行以下命令:
[~]#dmidecode-t17
显示我的物理机安装了两条DDR3的内存,每根内存条的容量为4GB等信息。
使用下面类型查看机器支持最大物理内存是多少:
[~]#dmidecode-t16
[~]#dmidecode-tprocessor
以上就是关于“Linux的dmidecode命令怎么使用”这篇文章的内容,相信大家都有了一定的了解,希望小编分享的内容对大家有帮助,若想了解更多相关的知识内容,请关注亿速云行业资讯频道。
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。