DELL sas6i Disk Monitoring deployment

Source: Internet
Author: User

One. Installation:

#安装源

Wget-q-o-http://linux.dell.com/repo/hardware/omsa_7.1.1/bootstrap.cgi | Bash

#如果出现软件冲突, the execution

Yum Remove Tog-pegasus tog-pegasus-libs-y

RPM-E Lib_utils-1.00-08.noarch megacli-8.00.29-1.i386

RPM-E Lib_utils-1.00-09.noarch Megacli-8.02.21-1.noarch

#安装全部程序

Yum Install Srvadmin-all-y

#启动程序

Cd/opt/dell/srvadmin/sbin

./srvadmin-services.sh Start

Two. Deployment

#自启动

Writes/opt/dell/srvadmin/sbin/srvadmin-services.sh start to Rc.local

Make sure Mount 192.168.0.71:/vol/vol2/share is already mounted

#部署脚本

Add the following script location in sh/share/yunwei/shell/system/dellraid2_check_01.sh

The script reads as follows:

#--------------------------------------------------Start

#!/bin/bash

Count= '/opt/dell/srvadmin/sbin/omreport storage pdisk controller=0 |grep ^id |wc-l '

Let count= ($count)

Count1= '/opt/dell/srvadmin/sbin/omreport Storage pdisk controller=0 | Egrep "(^status|^state)" | awk ' {if ($3~/ok/) {print $3}else if ($3~/online/) {print $}} ' |wc-l '

if (($count = = $count 1))

Then

Echo OK

Sh/share/yunwei/shell/commonapi/mms_api_01.sh ' hostname ' disk-is-normal_status ' hostname ' 1 0 0

Else

echo Error

Sh/share/yunwei/shell/commonapi/mms_api_01.sh ' hostname ' DISK-IS-ERROR ' hostname ' 1 2 1 6

Fi

#----------------------------------------------------End

#部署计划任务

Additional planning tasks are as follows:

* * * (sh/share/yunwei/shell/system/dellraid2_check_01.sh &)

DELL sas6i Disk Monitoring deployment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.