跳转至

Dell服务器使用omreport查看硬件信息

一.命令指南

Bash
1
2
3
4
5
6
7
8
9
omreport chassis                     # 显示所有主要组件的常规状态 
omreport chassis memory              # 显示内存信息
omreport  chassis temps              # 显示系统主要组件的温度
omreport storage adisk controller=0  # 查看磁盘陈列中的硬盘状态
omreport storage pdisk controller=0  # 查看物理磁盘信息
omreport storage vdisk controller=0  # 查看虚拟硬盘的状态
omreport storage controller          # 查看控制器(即RAID卡)的属性
omreport storage enclosure controller=0  # 查看enclosure的属性
omreport storage battery                 # 查看电池属性

在写脚本的时候还可以这样使用好分割数据:

Bash
omreport chassis info -fmt ssv

二.命令样例

1.系统摘要信息

Bash
root@pts/1 # omreport chassis info
Chassis Information

Index                                    : 0
Chassis Name                             : Main System Chassis
Host Name                                : ws-lvs-9-2.youyuan-idc.com
BMC Version                              : 1.90.00 (Build 4)
Unified Server Configurator Version      : 1.5.5.18
Chassis Model                            : PowerEdge R410
System Revision                          : II
Chassis Lock                             : Present
Chassis Service Tag                      : 2Q7YD3X
Express Service Code                     : 5939045853
Chassis Asset Tag                        : 
Flash chassis identify LED state         : Off
Flash chassis identify LED timeout value : 300

主要参数解释:

Bash
1
2
3
Chassis Model #服务器型号
Express Service Code #快速服务代码(可在在官网查询服务器保修时间)
Chassis Service Tag #服务标签

2.显示虚拟磁盘信息(阵列信息)

Bash
root@pts/1 # omreport storage vdisk
List of Virtual Disks in the System

Controller SAS 6/iR Integrated (Embedded)
ID                            : 0
Status                        : Ok
Name                          : Virtual Disk 0
State                         : Ready
Hot Spare Policy violated     : Not Assigned
Encrypted                     : Not Applicable
Layout                        : RAID-1
Size                          : 418.63 GB (449495171072 bytes)
Associated Fluid Cache State  : Not Applicable
Device Name                   : /dev/sda
Bus Protocol                  : SAS
Media                         : HDD
Read Policy                   : Not Applicable
Write Policy                  : Not Applicable
Cache Policy                  : Not Applicable
Stripe Element Size           : Not Applicable
Disk Cache Policy             : Disabled

主要参数解释:

Bash
1
2
3
4
5
Status #阵列状态
Layout #阵列卡类型
Size #阵列空间大小
Bus Protocol #总线协议
Media #介质

3.查看物理磁盘信息

Bash
root@pts/1 # omreport storage controller controller=0
....
Physical Disks
ID                              : 0:0:0
Status                          : Ok
Name                            : Physical Disk 0:0:0
State                           : Online
Power Status                    : Not Applicable
Device Name                     : Not Available
Bus Protocol                    : SAS
Media                           : HDD
Part of Cache Pool              : Not Applicable
Device Life Remaining           : Not Applicable
Remaining Rated Write Endurance : Not Applicable
Failure Predicted               : No
Revision                        : E516
Driver Version                  : Not Applicable
Model Number                    : Not Applicable
Certified                       : Not Applicable
Encryption Capable              : No
Encrypted                       : Not Applicable
Progress                        : Not Applicable
Mirror Set ID                   : Not Applicable
Capacity                        : 418.63 GB (449495171072 bytes)
Used RAID Disk Space            : 418.63 GB (449495171072 bytes)
Available RAID Disk Space       : 0.00 GB (0 bytes)
Hot Spare                       : No
Vendor ID                       : DELL(tm)
Product ID                      : HUS156045VLS600
Serial No.                      : LWW6LH9M
Part Number                     : SG0T857K125682573G6PA00
Negotiated Speed                : 3.00 Gbps
Capable Speed                   : 3.00 Gbps
Device Write Cache              : Not Applicable
Manufacture Day                 : 02
Manufacture Week                : 19
Manufacture Year                : 2012
SAS Address                     : 5000CCA02A445C9D
...

主要参数解释:

Bash
Vendor ID #供应商ID
Product ID #磁盘ID
Serial No. #序列号
Part Number #部件号
Revision #修订
Manufacture Day #磁盘制造日期(日)
Manufacture Week #磁盘制造日期(周)
Manufacture Year #磁盘制造日期(年份)
Capacity #磁盘容量
Used RAID Disk Space #已用 RAID 磁盘空间
Available RAID Disk Space #可用 RAID 磁盘空间
Sector Size #扇区大小
Hot Spare #是否热备份
Bus Protocol #总线协议
Media #介质
Negotiated Speed #协商速度
Capable Speed #支持速度

4.显示系统主要组件的温度

Bash
root@pts/1 # omreport chassis temps
Temperature Probes Information

------------------------------------
Main System Chassis Temperatures: Ok
------------------------------------

Index                     : 0
Status                    : Ok
Probe Name                : System Board Ambient Temp
Reading                   : 20.0 C
Minimum Warning Threshold : 8.0 C
Maximum Warning Threshold : 42.0 C
Minimum Failure Threshold : 3.0 C
Maximum Failure Threshold : 47.0 C

主要参数解释:

Bash
1
2
3
4
5
Reading #当前温度
Minimum Warning Threshold #警告阈值最小温度
Maximum Warning Threshold #警告阈值最大温度
Minimum Failure Threshold #故障阈值最小温度
Maximum Failure Threshold #故障阈值最大温度

5.内存插槽信息

Bash
root@pts/1 # omreport chassis memory
Memory Information

Health : Ok

Memory Operating Mode

Fail Over State                     : Inactive
Memory Operating Mode Configuration : Optimizer

Attributes of Memory Array(s)

Attributes of Memory Array(s)
Location           : System Board or Motherboard
Use                : System Memory
Installed Capacity : 16384  MB
Maximum Capacity   : 131072  MB
Slots Available    : 8
Slots Used         : 4
Error Correction   : Multibit ECC

Total of Memory Array(s)
Total Installed Capacity                     : 16384  MB
Total Installed Capacity Available to the OS : 15935  MB
Total Maximum Capacity                       : 131072  MB

Details of Memory Array 1
Index          : 0
Status         : Ok
Connector Name : DIMM_A1 
Type           : DDR3 - Synchronous Registered (Buffered)
Size           : 4096  MB

Index          : 1
Status         : Ok
Connector Name : DIMM_A2 
Type           : DDR3 - Synchronous Registered (Buffered)
Size           : 4096  MB

Index          : 
Status         : Unknown
Connector Name : DIMM_A3 
Type           : [Not Occupied]
Size           : 

Index          : 
Status         : Unknown
Connector Name : DIMM_A4 
Type           : [Not Occupied]
Size           : 

Index          : 2
Status         : Ok
Connector Name : DIMM_B1 
Type           : DDR3 - Synchronous Registered (Buffered)
Size           : 4096  MB

Index          : 3
Status         : Ok
Connector Name : DIMM_B2 
Type           : DDR3 - Synchronous Registered (Buffered)
Size           : 4096  MB

Index          : 
Status         : Unknown
Connector Name : DIMM_B3 
Type           : [Not Occupied]
Size           : 

Index          : 
Status         : Unknown
Connector Name : DIMM_B4 
Type           : [Not Occupied]
Size           : 

主要参数解释:

Bash
1
2
3
4
5
6
7
8
Installed Capacity #安装容量
Maximum Capacity #最大容量
Total Installed Capacity Available to the OS #操作系统可用的总安装容量
Slots Available #可用的插槽
Slots Used #已用插槽
Connector Name #连接器上的内存设备
Type #内存类型
Size #单条内存大小

6.CPU处理器信息

Bash
root@pts/1 # omreport chassis processors
Processors Information

Health : Ok

Index             : 0
Status            : Ok
Connector Name    : CPU1
Processor Brand   : Intel(R) Xeon(R) CPU           E5606  @ 2.13GHz
Processor Version : Model 44 Stepping 2
Current Speed     : 2133  MHz
State             : Present
Core Count        : 4

Index             : 1
Status            : Ok
Connector Name    : CPU2
Processor Brand   : Intel(R) Xeon(R) CPU           E5606  @ 2.13GHz
Processor Version : Model 44 Stepping 2
Current Speed     : 2133  MHz
State             : Present
Core Count        : 4

主要参数解释:

Bash
1
2
3
4
Processor Brand #处理器品牌
Processor Version #处理器版本
Current Speed #当前速度
Core Count #核心数

7.CPU处理器详细信息

Bash
root@pts/1 # omreport chassis processors index=0

主要参数解释:

Bash
1
2
3
4
64-bit Support #64 位支持
HyperThreading(HT) #超线程 (HT)
Virtualization Technology(VT) #虚拟化技术 (VT)
Demand Based Switching(DBS) #按需切换技术 (DBS)

8.电源设备信息

Bash
root@pts/1 # omreport chassis pwrsupplies

主要参数解释:

Bash
Rated Input Wattage #额定输入瓦特
Maximum Output Wattage #最大输出瓦特

9.电源管理

Bash
root@pts/1 # omreport chassis pwrmonitoring

主要参数解释:

Bash
1
2
3
4
5
6
Reading #当前功耗
Warning Threshold #警告阈值功耗
Failure Threshold #故障阈值功耗
Power Headroom #电源净空
System Instantaneous Headroom #系统瞬时净空
System Peak Headroom #系统峰值净空

10.风扇探测器信息

Bash
root@pts/1 # omreport chassis fans
Fan Probes Information

Fan Redundancy
Redundancy Status : Full

Probe List
Index                     : 0
Status                    : Ok
Probe Name                : System Board FAN MOD 1A RPM
Reading                   : 5400 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 2640 RPM
Maximum Failure Threshold : [N/A]

Index                     : 1
Status                    : Ok
Probe Name                : System Board FAN MOD 1B RPM
Reading                   : 3840 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 1920 RPM
Maximum Failure Threshold : [N/A]

Index                     : 2
Status                    : Ok
Probe Name                : System Board FAN MOD 2A RPM
Reading                   : 5520 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 2640 RPM
Maximum Failure Threshold : [N/A]

Index                     : 3
Status                    : Ok
Probe Name                : System Board FAN MOD 2B RPM
Reading                   : 3720 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 1920 RPM
Maximum Failure Threshold : [N/A]

Index                     : 4
Status                    : Ok
Probe Name                : System Board FAN MOD 3A RPM
Reading                   : 5400 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 2640 RPM
Maximum Failure Threshold : [N/A]

Index                     : 5
Status                    : Ok
Probe Name                : System Board FAN MOD 3B RPM
Reading                   : 3840 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 1920 RPM
Maximum Failure Threshold : [N/A]

Index                     : 6
Status                    : Ok
Probe Name                : System Board FAN MOD 4A RPM
Reading                   : 5400 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 2640 RPM
Maximum Failure Threshold : [N/A]

Index                     : 7
Status                    : Ok
Probe Name                : System Board FAN MOD 4B RPM
Reading                   : 3840 RPM
Minimum Warning Threshold : [N/A]
Maximum Warning Threshold : [N/A]
Minimum Failure Threshold : 1920 RPM
Maximum Failure Threshold : [N/A]

主要参数解释:

Bash
Reading #当前风扇转速(转/分)
Minimum Failure Threshold #故障阈值最小(转/分)

11.硬件日志

Bash
1
2
3
omreport system esmlog  #硬件日志
omreport system alertlog  #警报日志
omreport system alertaction  #查看为系统组件的警告和故障事件所配置的警报措施的摘要

官方手册: Omreport手册

需要先安装OMSA才的omreport命令

Bash
1
2
3
4
5
6
7
8
9
wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash

yum install -y net-snmp net-snmp-devel net-snmp-utils wget perl OpenIPMI

yum  -y install srvadmin-all                           #安装路径:/opt/dell/srvadmin/

/opt/dell/srvadmin/sbin/srvadmin-services.sh start     #启动OMSA

ln -s /opt/dell/srvadmin/bin/omreport /usr/local/bin/