Chinaunix首页 | 论坛 | 博客
  • 博客访问: 145680
  • 博文数量: 30
  • 博客积分: 30
  • 博客等级: 民兵
  • 技术积分: 310
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-31 15:35
文章分类

全部博文(30)

文章存档

2020年(1)

2019年(10)

2016年(19)

我的朋友

分类: 系统运维

2020-01-09 17:37:52

ubuntu下获取设备硬件信息
包括CPU,内存,RAID卡,网卡,HBA卡,电源,硬盘(大小,转速)信息。
lshw >tmp001
cat tmp001|grep -A10 "\-disk"|egrep "size|capabilities"
cat tmp001|grep -A10 "\-cpu"|grep "product"
cat tmp001|grep -A10 "\-memory"|egrep "description|size|clock"
cat tmp001|grep -A10 "\-storage"|egrep "product|vendor"
cat tmp001|grep -A10 "\-network"|egrep "product|vendor"
cat tmp001|grep -A10 "\-fiber"|egrep "product|vendor"
cat tmp001|grep -A10 "\-power"|egrep "product|vendor|capacity"
阅读(10234) | 评论(0) | 转发(0) |
0

上一篇:空间使用率告警,列出目录下大文件的脚本

下一篇:没有了

给主人留下些什么吧!~~