共计 4554 个字符,预计需要花费 12 分钟才能阅读完成。
HP 服务器官方管理工具 hpacucli,通过该工具可以查看 HP 服务器的 Raid 状态是否正常(如果 Raid 卡出问题,会影响数据的读写速度),服务器硬盘是否正常(如果硬盘坏掉,严重的情况会丢失数据),服务器电源是否有故障等信息。
HP 服务器官方管理工具 hpasmcli,通过该工具可以很详细查看服务器 CPU,内存,处理器,电源等的温度信息。
硬件状态信息获取:
1)安装 hpacucli(下载地址:HP hpacucli 工具)
—————————————— 分割线 ——————————————
可以到 Linux 公社 1 号 FTP 服务器下载
FTP 地址:ftp://ftp1.linuxidc.com
用户名:ftp1.linuxidc.com
密码:www.linuxidc.com
在 2017 年 LinuxIDC.com/ 5 月 /HP 服务器 Linux 下 hpacucli 常用命令 /
下载方法见 http://www.linuxidc.com/Linux/2013-10/91140.htm
—————————————— 分割线 ——————————————
[root@localhost ~]# rpm -ivh hpacucli-9.40-12.0.x86_64.rpm
2)查看服务器 RAID、硬盘是否正常。
[root@localhost ~]# hpacucli ctrl all show config
[root@localhost ~]# hpacucli ctrl all show config detail 可以详细地查看 RAID 和硬盘的信息
[root@localhost ~]# hpacucli ctrl all show config
Smart Array E200i in Slot 0 (Embedded) (sn: PR97MP2834)
array A (SAS, Unused Space: 0 MB)
logicaldrive 1 (558.7 GB, RAID 5, OK)
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK)
physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 300 GB, OK)
physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 300 GB, OK)
[root@localhost ~]# hpacucli ctrl all show config detail
Smart Array E200i in Slot 0 (Embedded)
Bus Interface: PCI
Slot: 0
Serial Number: PR97MP2834
Cache Serial Number: P75B20C9SRO5BQ
RAID 6 (ADG) Status: Disabled
Controller Status: OK
Hardware Revision: A
Firmware Version: 1.82
Rebuild Priority: Medium
Expand Priority: Medium
Surface Scan Delay: 15 secs
Surface Scan Mode: Idle
Post Prompt Timeout: 0 secs
Cache Board Present: True
Cache Status: Temporarily Disabled
Cache Status Details: Cache disabled; low batteries.
Cache Ratio: 50% Read / 50% Write
Drive Write Cache: Disabled
Total Cache Size: 128 MB
Total Cache Memory Available: 96 MB
No-Battery Write Cache: Disabled
Cache Backup Power Source: Batteries
Battery/Capacitor Count: 1
Battery/Capacitor Status: Failed (Replace Batteries)
SATA NCQ Supported: False
Array: A
Interface Type: SAS
Unused Space: 0 MB
Status: OK
Array Type: Data
Logical Drive: 1
Size: 558.7 GB
Fault Tolerance: 5
Heads: 255
Sectors Per Track: 32
Cylinders: 65535
Strip Size: 64 KB
Full Stripe Size: 128 KB
Status: OK
Caching: Enabled
Parity Initialization Status: Initialization Completed
Unique Identifier: 600508B1001038333420202020200004
Disk Name: /dev/cciss/c0d0
Mount Points: /boot 200 MB, / 542.5 GB
OS Status: LOCKED
Logical Drive Label: A0100C5FPR97MP2834 2E7A
Drive Type: Data
physicaldrive 1I:1:2
Port: 1I
Box: 1
Bay: 2
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 10000
Firmware Revision: HPDE
Serial Number: 6SE24FXD0000B124L36W
Model: HP EG0300FAWHV
PHY Count: 2
PHY Transfer Rate: 3.0Gbps, Unknown
physicaldrive 1I:1:3
Port: 1I
Box: 1
Bay: 3
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 10000
Firmware Revision: HPDE
Serial Number: 6SE27HWB0000B124KXPQ
Model: HP EG0300FAWHV
PHY Count: 2
PHY Transfer Rate: 3.0Gbps, Unknown
physicaldrive 1I:1:4
Port: 1I
Box: 1
Bay: 4
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 10000
Firmware Revision: HPDD
Serial Number: 6SE0KNEM0000B1012K5S
Model: HP EG0300FAWHV
PHY Count: 2
PHY Transfer Rate: 3.0Gbps, Unknown
[root@localhost ~]#
硬件温度信息获取:
1)安装 hpasmcli
[root@localhost ~]# rpm -ivh hp-health-9.40-1602.44.rhel6.x86_64.rpm
2)查看服务器 CPU,内存,处理器,电源等的温度信息
[root@localhost ~]# hpasmcli -s ‘show’ 查看类似于 help 的帮助信息,监控的时候要重点关注 DIMM(内存)、FANS(风扇)、POWERSUPPLY(电源模块)、SERVER(系统)、CPU、TEMP(温度) 等信息。
[root@localhost ~]# hpasmcli -s ‘show’
Invalid Arguments
SHOW ASR
SHOW BOOT
SHOW DIMM [SPD]
SHOW F1
SHOW FANS
SHOW HT
SHOW IML
SHOW IPL
SHOW NAME
SHOW PORTMAP
SHOW POWERMETER
SHOW POWERSUPPLY
SHOW PXE
SHOW SERIAL [BIOS | EMBEDDED | VIRTUAL]
SHOW SERVER
SHOW TEMP
SHOW TPM
SHOW UID
SHOW WOL
[root@localhost ~]#
[root@localhost ~]# hpasmcli -s ‘show TEMP’ 查看服务器各部件的温度信息,其中 Temp 表示各部件当前的温度,Threshold 表示临界温度,当当前温度超过临界温度的时候就要注意啦。
[root@localhost ~]# hpasmcli -s ‘show TEMP’
Sensor Location Temp Threshold
—— ——– —- ———
#1 I/O_ZONE 46C/114F 65C/149F
#2 AMBIENT 21C/69F 40C/104F
#3 CPU#1 30C/86F 95C/203F
#4 CPU#1 30C/86F 95C/203F
#5 POWER_SUPPLY_BAY 30C/86F 60C/140F
#6 CPU#2 30C/86F 95C/203F
#7 CPU#2 30C/86F 95C/203F
[root@localhost ~]#
[root@localhost ~]# hpasmcli -s ‘show dimm’ 查看内存信息
[root@localhost ~]# hpasmcli -s ‘show TEMP’ 查看硬件温度
[root@localhost ~]# hpasmcli -s ‘show fans’ 查看风扇信息
[root@localhost ~]# hpasmcli -s ‘show powersupply’ 查看电源模块
[root@localhost ~]# hpasmcli -s ‘show server’ 查看机器型号, 序列号,CPU, 内存大小
本文永久更新链接地址:http://www.linuxidc.com/Linux/2017-05/143824.htm