设为首页 收藏本站
查看: 442|回复: 0

[经验分享] Linux命令笔记之dmidecode用法

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2015-1-22 08:06:56 | 显示全部楼层 |阅读模式
Dmidecode 用来查看设备硬件信息,包括设备型号、BIOS、系统、主板、处理器、内存、缓存详细信息等等。
常用参数:
# dmidecode -h
Usage: dmidecode [OPTIONS]
Options are:
-d,--dev-mem FILE     Read memory fromdevice FILE (default: /dev/mem)
                       从设备文件中读取信息,输出文件内容与不加参数相同
-h,--help             Display this help textand exit
                       显示帮助信息
-q,--quiet            Less verbose output
                       简化信息输出
-s,--string KEYWORD   Only display the valueof the given DMI string
     只显示指定DMI字符串的信息(DMI即DesktopManagement Interface, 就是帮助      收集电脑系统信息的管理系统)
-t,--type TYPE        Only display theentries of given type
                       只显示指定类型的条目
-u,--dump             Do not decode theentries
                       显示不解码的条目
  --dump-bin FILE      Dump the DMIdata to a binary file
  --from-dump FILE     Read the DMIdata from a binary file
-V,--version          Display the version andexit
                       显示版本信息
示例:
# dmidecode   将会输出所有硬件及系统信息
# dmidecode -d /dev/mem       同上
# dmidecode –q        简化输出信息
BIOS Information
         Vendor:Dell Inc.
         Version:6.1.0
         ReleaseDate: 10/18/2011
         Address:0xF0000
         RuntimeSize: 64 kB
         ROMSize: 4096 kB
         Characteristics:
…………………..
IPMI Device Information
         InterfaceType: KCS (Keyboard Control Style)
         SpecificationVersion: 2.0
         I2CSlave Address: 0x10
         NVStorage Device: Not Present
         BaseAddress: 0x0000000000000CA8 (I/O)
         RegisterSpacing: 32-bit Boundaries
# dmidecode –s                将检索出来的DMI加入到s参数后面即可看到具体信息
dmidecode: option requires an argument --'s'
String keyword expected
Valid 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
# dmidecode -s system-product-name
PowerEdge R710
#服务器型号为DELL R710

# dmidecode –t                  将检索出的条目加入t参数即可查看该条目详细信息
dmidecode: option requires an argument --'t'
Type number or keyword expected
Valid type keywords are:
  bios
system
baseboard
chassis
processor
memory
cache
connector
slot
# dmidecode -t bios
# dmidecode 2.11
SMBIOS 2.6 present.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
         Vendor:Dell Inc.
         Version:6.1.0
         ReleaseDate: 10/18/2011
         Address:0xF0000
         RuntimeSize: 64 kB
         ROMSize: 4096 kB
         Characteristics:
                   ISAis supported
                   PCIis supported
                   PNPis supported
                   BIOSis upgradeable
                   BIOSshadowing is allowed
                   Bootfrom CD is supported
                   Selectableboot is supported
                   EDDis supported
                   Japanesefloppy for Toshiba 1.2 MB is supported (int 13h)
                   5.25"/360kB floppy services are supported (int 13h)
                   5.25"/1.2MB floppy services are supported (int 13h)
                   3.5"/720kB floppy services are supported (int 13h)
                   8042keyboard services are supported (int 9h)
                   Serialservices are supported (int 14h)
                   CGA/monovideo services are supported (int 10h)
                   ACPIis supported
                   USBlegacy is supported
                   BIOSboot specification is supported
                   Functionkey-initiated network boot is supported
                   Targetedcontent distribution is supported
         BIOSRevision: 6.1

Handle 0x0D00, DMI type 13, 22 bytes
BIOS Language Information
         LanguageDescription Format: Long
         InstallableLanguages: 1
                   en|US|iso8859-1
         CurrentlyInstalled Language: en|US|iso8859-1
有木有很强大的赶脚,我使用该命令的背景是需要统计生产环境服务器硬件信息,因服务器托管在机房,即不想来回跑机房,又不想翻阅当初采购清单,故通过查阅资料了解了这个dmidecode强大的命令。
感谢http://www.ibm.com/developerworks/cn/linux/l-10sysadtips/


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-41226-1-1.html 上篇帖子: 磁盘I/O很高的解决思路 下篇帖子: linux下硬件信息统计小工具 Linux
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表