博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Dmidecode
阅读量:2397 次
发布时间:2019-05-10

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

在介绍dmidecode命令之前,先介绍一下DMI。所谓DMI,即DesktopManagement Interface。也有被称为SMBIOS,即System Management BIOS。DMI表的意义在于让我们在不探测硬件实体的情况下获取硬件的部分信息,方便了用户,但也同时表明,表中的信息可能是不可靠的。

dmidecode的作用则是将DMI表中的信息用人可以读懂的方式显示出来。

最简单的使用方法,它将显示dmidecode所能获取到的全部dmi信息:

1
# dmidecode

但是显示所有的信息不便于我们获取想要获取的信息,那么就需要结合其它选项获取信息

常用参数:

  • -q 或 –quiet
    • 不显示太多信息,比如某条数据是从哪里读来的等等,为了得到简洁的信息,此条很有用
  • -t 或 –type TYPE
    • 指定要显示类型的信息
  • -s 或 –string KEYWORD
    • 显示特定的关键字

-t或–type后的文本参数

bios        bios的各项信息system      系统信息,在我的笔记本上可以看到版本、型号、序号等信息。baseboard   主板信息chassis     底板信息processor   CPU的详细信息memory      内存信息,包括目前插的内存条数及大小,支持的单条最大内存和总内存大小等cache       缓存信息connector   PCI设备信息slot        插槽信息
12345678910111213
# dmidecode -t dmidecode: option requires an argument -- 't'Type number or keyword expectedValid type keywords are:  bios  system  baseboard  chassis  processor  memory  cache  connector  slot

dmidecode -s:

1234567891011121314151617181920212223242526
# dmidecode -sdmidecode: option requires an argument -- 's'String keyword expectedValid string keywords are:  bios-vendor  bios-version  bios-release-date  system-manufacturer  system-product-name  system-version  system-serial-number  system-uuid  baseboard-manufacturer  baseboard-product-name  baseboard-version  baseboard-serial-number  baseboard-asset-tag  chassis-manufacturer  chassis-type  chassis-version  chassis-serial-number  chassis-asset-tag  processor-family  processor-manufacturer  processor-version  processor-frequency

常用命令举例

  • 1、查看服务器型号:dmidecode | grep ‘Product Name’
  • 2、查看系统序列号:dmidecode -s system-serial-number
  • 3、查看内存信息:dmidecode -t memory
  • 4、查看OEM信息:dmidecode -t 11

转载地址:http://cqyob.baihongyu.com/

你可能感兴趣的文章
IDL save postscript file
查看>>
Bibtex如何使authors in the citation 最多显示两个
查看>>
Bibtex 如何cite 不同格式
查看>>
Cmake environmental variables: how to make find_package, find_path and find_library work
查看>>
Cmake space in path windows
查看>>
Differences between Tesla and a GeForce Series GPU
查看>>
Faster Parallel Reductions on Kepler
查看>>
NVIDIA Tesla C2075 vs Tesla K10 theoretical performance
查看>>
Fast floor/ceiling functions C
查看>>
Continue Long Statements on Multiple Lines Matlab
查看>>
What does “warning: not all control paths return a value” mean? (C++)
查看>>
C++ 运算符优先级
查看>>
Savitzky-Golay smoothing
查看>>
IDL get variable size in bytes
查看>>
high-frequency emphasis filter matlab
查看>>
cat -n
查看>>
使用 ftrace 调试 Linux 内核,第 2 部分
查看>>
使用 ftrace 调试 Linux 内核,第 3 部分
查看>>
内存储器管理概述、内存分配与释放、地址映射机制(mm_struct, vm_area_struct)、malloc/free 的实现
查看>>
glibc-printf
查看>>