centos7-查询内存/硬盘等详细信息

  • 内存详细信息
    • dmidecode -t memory | grep -A 11 -B 5 "Size:.*GB" | grep 'Size:.*GB' | wc -l   #显示内存数量
    • dmidecode -t memory | grep -A 11 -B 5 "Size:.*GB" | grep Type:
    • dmidecode -t memory | grep -A 11 -B 5 "Size:.*GB" | grep Size
    • dmidecode -t memory | grep -A 11 -B 5 "Size:.*GB" | grep Speed
    • dmidecode -t memory | grep -A 11 -B 5 "Size:.*GB" | grep Manufacturer
  • 内存带宽测试
    • stream工具
  • 硬盘详细信息 
    • for dev in `fdisk -l | grep dev | grep 10000.8 | awk '{print $2}'`; do smartctl --all ${dev%?} | grep -A 15 "Model Family"; done 
    • 输出如下图所示

 

posted @ 2020-10-29 17:39  <Snooker>  阅读(1957)  评论(0编辑  收藏  举报