概述

解决批量获取服务器设备信息问题,记录命令如下

命令

查询物理硬盘详细信息

  1. 查询全部信息
iBMC:/->ipmcget -t storage -d pdinfo -v all
Physical Drive Information
----------------------------------------------------------------------
ID                                       : 0
Device Name                              : Disk0
Manufacturer                             : TOSHIBA
Serial Number                            : 35S0A00ZFRD4
Model                                    : AL13SEB600
Firmware Version                         : DE11
Health Status                            : Normal
Firmware State                           : ONLINE
Power State                              : Spun Up
Media Type                               : HDD
Interface Type                           : SAS
Interface Speed                          : 6.0 Gbps
Link Speed                               : 12.0 Gbps
Drive Temperature                        : 37(Celsius)
Capacity                                 : 557.861 GB
Hot Spare                                : None
Rebuild in Progress                      : No
Patrol Read in Progress                  : No
Remnant Media Wearout                    : N/A
SAS Address(0)                           : 500003962830cc4e
SAS Address(1)                           : 0000000000000000
Location State                           : Off

Media Error Count                        : 0
Prefail Error Count                      : 0
Other Error Count                        : 0
----------------------------------------------------------------------

Physical Drive Information
----------------------------------------------------------------------
ID                                       : 1
Device Name                              : Disk1
Manufacturer                             : IBM-ESXS
Serial Number                            : S0M2VANP1118B5C3
Model                                    : ST600MM0006
Firmware Version                         : B56K
Health Status                            : Normal
Firmware State                           : ONLINE
Power State                              : Spun Up
Media Type                               : HDD
Interface Type                           : SAS
Interface Speed                          : 6.0 Gbps
Link Speed                               : 12.0 Gbps
Drive Temperature                        : 36(Celsius)
Capacity                                 : 557.861 GB
Hot Spare                                : None
Rebuild in Progress                      : No
Patrol Read in Progress                  : No
Remnant Media Wearout                    : N/A
SAS Address(0)                           : 5000c5007655b3d5
SAS Address(1)                           : 0000000000000000
Location State                           : Off

Media Error Count                        : 0
Prefail Error Count                      : 0
Other Error Count                        : 0
----------------------------------------------------------------------

查询磁盘阵列信息

iBMC:/->ipmcget -t storage -d arrayinfo -v 0 all
Disk Array Information
----------------------------------------------------------------------
Array ID                                 : 0
Used Space                               : 1.090 TB
Free Space                               : 0 MB
Logcial Drive(s) ID                      : 0
Physical Drive(s) ID                     : 0,1
----------------------------------------------------------------------

Disk Array Information
----------------------------------------------------------------------
Array ID                                 : 1
Used Space                               : 3.269 TB
Free Space                               : 0 MB
Logcial Drive(s) ID                      : 1
Physical Drive(s) ID                     : 2,4,3,5,6,7
----------------------------------------------------------------------

查询RAID虚拟磁盘信息 (ldinfo)

iBMC:/->ipmcget -t storage -d ldinfo -v 0 all
Logical Drive Information
----------------------------------------------------------------------
Target ID                                : 0
Name                                     : N/A
Type                                     : RAID1
State                                    : Optimal
Default Read Policy                      : Read Ahead
Default Write Policy                     : Write Back with BBU
Default Cache Policy                     : Direct IO
Current Read Policy                      : Read Ahead
Current Write Policy                     : Write Back with BBU
Current Cache Policy                     : Direct IO
Access Policy                            : Read Write
Span depth                               : 1
Number of drives per span                : 2
Strip Size                               : 256 KB
Total Size                               : 557.861 GB
Disk Cache Policy                        : Disk's Default
Init State                               : No Init
Consistency Checking                     : No
BGI Enabled                              : Yes
Bootable                                 : Yes
Used for Secondary Cache                 : No
OS Letter                                : N/A
SSCD Caching Enable                      : No
PD participating in LD (ID#)             : 0,1
Dedicated Hot Spare PD (ID#)             : N/A
----------------------------------------------------------------------

Logical Drive Information
----------------------------------------------------------------------
Target ID                                : 1
Name                                     : N/A
Type                                     : RAID5
State                                    : Optimal
Default Read Policy                      : Read Ahead
Default Write Policy                     : Write Back with BBU
Default Cache Policy                     : Direct IO
Current Read Policy                      : Read Ahead
Current Write Policy                     : Write Back with BBU
Current Cache Policy                     : Direct IO
Access Policy                            : Read Write
Span depth                               : 1
Number of drives per span                : 6
Strip Size                               : 256 KB
Total Size                               : 2.724 TB
Disk Cache Policy                        : Disk's Default
Init State                               : No Init
Consistency Checking                     : No
BGI Enabled                              : Yes
Bootable                                 : No
Used for Secondary Cache                 : No
OS Letter                                : N/A
SSCD Caching Enable                      : No
PD participating in LD (ID#)             : 2,4,3,5,6,7
Dedicated Hot Spare PD (ID#)             : 8
----------------------------------------------------------------------
Logo

openEuler 是由开放原子开源基金会孵化的全场景开源操作系统项目,面向数字基础设施四大核心场景(服务器、云计算、边缘计算、嵌入式),全面支持 ARM、x86、RISC-V、loongArch、PowerPC、SW-64 等多样性计算架构

更多推荐