lshw可以查看服务器硬件配置的详细信息,可以在支持DMI的x86或者IA-64系统以及power PC 机器上打印内存配置,固件版本,主板配置,cpu版本,cpu频次,缓存,总线速度等信息。
使用方法
[root@ecs-c13b ~]# lshw -help
Hardware Lister (lshw) - B.012.18
usage: lshw [-format] [-options ...]
lshw -version
-version print program version (B.012.18)(查看版本信息)
format can be
-html output hardware tree as HTML (将设备树输出信息保存为HTML格式)
-xml output hardware tree as XML (保存为XML格式)
-json output hardware tree as a JSON object (保存为json格式)
-short output hardware paths (输出简短显示硬件路径的设备树信息)
-businfo output bus information (输出总线信息的设备列表)
options can be
-dump OUTFILE save hardware tree to a file
-class CLASS only show a certain class of hardware
-C CLASS same as '-class CLASS'
-c CLASS same as '-class CLASS'
-disable TEST disable a test (like pci, isapnp, cpuid, etc. )(禁用某些检测)
-enable TEST enable a test (like pci, is
IT运维工具:lshw与lsblk详解及其在面试中的重要性

最低0.47元/天 解锁文章
542

被折叠的 条评论
为什么被折叠?



