其他分享
首页 > 其他分享> > 服务器常规操作及说明

服务器常规操作及说明

作者:互联网

1、DELL服务器

omreport:查看组件状态命令,命令用法如下:

# omreport -?     #查看omreport一级子命令
about            Product and version properties.
licenses         Displays the digital licenses of the installed hardware devices.
preferences      Report system preferences.
system           System component properties.
chassis          Chassis component properties.
storage          Display storage component properties.

# omreport storage -?     #查看omreport二级子命令

1.1 机架类

 omreport chassis pwrsupplies     查看物理电源状态信息
 omreport chassis pwrmonitoring     查看电源信息(电流、功耗)
 omreport chassis bios     BIOS版本及发布日期
 omreport chassis biossetup     BIOS设置信息
 omreport chassis fans [ index=0 ]     风扇信息
 omreport chassis info     服务器序型号、列号、服务代码、IDRAC版本
 omreport chassis memory [ index=0 ]     内存信息
 omreport chassis nics [ index=0 | config=team ]     网卡信息
 omreport chassis processors     物理CPU信息
 omreport chassis temps     CPU和主板温度
 omreport chassis batteries     CMOS电池状态

1.1.1 服务器内存信息查询

omreport chassis memory(显示内存信息):

[root@localhost.localdomain ~]$ omreport chassis memory
Memory Information

Health : Ok

Attributes of Memory Array  1
Location           : System Board or Motherboard
Use                : System Memory
Installed Capacity : 16384  MB(已安装容量)
Maximum Capacity   : 65536  MB(最大容量)
Slots Available    : 4(可用的插槽)
Slots Used         : 2(已用的插槽)
Error Correction   : Single Bit ECC

Total of Memory Array(s)
Total Installed Capacity                     : 16384  MB
Total Installed Capacity Available to the OS : 15844  MB
Total Maximum Capacity                       : 65536  MB(操作系统可用的总安装容量)

Details of Memory Array 1
Index          : 0
Status         : Ok
Connector Name : A1(连接器上的内存设备)
Type           : DDR4 - Synchronous(内存类型)
Size           : 8192  MB(单条内存大小)

Index          : 1
Status         : Ok
Connector Name : A2
Type           : DDR4 - Synchronous
Size           : 8192  MB

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

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

dmidecode -t memory:(这个命令可以查看内存的几乎所有信息,包括频率 大小等等)

[root@localhost.localdomain ~]$ dmidecode -t memory
# dmidecode 3.1
Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.

Handle 0x1000, DMI type 16, 23 bytes
Physical Memory Array
	Location: System Board Or Motherboard
	Use: System Memory
	Error Correction Type: Single-bit ECC
	Maximum Capacity: 64 GB
	Error Information Handle: Not Provided
	Number Of Devices: 4
#第一部分输出是概要信息,主要说板支持的最大内存是64GB,共有4个内存插槽。

Handle 0x1100, DMI type 17, 40 bytes
Memory Device
	Array Handle: 0x1000
	Error Information Handle: Not Provided
	Total Width: 72 bits
	Data Width: 64 bits
	Size: 8192 MB
	Form Factor: DIMM
	Set: 1
	Locator: A1
	Bank Locator: Not Specified
	Type: DDR4
	Type Detail: Synchronous
	Speed: 2400 MT/s
	Manufacturer: 00AD000000AD
	Serial Number: 3293740F
	Asset Tag: 00174500
	Part Number: HMA81GU7AFR8N-UH
	Rank: 1
	Configured Clock Speed: 2133 MT/s
	Minimum Voltage: 1.2 V
	Maximum Voltage: 1.2 V
	Configured Voltage: 1.2 V

Handle 0x1101, DMI type 17, 40 bytes
Memory Device
	Array Handle: 0x1000
	Error Information Handle: Not Provided
	Total Width: 72 bits
	Data Width: 64 bits
	Size: 8192 MB
	Form Factor: DIMM
	Set: 1
	Locator: A2
	Bank Locator: Not Specified
	Type: DDR4
	Type Detail: Synchronous
	Speed: 2400 MT/s
	Manufacturer: 00AD000000AD
	Serial Number: 8199C34E
	Asset Tag: 00172000
	Part Number: HMA81GU7AFR8N-UH
	Rank: 1
	Configured Clock Speed: 2133 MT/s
	Minimum Voltage: 1.2 V
	Maximum Voltage: 1.2 V
	Configured Voltage: 1.2 V

Handle 0x1102, DMI type 17, 40 bytes
Memory Device
	Array Handle: 0x1000
	Error Information Handle: Not Provided
	Total Width: Unknown
	Data Width: Unknown
	Size: No Module Installed
	Form Factor: Unknown
	Set: 2
	Locator: A3
	Bank Locator: Not Specified
	Type: Unknown
	Type Detail: None
	Speed: Unknown
	Manufacturer: Not Specified
	Serial Number: Not Specified
	Asset Tag: Not Specified
	Part Number: Not Specified
	Rank: Unknown
	Configured Clock Speed: Unknown
	Minimum Voltage: Unknown
	Maximum Voltage: Unknown
	Configured Voltage: Unknown

Handle 0x1103, DMI type 17, 40 bytes
Memory Device
	Array Handle: 0x1000
	Error Information Handle: Not Provided
	Total Width: Unknown
	Data Width: Unknown
	Size: No Module Installed
	Form Factor: Unknown
	Set: 2
	Locator: A4
	Bank Locator: Not Specified
	Type: Unknown
	Type Detail: None
	Speed: Unknown
	Manufacturer: Not Specified
	Serial Number: Not Specified
	Asset Tag: Not Specified
	Part Number: Not Specified
	Rank: Unknown
	Configured Clock Speed: Unknown
	Minimum Voltage: Unknown
	Maximum Voltage: Unknown
	Configured Voltage: Unknown
#以上就是4个插槽的信息,目前看插了两块内存,每块8G的容量大小。每块内存的Speed:**表示内存总线的工作频率可以是,一般只能向下兼容,不能向上兼容。PowerEdge R730 系统支持 DDR4 寄存式 DIMM (RDIMM) 和低负载 DIMM (LRDIMM)。

1.1.2 查看服务器整体情况

omreport chassis(主板,整体状态):

[root@localhost.localdomain ~]$ omreport chassis
Health

Main System Chassis

SEVERITY : COMPONENT
Ok       : Fans
Ok       : Intrusion
Ok       : Memory
Ok       : Processors
Ok       : Temperatures
Ok       : Voltages
Ok       : Hardware Log
Ok       : Batteries

For further help, type the command followed by -?

omreport chassis info(查看系统摘要信息):

[root@localhost.localdomain ~]$ omreport chassis info
Chassis Information

Index                                    : 0
Chassis Name                             : Main System Chassis
Host Name                                : localhost.localdomain
iDRAC8 Version                           : 2.43.43.43 (Build 6)
Lifecycle Controller Version             : 2.43.43.43
Chassis Model                            : PowerEdge R230
Chassis Lock                             : Present
Chassis Service Tag                      : H3BDYK2
Express Service Code                     : 37205825330
Chassis Asset Tag                        : Unknown
Flash chassis identify LED state         : Off
Flash chassis identify LED timeout value : 300

1.1.3 查看服务器物理CPU信息

omreport chassis processors(物理CPU信息)、查看物理cpu个数如下:
[root@localhost.localdomain ~]$ omreport chassis processors
Processors Information

Health : Ok

Index             : 0
Status            : Ok
Connector Name    : CPU1
Processor Brand   : Intel(R) Xeon(R) CPU E3-1230 v5 @ 3.40GHz
Processor Version : Model 94 Stepping 3
Current Speed     : 3400  MHz
State             : Present
Core Count        : 4

查看cpu个数:
[root@localhost.localdomain ~]$ cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l
1

1.1.4 显示电池相关信息

omreport chassis batteries显示CMOS电池状态:

[root@localhost.localdomain ~]$ omreport chassis batteries
Batteries

Health : Ok

Individual Battery Elements
Index      : 0
Status     : Ok
Probe Name : System Board CMOS Battery
Reading    : Good

omreport storage battery # 查看电池属性

[root@localhost.localdomain ~]$ omreport storage battery
No Batteries found

1.1.5 

标签:Ok,Unknown,常规,chassis,omreport,操作,服务器,Handle,Type
来源: https://blog.csdn.net/weixin_45537413/article/details/118247865