安装Dell OMSA srvadmin 命令行或WEBUI下查看硬件状态 DELL 服务器

默认官网安装方式:

wget -q -O -   http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
yum -y install srvadmin-all
cp /opt/dell/srvadmin/sbin/omreport /usr/bin /opt/dell/srvadmin/sbin/srvadmin-services.sh start

一般旧的型号,如R630,R620,R410,R420等,在CentOS7上安装后, 会出现识别不到阵列卡 no controllers found等问题,可尝试使用OMSA7.1。

安装方法如下:

1.卸载yum安装的omsa(如果是老设备可以直接按照第二步开始走)

rpm -e $(rpm -qa | grep srvadmin) 

2.下载OMSA7.1

wget http://downloads.dell.com/FOLDER00651500M/1/OM-SrvAdmin-Dell-Web-LX-7.1.0-5304.RHEL6.x86_64_A00.tar.gz

 

3.安装依赖环境

yum install libcmpiCppImpl0 openwsman-server openwsman-client sblim-sfcb pciutils libgcrypt-devel libxslt

4.到根目录/    解压:

tar zxvf OM-SrvAdmin-Dell-Web-LX-7.1.0-5304.RHEL6.x86_64_A00.tar.gz

5.修改redhat-release文件(安装部署时校验用的):

mv /etc/redhat-release /etc/redhat-release.bak; echo "Santiago Centos release 6.3 (Final)" >> /etc/redhat-release

6.运行setup.sh开始安装:

./setup.sh

提示戴尔软件许可协议,一直回车到最好按y确定

之后弹出让你选择如下几项即可 (7 选择全部,然后按 i 选择安装启动)

Components for Server Administrator Managed Node Software:

[ ] 1. Server Administrator Web Server
[ ] 2. Server Instrumentation
[ ] 3. Storage Management
[ ] 4. Remote Enablement
[ ] 5. Remote Access Core Component
[ ] 6. Remote Access SA Plugin Component
[ ] 7. All

Enter the number to select a component from the above list.
Enter q to quit.

Enter :

7.确定安装后会提示你是否启动服务,按 y 耐心等待完成

8.还原redhat-release文件:

rm -f /etc/redhat-release; mv /etc/redhat-release.bak /etc/redhat-release

9.开机启动:(可以不进行配置)

echo '/opt/dell/srvadmin/sbin/srvadmin-services.sh start' >> /etc/rc.local

之后全部安装完成了,执行命令验证下

/opt/dell/srvadmin/bin/omreport storage controller
Controller PERC H700 Integrated (Embedded)

Controllers
ID : 0
Status : Ok
Name : PERC H700 Integrated
Slot ID : Embedded
State : Ready
Firmware Version : 12.10.4-0001
Minimum Required Firmware Version : Not Applicable
Driver Version : 07.701.17.00-rh1
Minimum Required Driver Version : Not Applicable
Storport Driver Version : Not Applicable
Minimum Required Storport Driver Version : Not Applicable
Number of Connectors : 2
Rebuild Rate : 30%
BGI Rate : 30%
Check Consistency Rate : 30%
Reconstruct Rate : 30%
Alarm State : Not Applicable
Cluster Mode : Not Applicable
SCSI Initiator ID : Not Applicable
Cache Memory Size : 1024 MB
Patrol Read Mode : Auto
Patrol Read State : Stopped
Patrol Read Rate : 30%
Patrol Read Iterations : 370
Abort Check Consistency on Error : Disabled
Allow Revertible Hot Spare and Replace Member : Enabled
Load Balance : Not Applicable
Auto Replace Member on Predictive Failure : Disabled
Redundant Path view : Not Applicable
CacheCade Capable : Yes
Persistent Hot Spare : Disabled
Encryption Capable : Yes
Encryption Key Present : No
Encryption Mode : None
Preserved Cache : No
Spin Down Unconfigured Drives : Disabled
Spin Down Hot Spares : Disabled
Spin Down Configured Drives : Not Applicable
Automatic Disk Power Saving (Idle C) : Not Applicable

最后要想通过web UI端管理那么先放行防火墙 1311 端口

我这边是iptables防火墙

iptables -I INPUT -p tcp --dport 1311 -j ACCEPT
service iptables save 

默认一般是firewall的防火墙

firewall-cmd –zone=public –add-port=1311/tcp –permanent

重载防火墙配置

firewall-cmd –reload

完成后,浏览器访问https://你的服务器IP:1311

这里要访问https而不是http,注意下!

使用效果和idrac是一样的,但这里的用户名是你的服务器用户名,密码则是系统密码。

精简OMSA组件:

       虽然 OMSA 的web端功能很强大,但是在工作当中,我们的主要目的并非是使用它的web端,更多时间只是想使用它提供的一些命令行工具来获取服务器主要组件的相关信息,比如CPU、内存、硬盘、陈列和主板温度之类的健康状况。因此,我们没有必要安装OMSA的web端。

下面就是卸载OMSA的web端相关的包:

# yum remove -y srvadmin-tomcat srvadmin-jre srvadmin-smweb

删除相关的无用内容:

# rm -rf /opt/dell/srvadmin/lib64/openmanage/apache-tomcat

命令行指南:

/opt/dell/srvadmin/bin/omreport chassis # 显示所有主要组件的常规状态
/opt/dell/srvadmin/bin/omreport chassis memory # 显示内存信息
/opt/dell/srvadmin/sbin/omreport chassis temps # 显示系统主要组件的温度
/opt/dell/srvadmin/bin/omreport storage adisk controller=0 # 查看磁盘陈列中的硬盘状态
/opt/dell/srvadmin/bin/omreport storage pdisk controller=0 # 查看物理磁盘信息
/opt/dell/srvadmin/bin/omreport storage vdisk controller=0 # 查看虚拟硬盘的状态
/opt/dell/srvadmin/bin/omreport storage controller # 查看控制器(即RAID卡)的属性
/opt/dell/srvadmin/bin/omreport storage channel controller=0 # 查看通道的属性
/opt/dell/srvadmin/bin/omreport storage enclosure controller=0 # 查看enclosure的属性
/opt/dell/srvadmin/bin/omreport storage battery # 查看电池属性
/opt/dell/srvadmin/bin/omconfig storage controller action=setrebuildrate controller=0 rate=100 # 调整rebuild的速度
/opt/dell/srvadmin/bin/omconfig storage vdisk action=changepolicy controller=0 vdisk=0 readpolicy=ara # 修改raid的读策略
/opt/dell/srvadmin/bin/omconfig storage vdisk action=changepolicy controller=0 vdisk=0 writepolicy=fwb

srvadmin命令范例

1、查看所有主要组件的常规状态

root@ncnode05:~# omreport chassis
Health

Main System Chassis

SEVERITY : COMPONENT 级别,组件
Ok : Fans 风扇
Ok : Intrusion 入侵(比如开机箱盖)
Ok : Memory 内存
Ok : Power Supplies 电源供给
Ok : Power Management 电源管理
Ok : Processors 处理器
Ok : Temperatures 温度
Ok : Voltages 电压
Ok : Hardware Log 硬件日志
Ok : Batteries 电池

 

2、查看内存信息

root@ncnode05:~# omreport chassis memory
Memory Information 内存信息

Health : Ok

Attributes of Memory Array(s) 内存阵列属性

Attributes of Memory Array(s)
Location : System Board or Motherboard 系统板或主板
Use : System Memory 系统内存
Installed Capacity : 262144 MB 已装容量(256G)
Maximum Capacity : 1572864 MB 最大支持容量(1536G)
Slots Available : 24 总共槽位
Slots Used : 16 已用槽位
Error Correction : Multibit ECC

Total of Memory Array(s)
Total Installed Capacity : 262144 MB
Total Installed Capacity Available to the OS : 257852 MB
Total Maximum Capacity : 1572864 MB

Details of Memory Array 1
Index : 0
Status : Ok
Connector Name : A1 插槽名称
Type : DDR4 - Synchronous Registered (Buffered)
Size : 16384 MB

Index : 1
Status : Ok
Connector Name : A2
Type : DDR4 - Synchronous Registered (Buffered)
Size : 16384 MB

Index : 2
Status : Ok
Connector Name : A3
Type : DDR4 - Synchronous Registered (Buffered)
Size : 16384 MB

Index : 3
Status : Ok
Connector Name : A4
Type : DDR4 - Synchronous Registered (Buffered)
Size : 16384 MB

Index : 4
Status : Ok
Connector Name : A5
Type : DDR4 - Synchronous Registered (Buffered)
Size : 16384 MB

Index : 5
Status : Ok
Connector Name : A6
Type : DDR4 - Synchronous Registered (Buffered)
Size : 16384 MB

Index : 6
Status : Ok
Connector Name : A7
Type : DDR4 - Synchronous Registered (Buffered)
Size : 16384 MB

Index : 7
Status : Ok
Connector Name : A8
Type : DDR4 - Synchronous Registered (Buffered)
Size : 16384 MB

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

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

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

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

Index : 8
Status : Ok
Connector Name : B1
Type : DDR4 - Synchronous Registered (Buffered)
Size : 16384 MB

Index : 9
Status : Ok
Connector Name : B2
Type : DDR4 - Synchronous Registered (Buffered)
Size : 16384 MB

Index : 10
Status : Ok
Connector Name : B3
Type : DDR4 - Synchronous Registered (Buffered)
Size : 16384 MB

Index : 11
Status : Ok
Connector Name : B4
Type : DDR4 - Synchronous Registered (Buffered)
Size : 16384 MB

Index : 12
Status : Ok
Connector Name : B5
Type : DDR4 - Synchronous Registered (Buffered)
Size : 16384 MB

Index : 13
Status : Ok
Connector Name : B6
Type : DDR4 - Synchronous Registered (Buffered)
Size : 16384 MB

Index : 14
Status : Ok
Connector Name : B7
Type : DDR4 - Synchronous Registered (Buffered)
Size : 16384 MB

Index : 15
Status : Ok
Connector Name : B8
Type : DDR4 - Synchronous Registered (Buffered)
Size : 16384 MB

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

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

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

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

 

 

3、查看系统主要组件的温度

root@ncnode05:~# omreport chassis temps
Temperature Probes Information

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

Index : 0
Status : Ok
Probe Name : System Board Inlet Temp
Reading : 21.0 C
Minimum Warning Threshold : 3.0 C
Maximum Warning Threshold : 42.0 C
Minimum Failure Threshold : -7.0 C
Maximum Failure Threshold : 47.0 C

Index : 1
Status : Ok
Probe Name : System Board Exhaust Temp
Reading : 33.0 C
Minimum Warning Threshold : 0.0 C
Maximum Warning Threshold : 70.0 C
Minimum Failure Threshold : 0.0 C
Maximum Failure Threshold : 75.0 C

Index : 2
Status : Ok
Probe Name : CPU1 Temp
Reading : 41.0 C
Minimum Warning Threshold : 8.0 C
Maximum Warning Threshold : 82.0 C
Minimum Failure Threshold : 3.0 C
Maximum Failure Threshold : 87.0 C

Index : 3
Status : Ok
Probe Name : CPU2 Temp
Reading : 41.0 C
Minimum Warning Threshold : 8.0 C
Maximum Warning Threshold : 82.0 C
Minimum Failure Threshold : 3.0 C
Maximum Failure Threshold : 87.0 C

 

 

 

未经授权帖子请勿转载,转载请附上原帖内容,谢谢您。
=====================================
THE END
分享
二维码
< <上一篇
下一篇>>
文章目录
关闭
目 录